mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Remove the hashes from titles in found relevant notes
This commit is contained in:
parent
c0316a6b5d
commit
2c5350329a
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue