mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 13:18:18 +00:00
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:
@@ -1263,7 +1263,7 @@ async def search_documents(
|
||||
compiled_references = [
|
||||
{
|
||||
"query": item.additional["query"],
|
||||
"compiled": item.additional["compiled"],
|
||||
"compiled": item["entry"],
|
||||
"file": item.additional["file"],
|
||||
}
|
||||
for item in search_results
|
||||
|
||||
Reference in New Issue
Block a user