haiku.rag/tests/multi_db
Yiorgis Gozadinos 82fe91bb76
Order cross-database fusion by retrieval score
Rank interleaving guarantees every database slots regardless of content;
on domain-split collections it allocates no better than chance and costs
4.7pp recall@5 at four collections against score ordering (7.1pp at
eight). Hybrid scores are each database's own vector/FTS rank agreement,
which carries across databases; equal scores resolve by within-database
rank, and only a tie on both falls to configured order, leaving
permutation sensitivity at 0.02-0.26pp. Fused results carry the
candidate's own retrieval score, so the context-expansion re-sort
preserves fused order.
2026-09-01 15:26:41 +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 Order cross-database fusion by retrieval score 2026-09-01 15:26:41 +03:00