From 6a70e3e45b5c57c24bc38ab2d534705e6365ec72 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 12 Jan 2024 14:39:17 +0000 Subject: [PATCH] Commented out unused code in api_search function --- application/api/answer/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/api/answer/routes.py b/application/api/answer/routes.py index 3fa32a6ea..8c661e0bd 100644 --- a/application/api/answer/routes.py +++ b/application/api/answer/routes.py @@ -366,6 +366,6 @@ def api_search(): source_log_docs.append({"title": doc.metadata['title'].split('/')[-1], "text": doc.page_content}) else: source_log_docs.append({"title": doc.page_content, "text": doc.page_content}) - yield f"data:{data}\n\n" + #yield f"data:{data}\n\n" return source_log_docs