Fix showing headings in intermediate step in generating chat response

This commit is contained in:
Debanjum Singh Solanky
2024-06-06 16:52:23 +05:30
parent 18f7e6e7ed
commit f91cdf8e18

View File

@@ -590,9 +590,7 @@ async def websocket_endpoint(
)
if compiled_references:
headings = "\n- " + "\n- ".join(
set([" ".join(c.get("compiled", c).split("Path: ")[1:]).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]))
await send_status_update(f"**📜 Found Relevant Notes**: {headings}")
online_results: Dict = dict()