haiku.rag/tests/multi_db
Yiorgis Gozadinos 16a1d9598b
Break cross-database RRF rank ties by retrieval score
Disjoint corpora give every database's rank-r candidate the same RRF
score, and the stable sort resolved those ties to lancedb.databases
declaration order, discarding the retrieval scores entirely. Ties now
break on the raw retrieval score, which is uncalibrated across indexes
but only ever orders candidates within one rank tier: the databases in
a fusion share an embedder and ran the same search type, and it can
never lift a candidate above another rank. Hybrid per-database scores
are themselves rank-derived, so exact agreement still ties and keeps
configured order, deterministically. The n > limit depth quota is
unchanged, pending the retrieval eval.
2026-08-31 19:10:13 +03:00
..
__init__.py Split the multi-database tests by subject 2026-08-26 13:43:53 +03:00
conftest.py Finish the comment pass, and escape document fields everywhere Rich renders 2026-08-28 15:34:47 +03:00
helpers.py State what the code does, not what it replaced 2026-08-28 15:13:52 +03:00
test_capabilities.py State what the code does, not what it replaced 2026-08-28 15:13:52 +03:00
test_citations.py State what the code does, not what it replaced 2026-08-28 15:13:52 +03:00
test_documents.py State what the code does, not what it replaced 2026-08-28 15:13:52 +03:00
test_expansion.py Make three tests assert what they are about 2026-08-27 18:04:28 +03:00
test_lifecycle.py Finish the comment pass, and escape document fields everywhere Rich renders 2026-08-28 15:34:47 +03:00
test_scope.py Finish the comment pass, and escape document fields everywhere Rich renders 2026-08-28 15:34:47 +03:00
test_search.py Break cross-database RRF rank ties by retrieval score 2026-08-31 19:10:13 +03:00