This commit unblocks Tasks 3 and 4 of fb-38: - VectorRetriever::build_hit now labels hits with ScoreKind::Cosine - Hybrid retriever test helpers (mk_hit functions) label synthetic hits with ScoreKind::Rrf - Updated lexical snapshot fixture to reflect new score_kind field in output Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
66 lines
1.6 KiB
JSON
66 lines
1.6 KiB
JSON
[
|
|
{
|
|
"chunk_id": "c3000000000000000000000000000000",
|
|
"chunker_version": "v1",
|
|
"citation": {
|
|
"end": 8,
|
|
"kind": "line",
|
|
"path": "notes/snap.md",
|
|
"section": "Snap",
|
|
"start": 7
|
|
},
|
|
"doc_id": "d0000000000000000000000000000000",
|
|
"doc_path": "notes/snap.md",
|
|
"embedding_model": null,
|
|
"heading_path": [
|
|
"Snap"
|
|
],
|
|
"index_version": "v1.0",
|
|
"indexed_at": "2024-01-01T00:00:00Z",
|
|
"rank": 1,
|
|
"retrieval": {
|
|
"fusion_score": 1.4490997273242101e-6,
|
|
"lexical_rank": 1,
|
|
"lexical_score": 1.4490997273242101e-6,
|
|
"method": "lexical",
|
|
"vector_rank": null,
|
|
"vector_score": null
|
|
},
|
|
"score_kind": "bm25",
|
|
"section_label": "Snap",
|
|
"snippet": "alpha alpha",
|
|
"stale": false
|
|
},
|
|
{
|
|
"chunk_id": "c1000000000000000000000000000000",
|
|
"chunker_version": "v1",
|
|
"citation": {
|
|
"end": 2,
|
|
"kind": "line",
|
|
"path": "notes/snap.md",
|
|
"section": "Snap",
|
|
"start": 1
|
|
},
|
|
"doc_id": "d0000000000000000000000000000000",
|
|
"doc_path": "notes/snap.md",
|
|
"embedding_model": null,
|
|
"heading_path": [
|
|
"Snap"
|
|
],
|
|
"index_version": "v1.0",
|
|
"indexed_at": "2024-01-01T00:00:00Z",
|
|
"rank": 2,
|
|
"retrieval": {
|
|
"fusion_score": 9.641424867368187e-7,
|
|
"lexical_rank": 2,
|
|
"lexical_score": 9.641424867368187e-7,
|
|
"method": "lexical",
|
|
"vector_rank": null,
|
|
"vector_score": null
|
|
},
|
|
"score_kind": "bm25",
|
|
"section_label": "Snap",
|
|
"snippet": "alpha bravo charlie",
|
|
"stale": false
|
|
}
|
|
] |