From f91cdf8e18d63abc2b2851ffd3acef1b42ecc999 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Thu, 6 Jun 2024 16:52:23 +0530 Subject: [PATCH] Fix showing headings in intermediate step in generating chat response --- src/khoj/routers/api_chat.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/khoj/routers/api_chat.py b/src/khoj/routers/api_chat.py index 702893ff..b4d370e1 100644 --- a/src/khoj/routers/api_chat.py +++ b/src/khoj/routers/api_chat.py @@ -590,9 +590,7 @@ async def websocket_endpoint( ) if compiled_references: - headings = "\n- " + "\n- ".join( - set([" ".join(c.get("compiled", c).split("Path: ")[1:]).split("\n ")[0] for c in compiled_references]) - ) + headings = "\n- " + "\n- ".join(set([c.get("compiled", c).split("\n")[0] for c in compiled_references])) await send_status_update(f"**📜 Found Relevant Notes**: {headings}") online_results: Dict = dict()