Skip to content

Recommended defaults

TL;DR

  • No models: BM25 at chunking default, the shipped default. BM25 at h2 scores 92.5% recall@5 against 91.0%, a lead that is not significant (p 0.27), and it holds the answer within the first 1,000 tokens far less often (24.0% against 42.7%).
  • Local models: keep BM25 at default. Hybrid on bge-small-en-v1.5 at default reaches 92.5%, 1.5 points more, under the 5-point margin and not significant (p 0.36), though it puts the answer first more often (76.0% against 70.4%, p 0.02).
  • Hosted models: not measured yet; the local recommendation applies.
  • From the retrieval run recorded on 24 November 2026; BM25 and hybrid at default were run again on 25 November, with search_docs grouping its results by article (#575).

The configuration ExactDocs recommends for each budget, from the recorded retrieval run on the golden set.

When a dearer budget gets its own default

Only when it beats the cheaper one by at least 5 points of recall@5 and the difference is significant on the same cases (McNemar's test, p under 5%; How a default is chosen).

budget configuration chunking USD / 1000 questions why
none bm25 h2 $0.0000 best none configuration: bm25 at h2: recall@5 92.5%, nDCG@10 0.760, MRR 0.799, wrong-version rate 0, p95 71 ms, $0.0000 per 1000 questions
local bm25 h2 $0.0000 best local configuration: hybrid:bge-small-en-v1.5 at default: recall@5 92.5%, nDCG@10 0.787, MRR 0.832, wrong-version rate 0, p95 214 ms, $0.0000 per 1000 questions; +0.0 points of recall@5 over bm25, under the 5-point margin (McNemar mid-p 1): the cheaper bm25 at h2 stays the default
hosted not measured yet: needs a real-providers run - - -

No models

Use BM25 at chunking default, the shipped default.

BM25 at h2 comes first in the table above, but its lead does not change the default:

  • BM25 at h2 (only # and ## start a chunk) reaches 92.5% recall@5 against 91.0% at default. That is a lead of 4 questions out of 267, and it is not significant on any metric: recall@5 p 0.27, recall@1 p 0.62, MRR p 0.65, nDCG@10 p 0.57 (Retrieval results).
  • h2 also returns about twice the text per question: 7,065 estimated tokens in ten results against 3,464. Within the first 1,000 estimated tokens of what it returns, the answer is there in 24.0% of the cases against 42.7% at default, within 2,000 in 49.4% against 71.2% (both significant).
  • Between chunkings of one budget the benchmark names the best outright, so the table says h2. Changing the shipped default needs a significant gain, and this is not one.
  • merge-400 ties default (91.4%, p 0.73).

What default is, and how it compares with h6:

  • Library settings split_level 3 and max_chars 4,000: headings # to ### start a chunk, and a chunk over 4,000 characters is cut again at deeper headings.
  • It reaches 91.0% recall@5 on the golden set against 89.9% for BM25 at h6 (every heading starts a chunk), and it answers faster (p95 133 ms against 192 ms on 4 shared CPUs).
  • The recall@5 gain is not significant on its own (p 0.22). MRR (+0.016) and nDCG@10 (+0.020) are significantly better than at h6 (p 0.047 and 0.004).
  • That changed the shipped default (#381), on the numbers of the time.1 A library added without chunking settings gets this chunking.

Libraries that already exist keep their chunking

A library stores its chunking, so the change re-chunks none of the libraries that exist. Those added with ExactDocs 0.4 or earlier keep h6 (split_level 6, no bound). To move one, set its chunking to split_level 3 and max_chars 4,000 in the library's settings; its versions are re-chunked from the stored text.

Local models

Keep BM25 at default.

  • Hybrid search on BAAI/bge-small-en-v1.5 at default, the best local configuration, reaches 92.5% recall@5.
    • That is 1.5 points more than BM25 at default (as much as BM25 at h2, the no-model pick above): under the 5-point margin, and not significant on the same cases (McNemar mid-p 0.36 against default, 1 against h2).
    • It ranks the answer higher: recall@1 76.0% against 70.4% (p 0.02), and MRR and nDCG@10 significantly better than BM25's.
    • It needs the corpus embedded first (25 minutes for the whole golden corpus at default on a 4-CPU runner) and has a p95 of 214 ms on 4 shared CPUs.
  • Hybrid at h6, h2 and merge-400, and the cross-encoder, were not run again since the results are grouped by article, so their numbers are those of the search before it (Retrieval results). Then hybrid at merge-400 reached 91.0% recall@5, and the cross-encoder on BM25 at default 89.5% (not significantly above BM25, p 0.36) at about 2.5 s per question.

Hosted models

Not measured yet

No hosted embedding model, LLM judge, HyDE or agentic configuration has run on the golden set. A run of the manual Retrieval eval (real providers) workflow (eval-providers.yml) with the benchmark input ticked produces the numbers.

Until then, the local recommendation applies.2

Known weak spots

Each names the issue whose benchmark found it; none has an issue of its own yet.

  • No "no answer" signal. search_docs returned results for all 54 unanswerable cases in every configuration (0% empty), so an agent cannot tell from the results that a version's docs do not cover its question. Scores are comparable only within one search and no mode applies a relevance threshold. Found by the retrieval benchmark (#347).
  • Multi-page answers. On cross-page questions one page of the answer usually comes back and the others often do not (section recall@5 25 to 29 points below recall@5 for BM25 and hybrid at default). Found by #347.
  • Importer problems in the corpus. Zod v4's MDX pairs code fences wrongly and hides 60 headings, Pydantic keeps {#id} attributes in heading paths, MkDocs admonitions and tabs are read as code blocks, and Pydantic v1's includes stay unexpanded. Found by the golden set (#345) and measured by the ingestion benchmark (#346).
  • Cases reviewed by an agent only. The golden set was written and checked by agents (#345); an independent agent review of 90 cases found 25.6% of them wrong in some way and fixed them (#490, Golden set), but no person has reviewed them. The intervals measure sampling noise only (which cases happen to be in the set), not mistakes in the cases.
  • Gaps in the matrix. hybrid:bge-base-en-v1.5 did not run, and every hosted configuration is unmeasured (#347).

  1. Those numbers counted only a case's first section and undercounted h2 and merge-400. ↩

  2. The first agent results, open-weight agents on Ollama Cloud with ExactDocs on BM25, measure the agent, not a hosted retrieval model. ↩