Spaces:
Runtime error

Julien Simon commited on
Commit
e059064
Β·
1 Parent(s): b7afa04

Add comprehensive tests for context formatting features

Browse files

- Add 9 new tests for context formatting and top chunk emphasis
- Fix 3 failing tests by using proper Document objects instead of Mock objects
- Test coverage for: top chunk emphasis (similarity/distance scores), source name extraction, context headers, document matching edge cases
- All 162 tests passing with 97.85% coverage

3 files changed +490 -3
Files changed (3)
tests/test_qa_chain.py+7-2
tests/test_qa_chain_context_formatting.pyAdded+479
tests/test_qa_chain_edge_cases.py+4-1