Show raw rather than compiled entry to llm and users

Only embedding models see, operate on compiled text.

LLMs should see raw entry to improve combining it with other document
traversal tools for better regex and line matching.

Users see raw entry for better matching with their actual notes.
This commit is contained in:
Debanjum
2025-06-29 15:06:08 -07:00
parent 5c4d41d300
commit 820b4523fd

View File

@@ -1263,7 +1263,7 @@ async def search_documents(
compiled_references = [ compiled_references = [
{ {
"query": item.additional["query"], "query": item.additional["query"],
"compiled": item.additional["compiled"], "compiled": item["entry"],
"file": item.additional["file"], "file": item.additional["file"],
} }
for item in search_results for item in search_results