fix: update .gitignore to include logs directory and remove outdated waterfall.log
refactor: change trace span to async context manager in knowledge_base_search refactor: enhance _run_sync_span for better trace handling and cleanup
This commit is contained in:
+1
-1
@@ -768,7 +768,7 @@ class VoiceSession:
|
||||
if message.get("role") == "user"
|
||||
)
|
||||
retrieval_query = f"{retrieval_query} {user_text}".strip()
|
||||
with trace_span("knowledge_base_search"):
|
||||
async with time_span("knowledge_base_search"):
|
||||
kb_hits = (
|
||||
knowledge_base.search(
|
||||
retrieval_query,
|
||||
|
||||
Reference in New Issue
Block a user