mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 05:39:12 +00:00
Remove the hashes from titles in found relevant notes
This commit is contained in:
@@ -778,6 +778,8 @@ async def chat(
|
|||||||
|
|
||||||
if not is_none_or_empty(compiled_references):
|
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]))
|
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}"):
|
async for result in send_event(ChatEvent.STATUS, f"**Found Relevant Notes**: {headings}"):
|
||||||
yield result
|
yield result
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user