mirror of
https://github.com/lllin000/PaperForge.git
synced 2026-07-22 17:00:23 +00:00
- search.py: normalize FTS results to unified field set (score from rank, add text/heading/source keys). Result key unchanged (already 'matches'). - retrieve.py: rename data.chunks to data.matches in standard and deep paths. Map field names: paper_id->zotero_key, chunk_text->text, section_path->heading. Expand enrichment SQL to fetch journal and domain. --deep flag already wired in CLI parser. - tests/cli/test_json_contracts.py: add contract tests verifying PFResult envelope shape, data.matches key presence, unified field names, --deep flag acceptance, and field type correctness. |
||
|---|---|---|
| .. | ||
| snapshots/test_json_contracts/test_status_json_snapshot_regression/status_json | ||
| __init__.py | ||
| conftest.py | ||
| test_contract_helpers.py | ||
| test_error_codes.py | ||
| test_json_contracts.py | ||
| test_text_contracts.py | ||