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()