Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
leehuwuj committed Jan 21, 2025
1 parent dd7e79d commit c2136e5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def retrieve(self, ctx: Context, ev: StartEvent) -> PlanResearchEvent:
)
)
retriever = self.index.as_retriever(
similarity_top_k=os.getenv("TOP_K", 10),
similarity_top_k=int(os.getenv("TOP_K", 10)),
)
nodes = retriever.retrieve(self.user_request)
self.context_nodes.extend(nodes)
Expand Down Expand Up @@ -266,7 +266,7 @@ async def answer(self, ctx: Context, ev: ResearchEvent) -> CollectAnswersEvent:
@step
async def collect_answers(
self, ctx: Context, ev: CollectAnswersEvent
) -> ReportEvent:
) -> PlanResearchEvent:
"""
Collect answers to all questions
"""
Expand Down

0 comments on commit c2136e5

Please sign in to comment.