Spaces:
Runtime error

BabaK07 commited on
Commit
aefb7b1
·
1 Parent(s): 62d2116

feat(document-matching): simplify to LLM-based document filtering

Browse files

- Replace two-stage keyword + LLM reranking with pure LLM semantic filtering
- Update document matching to send all user documents to LLM for analysis
- LLM now selects 0 to N relevant documents based on actual relevance instead of forced limits
- Rename _llm_verify_document_hashes to _llm_filter_documents for clarity
- Add X-Session-Id header support for improved session tracking in ask_question endpoint
- Update README to reflect simplified document filtering approach
- Add session ID logging for debugging agent thread IDs
- Improve LLM prompt to emphasize quality over quantity in document selection

4 files changed +61 -73
Files changed (4)
README.md+7-7
app/main.py+10-2
app/services/document_service.py+16-62
app/templates/index.html+28-2