Skip to main content

Search & Retrieval Benchmarks

Test Dataset

6 banking SEC 10-K filings (2024) embedded with --max-pages 5, producing 76 chunks across 30 pages.

Command: just embed test-documents/banking --max-pages 5

Top-1 Query Accuracy

Each query targets a specific expected document. Results show the top-1 retrieved document from the live API.

Test QueryExpected DocActual DocResultTop ScoreLatency
"item part financial related bank america"bank_of_america_2024.pdfbank_of_america_2024.pdfPASS1.00021ms
"registrant indicate check mark whether report"citigroup_2024.pdfcitigroup_2024.pdfPASS0.83319ms
"banking global markets activities fees business"goldman_sachs_2024.pdfgoldman_sachs_2024.pdfPASS1.00022ms
"securities exchange commission united states washington"morgan_stanley_2024.pdfmorgan_stanley_2024.pdfPASS0.66722ms
"financial activities nature subsidiaries insurance securities"wells_fargo_2024.pdfwells_fargo_2024.pdfPASS1.00021ms
"employees compensation development performance management risk"wells_fargo_2024.pdfwells_fargo_2024.pdfPASS1.00022ms

Accuracy: 6/6 (100.0%) top-1 recall

Search Latency

The alpha=0.7 hybrid row is a historical measurement from before the default changed to 0.5; it is retained for reproducibility, not as the current default.

MetricMeanMedianRange
Hybrid (alpha=0.7)19.6ms16ms16-27ms
Dense-only (alpha=1.0)19.2ms17ms16-26ms
Sparse-only (alpha=0.0)8.8ms9ms7-11ms
Top-1 query set21.2ms21.5ms19-22ms
Total matches available20 per query--

Observations

  • Sparse search was fastest at 8.8ms mean query time.
  • Dense and hybrid search stayed under the 50ms target on the 76-chunk banking corpus.
  • The formerly failing regulatory-language query now resolves to morgan_stanley_2024.pdf in this fresh run.
  • All measured search modes remain suitable for interactive search without reranking.
Reproduce these benchmarks
# Seed data
just embed test-documents/banking --max-pages 5

# Run top-1 queries
just search "item part financial related bank america"
just search "banking global markets activities fees business"

# Latency test with different alpha values
just search "financial results" -- --alpha 0.7
just search "financial results" -- --alpha 1.0
just search "financial results" -- --alpha 0.0