diff --git a/src/khoj/routers/api_chat.py b/src/khoj/routers/api_chat.py index f36183be..dc6853f4 100644 --- a/src/khoj/routers/api_chat.py +++ b/src/khoj/routers/api_chat.py @@ -778,6 +778,8 @@ async def chat( 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