From 2c5350329aa82b20a25b3f81d443acdad2125eea Mon Sep 17 00:00:00 2001 From: sabaimran Date: Sun, 18 Aug 2024 22:31:15 -0500 Subject: [PATCH] Remove the hashes from titles in found relevant notes --- src/khoj/routers/api_chat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/khoj/routers/api_chat.py b/src/khoj/routers/api_chat.py index f36183bee..dc6853f49 100644 --- a/src/khoj/routers/api_chat.py +++ b/src/khoj/routers/api_chat.py @@ -778,6 +778,8 @@ def collect_telemetry(): if not is_none_or_empty(compiled_references): headings = "\n- " + "\n- ".join(set([c.get("compiled", c).split("\n")[0] for c in compiled_references])) + # Strip only leading # from headings + headings = headings.replace("#", "") async for result in send_event(ChatEvent.STATUS, f"**Found Relevant Notes**: {headings}"): yield result