Remove the hashes from titles in found relevant notes

This commit is contained in:
sabaimran 2024-08-18 22:31:15 -05:00
parent c0316a6b5d
commit 2c5350329a

View file

@ -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