From 1580696ca720cb9b4853b73ab5eac87e196d9c7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?th=E1=BB=8Bnh?= Date: Fri, 10 Jan 2025 16:59:22 +0700 Subject: [PATCH] Remove the annoying Reasoning related labels --- backend/utils/retrieval/graph.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/utils/retrieval/graph.py b/backend/utils/retrieval/graph.py index 231d09e2d..df94d4033 100644 --- a/backend/utils/retrieval/graph.py +++ b/backend/utils/retrieval/graph.py @@ -1,6 +1,5 @@ import datetime import uuid -import random import asyncio from typing import List, Optional, Tuple, AsyncGenerator @@ -260,8 +259,7 @@ def qa_handler(state: GraphState): # streaming streaming = state.get("streaming") if streaming: - msg = random.choice(["Reasoning", "Reasoning to bring you the best results", "Working through reasoning now"]) - state['callback'].put_thought_nowait(msg) + state['callback'].put_thought_nowait("Reasoning") memories = state.get("memories_found", []) asyncio.run(qa_rag_stream( uid,