Skip to content

Commit c2136e5

Browse files
committed
fix typing
1 parent dd7e79d commit c2136e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/components/agents/python/deep_research/app/workflows/deep_research.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def retrieve(self, ctx: Context, ev: StartEvent) -> PlanResearchEvent:
112112
)
113113
)
114114
retriever = self.index.as_retriever(
115-
similarity_top_k=os.getenv("TOP_K", 10),
115+
similarity_top_k=int(os.getenv("TOP_K", 10)),
116116
)
117117
nodes = retriever.retrieve(self.user_request)
118118
self.context_nodes.extend(nodes)
@@ -266,7 +266,7 @@ async def answer(self, ctx: Context, ev: ResearchEvent) -> CollectAnswersEvent:
266266
@step
267267
async def collect_answers(
268268
self, ctx: Context, ev: CollectAnswersEvent
269-
) -> ReportEvent:
269+
) -> PlanResearchEvent:
270270
"""
271271
Collect answers to all questions
272272
"""

0 commit comments

Comments
 (0)