From 42cde68dd683fe99043c9e6fce91dac364b31f67 Mon Sep 17 00:00:00 2001 From: minmin-intel Date: Tue, 10 Sep 2024 17:16:25 -0700 Subject: [PATCH] fix ragagent text generator bug (#660) * fix ragagent text generator bug Signed-off-by: minmin-intel --- comps/agent/langchain/src/strategy/ragagent/planner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comps/agent/langchain/src/strategy/ragagent/planner.py b/comps/agent/langchain/src/strategy/ragagent/planner.py index e618aed80..fcdf22ab1 100644 --- a/comps/agent/langchain/src/strategy/ragagent/planner.py +++ b/comps/agent/langchain/src/strategy/ragagent/planner.py @@ -216,7 +216,7 @@ def should_retry(self, state): return False def prepare_initial_state(self, query): - return {"messages": [HumanMessage(content=query)]} + return {"messages": [HumanMessage(content=query)], "query_time": ""} async def stream_generator(self, query, config): initial_state = self.prepare_initial_state(query)