Skip to content

Commit

Permalink
Remove the annoying Reasoning related labels
Browse files Browse the repository at this point in the history
  • Loading branch information
beastoin committed Jan 10, 2025
1 parent 725df3c commit 1580696
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backend/utils/retrieval/graph.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import datetime
import uuid
import random
import asyncio
from typing import List, Optional, Tuple, AsyncGenerator

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 1580696

Please sign in to comment.