Skip to content

Commit

Permalink
Remove the hashes from titles in found relevant notes
Browse files Browse the repository at this point in the history
  • Loading branch information
sabaimran committed Aug 19, 2024
1 parent c0316a6 commit 2c53503
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/khoj/routers/api_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2c53503

Please sign in to comment.