Retrieval-augmented question answering over a bilingual collection of role-playing game books¶
November 2026
Abstract
We built and measured a question-answering system over 107 tabletop role-playing game books from two game lines, in French and English (8,045 pages, 4.5 million words), converted from PDF to Markdown with word-level checks. Each book mixes rules, tables, stat blocks, descriptive prose and images, as many document collections do. The 378 test questions cover rules, table values, setting facts, answers that need two passages, answers found only in a book of the other language, and questions the books do not answer. A model graded the answers against reference answers. The reranker matters most: it raises the share of questions whose passage is in the top 5 from 0.75 and 0.78 (keyword plus vector search) to 0.87 and 0.91. With Claude Haiku 5.5 answering from 12 passages reranked by bge-reranker-v2-m3 (bge), the study's final setup, retrieval answers 139 of 152 questions on one line (140 in a repeat run) and 206 of 226 on the other. An agent that searches the books itself with three tools answers 142 and 214, at 8 to 11 times the tokens. Larger Qwen3 search models add a few answers: Qwen3-Reranker-4B in place of bge brings retrieval to 142 and 212, Qwen3-Embedding-4B with that reranker brings it to 142 and 214, and Qwen3-Embedding-4B with Qwen3-Reranker-0.6B reaches 144 and 209 at about the final setup's search time. None of these gains is significant per line (p from 0.077 to 0.61), and the two among the 14 primary tests do not hold after Holm's correction. Without the French books, retrieval loses 23 of 152 answers, and dictionary-based query expansion recovers about half of them; it helps only when the library holds no book in the question's language. The best local open-weight models come within 3 to 5 answers of Claude Haiku 5.5 in retrieval mode (Inkling-2-Mini: 136 and 201), and the 1.7-billion-parameter LFM3-1.7B answers 124 and 169.
Key results in practice
- Rerank the search results. Run keyword search and vector search, merge the two lists, then rescore the best 50 with a reranker model. This is the largest single gain: the right passage reaches the top 5 for 0.87 and 0.91 of the questions, against 0.75 and 0.78 without it.
- Prepare the books. Split them at headings, start every passage with its book, heading path and page, and repeat the header row in every piece of a table (on line B's first 201 questions, repeating table headers and counting reprinted copies as found removed 2 of 21 misses).
- Give the model 12 passages from the question's game line. Searching only the game line the question is about keeps the other line's passages out of what the model reads; neither setting moves the answers beyond the noise.
- Keep books in the readers' language. Without the French books, 23 of 152 answers were lost; translating the search terms with a dictionary won back about half.
- A small hosted model is enough, and a local one comes close. Claude Haiku 5.5 answers about 91 % of the questions right on both lines; in retrieval mode, Inkling-2-Mini and Gemma 4, which fit a single GPU whole or almost whole, are within 3 to 5 answers of it (Gemma 4 ran on line A only). Most of Haiku 5.5's remaining errors come from the search, not the model.
- The reranker swap: Qwen3-Reranker-0.6B in place of bge. It needs no new embeddings and adds about 0.1 s of search per question. It finds more cross-language passages (recall at 12 of 0.87 on both lines, against 0.83 and 0.82) and slightly fewer same-language ones on line B; it answers 143 and 207, within the noise.
- The balance option: Qwen3-Embedding-4B with Qwen3-Reranker-0.6B. It gives the best line-A recall at 12 (0.949) and the best line-A count (144), and 209 on line B, at about bge's search time. It costs a 4 GB embedding model and embedding the library again (27 minutes against 7), and adds 1 and 2 answers over the reranker swap, not significantly.
- The quality-first option: Qwen3-Embedding-4B with Qwen3-Reranker-4B. It gives the best recall at every cutoff on line B and the best line-B count (214; 142 on line A), at about 4 times bge's search time. The 4B reranker alone gives most of its gain at 5 passages, without new embeddings. None of these three choices gains significantly over the final setup; search times are in Section 6.3.
- An agent that searches the books itself answers as many questions as the quality-first option, at 8 to 11 times the tokens.
1 Introduction¶
A question-answering system over real documents must handle more than running text: procedures stated in prose, values held in tables, facts spread over long descriptions, corrections printed in later volumes, and translations that cover only part of the collection. Tabletop role-playing game books hold all of these, so this study uses them as a test bed; its methods should carry over to other mixed collections, such as manuals or regulations, which it does not test.
Players and game masters ask their books two kinds of questions: rules ("how many dice does a skill test use?") and setting ("which language do the people of this region speak?"). A game has dozens of books, and a French-speaking group often owns the core books in French and the newer supplements only in English.
This study measures how well language models answer such questions from such a collection, and which setup to recommend. It asks:
- How much does each retrieval component (keyword search, vector search, fusion, reranking) contribute?
- How should the dataset be prepared (tables, copies, chunking, errata) so that retrieval finds the answer?
- What happens when the question and the answering book are in different languages, and does dictionary-based query expansion help?
- When does an agent that searches the books itself beat retrieval, and at what cost?
- How do hosted and local models compare?
It contributes a bilingual set of 378 questions with their source passages, paired measurements of retrieval components and dataset options set against the measured noise of generation and grading, a comparison of nine models in two modes, and a failure analysis behind the recommended configuration.
The books are copyrighted, so this report names no game, book or in-game term and shows no book or question text. The two game lines are called line A (71 books) and line B (36 books); Section 3 describes how they differ. Every example is invented.
Terms used in this report
- Chunk: a piece of a book in the index, at most about 1,500 characters. Passage: a chunk as the search returns it and the model reads it.
- Retrieval mode: a search program picks the passages and the model answers from them. Agent mode: the model searches and reads the books itself, with tools.
- Keyword search (BM25) ranks passages by the question's words, vector search by meaning, through embeddings; rank fusion merges the two lists.
- Reranker (cross-encoder): a model that reads the question with each candidate passage and scores how well the passage answers it.
- Recall at k: the share of questions whose source passage is among the first k passages returned.
- Line A, line B: the two game lines. D1 to D4: the four states of the library and the question set (Section 4.2).
- Final settings: game scope, the 50 best fused candidates (the rerank pool) reranked, 12 passages. Final setup: the final settings with Qwen3-Embedding-0.6B vectors and bge-reranker-v2-m3 (bge): the setup every comparison uses. First setup: whole library, pool 30, 8 passages.
- First and blind grades: the grader's first judgment, and a second one made without the answering model's name (Section 4.3).
- Within the noise: no larger than the difference between two runs of the same setup, 2 to 4 answers per line (Section 6.1). p: the probability of a difference at least this large if the two setups were equal; below 0.05 a difference is called significant.
- Two numbers joined by "and" are line A, then line B, unless marked otherwise; paired counts read "X gained, Y lost" for the setup or model named first.
2 Related work¶
Retrieval-augmented generation. Lewis et al. [1] condition a generator on retrieved passages, and Gao et al. [2] survey the pipelines that followed; ours is the basic retrieve-then-generate setup.
Retrieval and reranking. We combine BM25 [3], through SQLite FTS5 [4], with dense retrieval [5, 6] by reciprocal rank fusion [7], which Bruch et al. [8] compare with score-based fusion; BEIR [9] found BM25 a strong zero-shot baseline. A cross-encoder reranker [10] then rescores the fused list: bge-reranker-v2-m3 [11] (bge below), built on BGE M3 [12], or the Qwen3 rerankers, whose embedding models [13] give our vectors. No search model was fine-tuned on this corpus.
Cross-language retrieval. MIRACL [14] and mMARCO [15] cover retrieval within many languages; our case is across languages, as in TREC NeuCLIR [16]. Our query expansion follows the dictionary approach of Ballesteros and Croft [17]; model-generated expansions such as HyDE [18] and Query2doc [19] were not tested.
Questions and context. Our combined questions follow the multi-hop design of HotpotQA [20], and our absent questions the unanswerable questions of SQuAD 2.0 [21]. We give the model few passages, since models use the middle of a long context less well [22].
Model grading. Model judges show position, verbosity and self-preference biases [23, 24], and on open-domain questions they agree with people better than exact-match and token-overlap scores, though they accept some made-up long answers [25]. RAGAS [26] and ARES [27] automate RAG evaluation without reference answers. We grade against reference answers, and check the grader blind and with a second model.
Agents. Our agent follows ReAct [28], which interleaves reasoning and tool calls; IRCoT [29] and Self-RAG [30] are other ways to iterate retrieval. Its tools reach the hosted models through the Model Context Protocol (MCP) [31].
Chunking and conversion. Generated chunk context [32] and semantic chunking [33] are alternatives to our rule-based chunks at headings. PDF parsers, compared by OmniDocBench [34], such as Nougat [35] and Docling [36], read the page image; our conversion reads it too, but takes every word from the PDF text layer.
Statistics. We give Wilson score intervals [37], test paired outcomes with the exact McNemar test [38] as Dror et al. [39] advise, and apply Holm's procedure [40] to the tests the recommendation rests on. Smucker et al. [41] favour randomization tests for retrieval metrics; we test per-question full matches with McNemar instead.
3 Corpus¶
The corpus has 107 books in four collections: two game lines, each in French and English (Table 1).
Table 1. Corpus size by collection. Pages are page anchors in the Markdown; chunks are the passages of the default retrieval index. Words in tables leave out the separator rows.
| Collection | Books | Pages | Words | Markdown tables | Image links | Chunks | Mean chunk characters | Words in tables | Numbers per 1,000 words | Median words between headings |
|---|---|---|---|---|---|---|---|---|---|---|
| Line A, English | 58 | 2,983 | 1,583,275 | 2,613 | 1,635 | 10,844 | 895 | 9.0 % | 46.9 | 130 |
| Line A, French | 13 | 1,296 | 747,167 | 1,152 | 786 | 4,725 | 994 | 11.5 % | 41.8 | 155 |
| Line B, English | 18 | 225 | 100,659 | 57 | 110 | 648 | 960 | 2.5 % | 21.3 | 157 |
| Line B, French | 18 | 3,541 | 2,113,461 | 169 | 1,377 | 11,750 | 1,127 | 0.8 % | 14.3 | 238 |
| Total | 107 | 8,045 | 4,544,562 | 3,991 | 3,908 | 27,967 | about 1,000 | n/a | n/a | n/a |
The two lines have opposite language profiles. Line A is mostly English: each of its French books translates an English book the library also holds, and many English books (33 of them short supplements) have no French version. Line B is mostly French: the core rulebook, rules supplements, setting books and scenarios are French, and its 18 English books are short (225 pages in all), with no core rulebook. Besides rules and tables, the books hold stat blocks, setting chapters, scenarios, in-world letters and reports, maps, character sheets, sidebars and errata.
The lines also state their content differently, which makes each hard to search in its own way:
- Line A states its rules with numbers, in many tables and short sections (Table 1). Many answers are one row of a table, which a passage matches only when it carries the table's header and subject. Its supplements reprint rules, so many passages have near copies.
- Line B states its rules in prose, with few tables and long French sections, so a rule or a setting fact often sits in the middle of a long passage.
With the final setup, the search misses a needed passage for 6 of line A's 104 single-passage rule, value and lore questions against 3 of line B's 157; on both lines most misses fall on combined and cross-language questions: 9 of line A's 38 and 13 of line B's 56.
3.1 Conversion¶
Each book became one Markdown file. Claude agents wrote each page from its image, taking every word from the PDF text layer, and a check script failed any page whose words or word order differ from that layer. Every book reached zero failing pages, apart from a few pages whose text layer holds only part of the printed values; the residual error rate was not measured. Under every heading, a location line gives the book, the heading path and the page; tables keep their printed header row; and a reference such as "see page N of the core rulebook" becomes a link to that page. Publishers' errata are applied in place, with the printed text kept in a labelled region; a correction printed in a later book stays a separate passage that competes with the rule it corrects. Purchase watermarks, which carry the buyer's personal data, are removed.
For each line, a translation reference pairs French and English terms (rules vocabulary, traits, book titles) with the page that defines each: about 420 pairs for line B, from four French texts compared with their English originals, and about 2,750 for line A, from the 13 books that exist in both languages. A reviewer checked 60 random line-A rows against both books: 59 were right, and one wrong page was fixed.
4 Question set¶
The 378 questions are 152 on line A (104 in French, 48 in English) and 226 on line B (190 in French, 36 in English), of the kinds in Table 2. Each has a kind, an expected answer, one to five facts a correct answer must state, and its source passages, each given as a book file, a page anchor and an exact quote of at most 300 characters. Appendix C shows a record.
Table 2. Questions by kind and line.
| Kind | What it tests | Line A | Line B |
|---|---|---|---|
| Rule | a rule or mechanic stated in one passage | 41 | 73 |
| Value | a number or entry read from a table, stat block or list | 41 | 44 |
| Lore | a setting fact | 22 | 40 |
| Cross-language | the only answering book is in a language other than the question's | 23 | 38 |
| Combined | the answer needs two passages or two books, such as a rule and its later correction | 15 | 18 |
| Absent | the books do not answer; a correct answer says so | 10 | 13 |
| Total | 152 | 226 |
Line B's cross-language questions are 31 French questions answered only by English books and 7 English questions answered only by French books. Line A's first 66 questions, the paired questions, are French questions whose answer is printed both in a French book and in its English original (all but one list both as sources); they measure what a library without the French books loses.
4.1 Writing and checking¶
Sonnet agents wrote the questions, one agent per part of the library, worded as a player or game master would ask them; how they chose topics within each part was not recorded. Line B started with 201 questions; 25 French questions on the English-only books were added later, for the common cross-language case. An Opus agent checked each question against the books: the quote is under its anchor, it supports the answer, and no other passage answers differently. A script re-checked every quote and anchor, and the author checked a sample of line B.
4.2 Dataset states¶
The failure analyses found question defects, each fixed before the next runs: 9 questions were corrected and 27 line-B questions made to name their game. With these fixes and the library's growth, the study has four dataset states. D1 and D2 are earlier states with line B only; D3 adds line A, and D4 holds the corrections. Every table names its state. A few comparisons span two states and so include the question fixes: the agent repeat on line B (Section 6.1), the earlier agent gap (6.4) and the models run before and after the final setup (6.8). The model comparison uses state D3 (Table 7); the final-setup runs use state D4. D3 and D4 also exist as an English-only copy of line A, without its 13 French books. Appendix B lists the states and the corrections.
4.3 Scoring¶
Retrieval. A source is found when the lines of its quote lie inside the lines given to the model (adjacent ranges of one file add up), or when a given passage is a copy of the chunk holding the quote, since the books reprint text. A question scores 1 when every source of one group is found; a combined question scores the share of its sources found. Recall at k is the mean score within the first k passages, over the questions with sources (142 on line A, 213 on line B). A full match is stricter for combined questions: every part within the first k. Paired tests on retrieval use full matches.
Answers. Claude Sonnet 5.5 grades each answer, as agents over batches of 25 answers of one run. An answer is correct when it states every required fact and nothing contradicts them; for an absent question, when it says the books do not cover it. The grader reads the question's full record (expected answer, required facts, quotes and notes) and is told to judge from the expected answer, the required facts and the notes only. The grader does not search the books: it checks one answer against a record that says what to find, an easier task than answering. Given a reference answer, model judges make fewer grading errors, as measured on math questions [23], though they still accept some wrong answers [25]. Every count in this report is a model's judgment except one question's grade: after that line-A question was changed to accept either of two printed values (Appendix B.1), its grade was set to correct by hand in 7 D3 runs.
Grader checks. In the first grading, the records the grader read carried the answering model's name. Two checks bound what that, and the grader's own variation, could do:
- Blind regrade. The 2,496 answers of 20 runs (the model comparison, the final setup, the line-B runs of both modes and the baselines of the larger search models) were graded again from the question identifier and the answer text alone. Of these grades, 26 changed (1.0 %, Wilson 95 % interval 0.7 to 1.5 %), in both directions: 7 Claude answers became wrong and 3 right, and of the other models' answers 8 became wrong and 8 right. No run moved by more than 4 answers, and the order of the models held. Since this regrade both hid the name and graded a second time, 1.0 % bounds the name's effect and the grader's repeat noise together. Later runs were graded blind only. A comparison uses blind grades when both of its runs have them, and first grades otherwise.
- Second grader. Claude Opus 5.5 regraded six runs (672 answers, Sonnet's own included). The two disagreed on 7 answers (1 %), each a partial or hedged answer that Sonnet accepted and Opus did not. Sonnet's own answers had 1 disagreement in 184 and the other models' 6 in 488 (Fisher exact p = 0.68).
Two graders of one family agreeing does not measure the error against a person's judgment; they may share biases [23, 24].
5 Systems¶
The system answers in two modes (Figure 1).
Figure 1. Retrieval mode and agent mode. Token counts are per question, with Claude Haiku 5.5 in the final setup.
5.1 Retrieval mode¶
The index splits each book at headings into chunks of at most about 1,500 characters, each starting with its location line. A longer block is cut between lines, a table piece repeats the table's header rows, and a page change inside a chunk shows as a page marker. The index is one SQLite database: the chunks, an FTS5 full-text table and one float32 vector per distinct chunk text. Appendix C shows three passages as the model receives them.
A query runs four steps:
- BM25 and vector search over Qwen3-Embedding-0.6B vectors each return their top 50 candidates from the question's game line.
- Reciprocal rank fusion (k = 60) merges the two lists.
- A cross-encoder reranker rescores the best fused candidates against the question: 30 at first, 50 in the final setup.
- The first k passages (8 at first, 12 in the final setup) go to the chat model, which answers from them alone and cites book and page.
Options measured one at a time: query expansion with the translation reference (+expand adds the other language's
terms to the keyword query, +expand-all to the vector query too; the reranker always sees the original question),
removal of near-duplicate passages, five chunking rules, and the scope (the question's game line or the whole library).
Appendix A gives the exact settings.
5.2 Agent mode¶
The agent has three tools over the books of the question's game line: list the books (with each book's language and scope), search a regular expression (up to 40 matching lines), and read lines of a file (at most 120 lines and 20,000 characters per call). Its system prompt describes the library and a method: list the books, search key terms and their variants, read around the best hits, and answer only from what was read, with citations. After 20 tool calls it gets one last turn without tools.
5.3 Backends¶
The hosted models, Claude Haiku 5.5 and Claude Sonnet 5.5, ran through the Claude Code command line in non-interactive mode, isolated from user settings, tools and memory. In agent mode Claude Code runs the tool loop, and its only tools are the three harness tools, served over MCP with the same output as the local ones. The local models ran on llama.cpp [42] behind an OpenAI-compatible server, with the harness's own tool loop (table below).
Local models, their weight precision and where the weights sat during the runs.
| Model | Weights | Where the weights sat |
|---|---|---|
| Qwen3.8 Flash Next | 4-bit | mostly in main memory |
| Mistral Small 4 119B | 4-bit | mostly in main memory |
| Qwen3.6 35B-A3B | 4-bit | GPU, almost whole |
| Inkling-2-Mini (26.4B parameters, 3.4B active) | 4-bit | GPU, almost whole |
| Gemma 4 26B-A4B | 4-bit | GPU, whole |
| LFM2-24B-A2B | 4-bit | GPU, whole |
| LFM3-1.7B (dense) | 8-bit | GPU, whole |
The system prompt, passages and tools are the same for both, but the serving differs. Hosted runs use Claude Code's default temperature, its adaptive thinking and about 560 tokens of its own context. Local runs use temperature 0 and each model's default chat template, under which Qwen3.8, Qwen3.6, Gemma 4, Inkling-2-Mini and LFM3-1.7B reason before answering and Mistral Small 4 does not. A hosted-against-local comparison measures each model with its serving setup.
Times are wall time per answer, and they compare only between runs served the same way. The hosted models ran on the provider's service, whose load varies. The local models ran one at a time on one workstation with a single GPU, in three groups by where the weights sat (table above); weights mostly in the computer's main memory slow each generated token. A hosted time against a local one, or local times from different groups, measure the hardware as much as the model. The search times (embedding and reranking) were all measured on that workstation and compare with each other (Section 6.3).
6 Experiments and results¶
6.1 Repeat noise¶
A difference of 2 to 4 answers between two runs is within the noise, from three measured sources:
- Generation. Haiku 5.5 answered the same passages twice (retrieval, final setup), each run graded blind: 3 of 152 answers differed on line A (139 correct, 140 in the repeat) and 4 of 226 on line B (206 both times).
- Grading. The blind regrade changed 1.0 % of grades, about 2 answers per line.
- Agent runs. Two Haiku 5.5 agent runs on line A, differing only in game scope and two reworded questions, scored 146, then 142 on first grades (4 lost, none gained, none among the reworded questions). On line B, agent runs on states D2 and D4 scored 212, then 214, graded blind (8 gained, 6 lost).
Each repeat was run once, for Haiku 5.5 only; no local model was repeated. For scale, the Wilson 95 % interval of 139 of 152 is 85.9 to 94.9 %, and of 206 of 226 is 86.7 to 94.2 %. Figure 2 sets the answers with the final settings (Sections 6.3, 6.4 and 6.8) against this noise.
Figure 2. Correct answers by setup, state D4, graded blind, with a band of 4 answers either side of the final setup. Hosted setups use Claude Haiku 5.5. The axis starts at 72 %.
6.2 Retrieval components¶
The reranker matters more than any other part (Figure 3).
Figure 3. Recall at 5 and at 12 passages by retrieval method, state D4; the values are in Table D1. The axis starts at 0.6.
Reranking the hybrid list with bge-reranker-v2-m3 adds about 12 points at 5 passages. In full matches at 5 passages it gains 22 questions and loses 3 on line A (exact McNemar p < 0.001), and gains 32 and loses 5 on line B (p < 0.001), as the reranking literature predicts [10]. Fusion adds 3 to 7 points over vector search alone at 8 and 12 passages, significant on line B before correction (19 gained, 7 lost at 8, uncorrected p = 0.03) but not on line A (8 gained, 3 lost, p = 0.23).
BM25 alone is the weakest method on line A and level with vector search on line B, so the BEIR result [9] holds only in part. It is weakest on the cross-language questions, where it finds 0.44 (line A) and 0.50 (line B) at 5 against 0.74 and 0.63 for vector search. These questions explain about half of BM25's gap on line A; on line B, its lead on the other questions makes up for them. On the first state (D1, 201 line-B questions, pool 30), BM25, vector search, fusion and reranking gave 0.73, 0.77, 0.79 and 0.89 at 5.
6.3 Search models¶
Table 3 gives Haiku 5.5's answers for each embedding model and reranker, and for the agent. The search models are Qwen3-Embedding-0.6B, Qwen3-Embedding-4B, bge-reranker-v2-m3 (bge), Qwen3-Reranker-0.6B and Qwen3-Reranker-4B. The larger models help most on the cross-language questions, and no answer gain over the final setup is significant.
Table 3. Haiku 5.5 answers by search models and for the agent, final settings (game scope, pool 50, 12 passages), state D4, graded blind. Times: end of this section.
| Search | Line A, of 152 | Line B, of 226 | Cross-language A, of 23 | Cross-language B, of 38 | Cost per question |
|---|---|---|---|---|---|
| Qwen3-Embedding-0.6B, bge-reranker-v2-m3 (final setup) | 139; repeat 140 | 206; repeat 206 | 18; repeat 19 | 31; repeat 30 | about 0.9 s of search; about 7,600 to 7,900 tokens |
| Qwen3-Embedding-0.6B, Qwen3-Reranker-0.6B (reranker swap) | 143 | 207 | 19 | 34 | about 1 s of search |
| Qwen3-Embedding-0.6B, Qwen3-Reranker-4B | 142 | 212 | 19 | 34 | about 4 s of search |
| Qwen3-Embedding-4B, Qwen3-Reranker-0.6B (balance option) | 144 | 209 | 20 | 35 | about 1 s of search; the library embedded again |
| Qwen3-Embedding-4B, Qwen3-Reranker-4B (quality-first option) | 142 | 214 | 21 | 36 | about 4 s of search; the library embedded again |
| Agent with three tools | 142 | 214 | 21 | 36 | 85,092 (A) and 60,048 (B) tokens; about 5 tool calls |
The 0.6B reranker, the size of bge, ranks the cross-language questions better: at 12 passages it finds 0.87 of them on both lines, against 0.83 (A) and 0.82 (B) for bge. Over all questions it leads on line A (0.940 against 0.905 at 12; 5 full matches gained, none lost, p = 0.06). On line B it is level overall (0.934 against 0.942 at 12), because it trades same-language for cross-language recall. Its answer gains are within the noise: 6 gained and 2 lost on line A (p = 0.29), and 6 gained and 5 lost on line B (p = 1.0). It searches at about bge's speed (times below), so its better cross-language recall adds about 0.1 s of search per question (1.0 s against 0.9 s). This is the reranker swap; the final setup keeps bge, with which every other run was made.
The 4B reranker raises recall at 5 from 0.866 to 0.919 on line A (8 full matches gained, none lost, p = 0.008) and from 0.905 to 0.947 on line B (9 gained, none lost, p = 0.004). At 12 passages, the number the model gets, the gains shrink to 5 gained and none lost on line A (p = 0.06) and 4 gained and 1 lost on line B (p = 0.38); at 12 on line A, the 0.6B reranker equals it (0.940). Against the final setup's answers it gains 4 and loses 1 on line A (p = 0.38), and gains 9 and loses 3 on line B (p = 0.15).
The 4B embedding model raises hybrid recall at 5 on line A from 0.749 to 0.793 and leaves line B level (0.775 against 0.781). Its only full-match gain below 0.05 is on line B at 12 (13 gained, 4 lost, uncorrected p = 0.049). Once a reranker follows, it changes nothing measurable over all questions (p ≥ 0.2 under bge, p ≥ 0.45 under the 4B reranker).
Its effect shows on the cross-language questions. With both 4B models, the quality-first option, line B's 38 are found at 0.947 at every cutoff, against 0.868 with the 4B reranker alone (3 questions more, not tested for significance) and 0.816 at 12 with bge. Line A's 23 are found at 0.913, against 0.826 with bge. Over all questions, this option has the best line-B recall at every cutoff (0.956 at 5, 0.962 at 12). At 12 passages, the pair gains 8 full matches and loses 4 on line A (p = 0.39) and gains 8 and loses 3 on line B (p = 0.23) against the final setup. On line B's answers, it gains 12 and loses 4 against the final setup (p = 0.077), and gains 11 and loses 3 against its repeat (p = 0.06). Against the 4B reranker alone it gains 6 and loses 4 (p = 0.75). It answers 36 of the 38 cross-language questions, against 34 with the 4B reranker alone (not tested for significance).
The 4B embedding model with the 0.6B reranker, the balance option, gives the best line-A recall at 12 (0.949) and the best line-A count (144), and 209 on line B, with 20 of 23 and 35 of 38 cross-language questions. It finds the cross-language questions' passages at 0.91 (A) and 0.92 (B) at 12, against 0.83 and 0.82 for bge and 0.87 for the 0.6B reranker alone. On line B its overall recall at 12 is level with bge (0.942), because it trades same-language for cross-language recall (0.921 against 0.816). Against the final setup it gains 9 and loses 4 on line A (p = 0.27) and gains 9 and loses 6 on line B (p = 0.61). Over the reranker swap it adds 1 and 2 answers (pooled below). It is now the default of the evaluation tool.
Pooled over both lines, against the final setup: the 0.6B reranker gains 12 and loses 7 (p = 0.36), the 4B embedding model with the 0.6B reranker gains 18 and loses 10 (p = 0.19), the 4B reranker gains 13 and loses 4 (p = 0.049) and both 4B models gain 19 and lose 8 (p = 0.052). Both 4B models against the 4B embedding model with the 0.6B reranker gain 9 and lose 6 (p = 0.61), and the 4B embedding model with the 0.6B reranker against the 0.6B reranker alone gains 10 and loses 7 (p = 0.63). These pooled tests were chosen after the results, are not corrected for their number and are not among the primary tests of Section 6.10, so the 4B reranker's p = 0.049 is not counted as significant.
The search times below were measured in one sitting, with every search model whole on the same GPU and the same server settings. They give an order of magnitude to compare the search models with each other; other hardware gives other times. A search over the 378 questions took about 0.9 s per question with bge, 1.0 s with the 0.6B reranker and 3.9 s with the 4B reranker; with the 4B embedding model, 1.0 s and 4.0 s, so the larger query embedding model adds under 0.1 s per question. Embedding the library's 27,967 chunks took 7 minutes with the 0.6B embedding model and 27 with the 4B one.
The 4B reranker alone gives most of the 4B models' recall gain at 5 passages, at 4 to 5 times the search time. The 4B embedding model adds no measurable search time; it costs a larger model to serve and embedding the library again (27 minutes against 7), and it helps most where many questions are asked in a language other than their books'. The 8B sizes were not tested. The results give three choices: the reranker swap (the 0.6B reranker in place of bge), the balance option (the 4B embedding model with the 0.6B reranker) and the quality-first option (both 4B models).
6.4 Agent against retrieval¶
The agent leads the final setup by an insignificant margin: 9 gained and 6 lost on line A (p = 0.61), 15 gained and 7 lost on line B (p = 0.13). Under the first setup (D2, 8 passages, pool 30) the line-B gap was 212 against 207, graded blind (15 gained, 10 lost, p = 0.42), so better retrieval did not narrow it. The agent's gains concentrate where retrieval is weakest, on the cross-language questions. It costs 11 times the tokens on line A and 7.6 times on line B. Its median answer time, search included, is 2 to 3 times that of retrieval, whose times exclude the search (Table D2); with about 1 s of search added to retrieval, the agent takes about 1.5 to 2 times as long.
On state D2, the Haiku 5.5 agent answered 14 of the 17 questions where retrieval missed a source. Its own 13 misses, on the first grades, came from searches that never reached the passage (7), a passage seen but misread or used in part (3), combined questions only partly seen (2), and an absent question answered with a nearby rule (1). No answer hit the 20-call limit. Absent questions cost the most (6.7 tool calls and 103,550 tokens each), since proving absence takes the most searching. The agent cited fewer sources (0.77 against 0.92 for retrieval) although it saw 0.91 of them; the cause was not examined.
6.5 Dataset and chunking¶
On the first 201 line-B questions, repeating table headers in table pieces and counting reprinted copies as found cut the misses at 8 passages from 21 to 19, and the question fixes with two more books brought them to 15. Five chunking rules drawn from a diagnosis of the 21 misses each moved recall by one question at most, and all stay off. Appendix B gives the table, the causes of the misses and the rules.
Errata were applied before the questions were written, so their effect was not measured; one miss in the failure analysis came from a superseded rule that outranked its correction in a later book.
6.6 Library language and query expansion¶
Without the French books, Haiku 5.5's retrieval answers on line A drop from 136 to 113 (4 gained, 27 lost, p < 0.001; Figure 4 and Table 4). Qwen3.8 loses about as much (22 net against 23), so the loss comes from the search. The agent loses less (62 to 57 on the 66 paired questions), probably because it writes and translates its own search terms.
Figure 4. Line A answers with and without the French books, of 152 questions, 8 passages, pool 30, whole library, state D3, first grades. The axis starts at 100.
Table 4. Line A answers with and without the French books, of 152 questions, 8 passages, pool 30, whole library, state D3.
| Run | All 152 | Paired 66 | French 104 | English 48 | Combined 15 |
|---|---|---|---|---|---|
| Haiku 5.5, retrieval, both languages | 136 | 62 | 92 | 44 | 8 |
| Haiku 5.5, retrieval, English only | 113 | 38 | 68 | 45 | 5 |
Haiku 5.5, retrieval, English only, +expand-all |
124 | 46 | 78 | 46 | 7 |
| Qwen3.8, retrieval, both languages | 135 | 61 | 91 | 44 | 7 |
| Qwen3.8, retrieval, English only | 113 | 39 | 67 | 46 | 6 |
| Haiku 5.5, agent, both languages | 146 | 62 | 98 | 48 | 13 |
| Haiku 5.5, agent, English only | 136 | 57 | 91 | 45 | 12 |
Expansion helps only when the library lacks the question's language (Table 5). In the English-only library,
+expand-all raises recall at 8 on the paired questions from 0.47 to 0.59 (at 12, from 0.50 to 0.67), and Haiku 5.5's
answers from 113 to 124 (13 gained, 2 lost, p = 0.007). With both languages it costs recall.
Table 5. Recall at 8 passages on the 66 paired line-A questions, pool 30, state D3.
| Search | Both languages | English only |
|---|---|---|
| Plain | 0.91 | 0.47 |
+expand |
0.89 | 0.53 |
+expand-all |
0.85 | 0.59 |
The cross-language questions of Table 2 gain nothing from expansion in the library with both languages (D4, game scope,
pool 50). Under bge-reranker-v2-m3, +expand changes no ranking that matters, and +expand-all finds the same
cross-language passages while losing 1 to 4 full matches on each line. Under Qwen3-Reranker-0.6B, +expand-all finds
one more line-A cross-language question at 12 (21 against 20 of 23) and loses 1 to 6 full matches elsewhere (every p ≥
0.25). Fusing the plain and +expand-all lists (whole library, pool 30) moved recall at 12 by at most one question
(line A 0.898 to 0.901, line B 0.933 to 0.928). Expansion is therefore set per library: whoever builds a library knows
whether it lacks a language, but which book answers a question is unknown before the search.
6.7 Passages, rerank pool and scope¶
With 12 passages, Haiku 5.5 answers a few more questions than with 8, within the noise when the library holds both
languages. On line A (whole library, pool 30), it answers 140 against 138 (3 gained, 1 lost, p = 0.63; another
12-passage run of that setup scored 138, Table 6), and 129 against 123 in the English-only library with +expand-all
(7 gained, 1 lost, p = 0.07). On line B, both 12-passage runs answer 206 against 203 with 8, graded blind (5 gained,
2 lost, p = 0.45). Line B's recall barely changes (0.938 at 8, 0.942 at 12), so its gain comes from context around
passages already given; on line A, 3 questions whose source ranked 9 to 12 were answered. Tokens grow from about 5,700
to 7,900 per question, and Haiku 5.5's median answer time from 2.5 s to 3.3 s. No loss from the longer context [22]
was visible at 12 passages of about 1,000 characters.
The rerank pool and the game scope change recall by at most two questions per line and correctness by nothing measurable (Table 6).
Table 6. Recall at 12 and Haiku 5.5 retrieval answers (first grades) by rerank pool and scope, bge-reranker-v2-m3, 12 passages, state D4.
| Scope, pool | A recall | A answers | B recall | B answers | Other-line passages in top 12 (questions) |
|---|---|---|---|---|---|
| Whole library, 30 | 0.898 | 138 | 0.933 | 203 | 181 (66) |
| Game line, 30 | 0.898 | 139 | 0.933 | 202 | 0 |
| Whole library, 50 | 0.912 | not run | 0.942 | not run | 167 (62) |
| Game line, 50 | 0.905 | 138; repeat 141 | 0.942 | 209; repeat 207 | 0 |
The game scope changed 1 answer on line A and 9 on line B (4 gained, 5 lost; both p = 1.0), but it keeps the other line's passages out of the context: in the two-line library, before the questions named their game, 9 wrong agent answers across four models came from the other line's books.
The pool of 50 changed 5 answers on line A (2 gained, 3 lost, p = 1.0) and 9 on line B (8 gained, 1 lost, p = 0.039). Only 2 of those 9 came from a needed passage moving into the top 12, and graded blind the pool-50 run scores 206 rather than 209, so most of this gain is noise. The final setup keeps the pool of 50 for its small, consistent recall gain, at about 0.4 s per question more than pool 30.
6.8 Models¶
Given the same 8 passages, the four best models score within 5 answers of each other (Table 7: line A, both languages, whole library, pool 30, state D3).
Table 7. Models in retrieval mode, line A, state D3. Times are means per answer and compare only within one serving group (Section 5.3).
| Model | First grade, of 152 | Blind grade, of 152 | Served | Time per answer |
|---|---|---|---|---|
| Claude Sonnet 5.5 | 138 | 138 | hosted | 2.7 s |
| Claude Haiku 5.5 | 136 | 136 | hosted | 3.7 s |
| Qwen3.8 Flash Next | 135 | 134 | local, mostly main memory | 41 s |
| Qwen3.6 35B-A3B | 134 | 133 | local, almost whole on the GPU | 27 s |
| Gemma 4 26B-A4B | 123 | 124 | local, whole on the GPU | 14 s |
| Mistral Small 4 119B | 99 | 96 | local, mostly main memory | 15 s |
On the first grades, the four best models score 134 to 138 (133 to 138 blind) and share 14 failed questions, 13 of which lack a needed passage among the 8 (the 14th was a question defect, since fixed). Sonnet 5.5 scores highest, but its 2-answer lead over Haiku 5.5 is within the noise. Gemma 4 misreads more: 11 of its 12 misses that Haiku 5.5 and Qwen3.8 both answer leave out part of what was asked, such as a second date or a condition. Mistral Small 4 writes about 86 tokens per answer with no reasoning, misreads values and says the books do not cover rules its passages hold.
The local times mix how much each model writes with where its weights sit, so they do not rank the models. Qwen3.8 writes about 520 tokens per answer and Qwen3.6 about 1,530, yet Qwen3.8 is slower, being mostly in main memory; Mistral Small 4, also mostly there, matches Gemma 4's time by writing about a tenth as many tokens (Gemma 4 writes about 820).
As agents on a 32-question subset of line B (25 of them cross-language), in the library holding both lines, Sonnet 5.5 answered 32, Haiku 5.5 and Gemma 4 29, Qwen3.6 24 and Mistral Small 4 10. Strong agents are near the maximum there, so the subset separates only weak agents from strong ones.
With the final settings (Figure 2, Table D2), Gemma 4's retrieval answers rose from 124 to 135 (12 gained, 1 lost, p = 0.003). The change bundles three settings (scope, pool, passages) and the question fixes, so no single one gets the credit. Qwen3.6 stayed level (134 against 133; 8 gained, 7 lost). On the same passages, Haiku 5.5 answers 4 more than Gemma 4 (6 gained, 2 lost, p = 0.29) and gains 7 and loses 2 against Qwen3.6 (p = 0.18), and Gemma 4 gains 6 and loses 5 against Qwen3.6 (p = 1.0).
As an agent on all of line B, Gemma 4 answers 14 fewer than the Haiku 5.5 agent (6 gained, 20 lost, p = 0.009) and fewer than Haiku 5.5's retrieval (p = 0.42 against its run, 0.41 against its repeat). But 11 of its 26 misses are empty answers cut at the 8,192-token output limit, 10 of which the Haiku 5.5 agent answers; on the other 215 questions the Haiku 5.5 agent gains 10 and loses 6 (p = 0.45). The gap may come from the output limit as much as from the model; its cut answers were not rerun.
Two newer models ran only with the final setup, on both lines; they are the only local models run in retrieval mode with it on line B. Inkling-2-Mini answers 136 of 152 on line A and 201 of 226 on line B, 3 and 5 answers behind Haiku 5.5, not significantly (Table D4: p = 0.38 and 0.23; both lines together 4 gained, 12 lost, p = 0.077), and it is not distinguishable from Gemma 4 and Qwen3.6 at this sample size. Of its answers, 10 are empty, cut at the 8,192-token output limit. Without those 10 answers it is level with Haiku 5.5: 136 against 138 of 148 on line A (1 gained, 3 lost, p = 0.63) and 201 against 201 of 220 on line B. The gap comes mostly from runaway answers: in 8 of the 10 cut answers, its reasoning repeats the same text until the limit, and doubling the limit recovers 3. In that side run of the 10 questions with 16,384 tokens, 6 answers finish, 3 of them right, and the other 4 still run past the 10-minute request timeout. With them it answers 137 of 152 and 203 of 226, 2 and 3 behind Haiku 5.5 (both lines together 4 gained, 9 lost, p = 0.27). The counts above keep the 8,192-token limit that every model had.
LFM3-1.7B, about a fifteenth the size of Inkling-2-Mini or Gemma 4, answers 124 of 152 (81.6 %) and 169 of 226 (74.8 %); Haiku 5.5 and Inkling-2-Mini lead it significantly, and Gemma 4 only before correction (Table D4, p = 0.035). It writes about 2,700 to 3,000 tokens per answer, and 21 of its answers are empty at the output limit; without them, Haiku 5.5 still gains 13 and loses 2 against it on line A (p = 0.007) and gains 31 and loses 4 on line B (p < 0.001), so its weakness is the model, not the output limit (Section 6.9). With 16,384 tokens, all 21 cut answers finish, most of them needing between 8,000 and 13,600 tokens on the retry, and 10 of them are right: 127 and 176, still significantly behind Haiku 5.5 (both lines together 6 gained, 48 lost, p < 0.001).
The subset tests (without the cut answers) and the pooled tests (both lines together) of this section were chosen after the results and are not corrected for their number.
On the earlier line-B states, the Qwen3.8 agent answered 199 of 201 questions (D1), at a median of about 2 minutes per answer with most of its weights in main memory. LFM2-24B-A2B was right 60 % of the time with the passages given (D2, 8 passages), and 3 % as an agent (D1), where it barely called the tools.
6.9 Failure analysis¶
For the strong models the limit is retrieval; for the weak ones, the model. Table 8 sorts the wrong retrieval answers on line B by cause, from the ranks of the passages each model received (8 passages, state D2, first grades: 206 correct for Haiku 5.5, 20 wrong), and Figure 5 groups the causes.
Figure 5. Share of each model's wrong retrieval answers on line B by cause, state D2, first grades; each bar ends with the model's number of wrong answers, of 226 questions. "Needed passage not given" includes combined questions with a part missing; "passage given" includes combined questions with every part given. The count lacking a passage is nearly the same for the three models, since they read the same passages.
Table 8. Wrong retrieval answers by cause, line B, 226 questions, state D2.
| Cause | Haiku 5.5 | Qwen3.8 | LFM2 |
|---|---|---|---|
| Passage given, answer still wrong (misread, incomplete) | 2 | 6 | 58 |
| Passage not given (rank over 8 or none) | 10 | 8 | 9 |
| Combined, only some parts given | 6 | 5 | 6 |
| Combined, all parts given, answer incomplete | 0 | 0 | 8 |
| Combined, no part given | 1 | 1 | 1 |
| Absent question answered | 1 | 1 | 9 |
| Total | 20 | 21 | 91 |
A passage is missing in 17 of Haiku 5.5's 20 wrong answers and 14 of Qwen3.8's 21, and in all 14 questions both fail: a better model alone does not fix these. LFM2 had every passage it needed in 66 of its 91 wrong answers. Line A shows the same split (8 passages, state D3, first grades). Wrong answers with the passage given and with a passage missing: Sonnet 5.5, 1 given and 13 missing; Haiku 5.5, 1 and 15; Qwen3.8, 3 and 14; Qwen3.6, 3 and 15; Gemma 4, 13 and 16; Mistral Small 4, 35 and 16 (plus 2 wrong answers to absent questions).
The final setup (12 passages, state D4, blind grades) gives every model the same passages, so the same questions lack a needed passage for every model: 15 on line A and 16 on line B. The models still answer 3 or 4 of them on line A and 1 on line B, so 11 or 12 wrong answers on line A and 15 on line B lack a passage (Table D3). The models differ in wrong answers with the passage given: 2 and 3 for Haiku 5.5, 4 and 8 for Inkling-2-Mini (cut answers included), 6 on line A for Gemma 4 and Qwen3.6, and 14 and 42 for LFM3-1.7B (cut answers included).
6.10 Statistical summary¶
Table 9 lists the 14 paired tests on answers, chosen before the last search-model runs.
Table 9. Primary tests on answers (Haiku 5.5, exact McNemar), with Holm adjustment over the 14. Tests between runs that both have blind grades use them.
| Comparison | Line | Gained / lost | p | Holm-adjusted p |
|---|---|---|---|---|
| French books removed (D3) | A | 4 / 27 | < 0.001 | < 0.001 |
+expand-all, English-only library, 8 passages (D3) |
A | 13 / 2 | 0.007 | 0.10 |
| Pool 50 against 30 (D4) | B | 8 / 1 | 0.039 | 0.47 |
| Qwen3-Embedding-4B with Qwen3-Reranker-4B against the final setup (D4, blind) | B | 12 / 4 | 0.077 | 0.85 |
| Agent against retrieval, final setup (D4, blind) | B | 15 / 7 | 0.13 | 1.0 |
| Qwen3-Reranker-0.6B against bge-reranker-v2-m3 (D4, blind) | A | 6 / 2 | 0.29 | 1.0 |
| 12 passages against 8 (D4, blind) | B | 5 / 2 | 0.45 | 1.0 |
| Qwen3-Embedding-4B with Qwen3-Reranker-4B against the final setup (D4, blind) | A | 7 / 4 | 0.55 | 1.0 |
| Agent against retrieval, final setup (D4, blind) | A | 9 / 6 | 0.61 | 1.0 |
| 12 passages against 8 (D4) | A | 3 / 1 | 0.63 | 1.0 |
| Qwen3-Reranker-0.6B against bge-reranker-v2-m3 (D4, blind) | B | 6 / 5 | 1.0 | 1.0 |
| Pool 50 against 30 (D4) | A | 2 / 3 | 1.0 | 1.0 |
| Game scope against whole library (D4) | A | 1 / 0 | 1.0 | 1.0 |
| Game scope against whole library (D4) | B | 4 / 5 | 1.0 | 1.0 |
Only the loss from removing the French books holds after adjustment. Expansion comes closest (11 net answers, about 3 times the repeat noise), then the two 4B models on line B (8 net); the 7 net answers of the 50-candidate pool shrink under blind grades (Section 6.7). The other settings rest on small, consistent recall gains. On retrieval, reranking against fusion alone at 5 passages (p < 0.001 on both lines) holds under Holm's correction for the roughly 40 retrieval tests of this report, while the 4B reranker against bge (p = 0.008 and 0.004) does not. The 4B reranker alone and the 4B embedding model with the 0.6B reranker were answer-tested after the 14 tests were set and are not among them. The other p values in this report are per test, not corrected.
7 Recommended configuration¶
Use retrieval with the settings of Table 10. The agent answers as many questions as the quality-first option, at 8 to 11 times the tokens.
Table 10. Recommended configuration. Search times: Section 6.3.
| Part | Setting | What it is worth | Cost |
|---|---|---|---|
| Keyword search | BM25 over SQLite FTS5, top 50 | recall at 5 of 0.66 (A) and 0.72 (B) alone | none measurable |
| Vector search | Qwen3-Embedding-0.6B, instruction-prefixed query, top 50 | 0.75 and 0.73 alone | an embedding model to serve |
| Fusion | reciprocal rank fusion, k = 60 | 0.75 and 0.78; +3 to 7 points at 8 and 12 | none measurable |
| Reranking | bge-reranker-v2-m3 over the best 50 (the study's setting) | 0.87 and 0.91 at 5, the largest single gain; recall at 12 of 0.905 and 0.942, cross-language recall at 12 of 0.83 and 0.82; 139 and 206 answers | a second model; about 0.9 s per question for the whole search |
| Search models, the reranker swap | Qwen3-Reranker-0.6B in place of bge-reranker-v2-m3 | recall at 12 of 0.940 and 0.934, cross-language recall at 12 of 0.87 and 0.87; 143 and 207 answers; within the noise | no new embeddings; about 1 s per question, 0.1 s more than bge |
| Search models, the balance option | Qwen3-Embedding-4B with Qwen3-Reranker-0.6B; the evaluation tool's default | recall at 12 of 0.949 and 0.942, cross-language recall at 12 of 0.91 and 0.92; 144 and 209 answers; not significant | a 4 GB embedding model; the library embedded again (27 minutes against 7); about 1 s per question |
| Search models, the quality-first option | Qwen3-Embedding-4B with Qwen3-Reranker-4B; the 4B reranker alone gives most of the gain at 5 passages, without new embeddings | recall at 12 of 0.945 and 0.962, cross-language recall at 12 of 0.91 and 0.95; 142 and 214 answers; not significant | two 4 GB models; the library embedded again (27 minutes against 7); about 4 s per question |
| Passages | 12 | 2 and 3 more answers than 8, within the noise | about 7,900 tokens per question instead of 5,700 |
| Scope | the question's game line | no other-line passage in the context | the user names the game |
| Expansion | +expand-all, only for a library with no book of the line in the question's language |
English-only library: 113 to 124 answers of 152 | a translation reference per line; costs recall in a mixed library |
| Chunking | at headings, at most about 1,500 characters, location line, table headers repeated | 2 of 21 misses removed, with copy scoring | none |
| Chat model | Claude Haiku 5.5, or Inkling-2-Mini, Gemma 4 26B-A4B or Qwen3.6 35B-A3B locally | 139 (140 in a repeat) and 206 with Haiku 5.5; 134 to 136 (A) and 201 (B, Inkling-2-Mini) locally | hosted, or a local GPU that holds all or almost all of the model (median 17 to 33 s per answer on the study's workstation); Inkling-2-Mini left 10 of 378 answers empty at the output limit |
8 Limitations¶
- Model grading. Apart from one question whose grade was set by hand in 7 runs (Section 4.3), every count is a model's judgment, made against a record of what a correct answer states. The blind regrade bounds the effect of the model's name at about 1 % of grades, and a second grader agreed on 99 % of answers, but neither measures the error against a person. Where the two graders disagreed, the answer was partial or hedged; the failure analyses also found and fixed 36 defects in the records (Appendix B.1), and more may remain. The graders are Claude models, like the question writers and two of the models tested; hiding the name does not hide a family's style, which a grader may prefer [23].
- Two grade sets. Tables 4, 6 and 8, Figures 4 and 5 and a few comparisons use first grades, the others blind grades; the same answers can differ by up to 3 between the two (Table 6 against Tables 3 and D2).
- Model-written questions. Their wording may favour the vocabulary models use, and more defects may remain after the fixes of Appendix B.1.
- Prior knowledge. The chat models may know the published games from their training: at least two right answers had no source among the passages given (other questions answered without a needed passage, Section 6.9, may have had a partial or alternative passage).
- Fixes measured on the questions that revealed them. The same people and agents built the questions, the dataset and the system, and diagnosed the failures that led to the fixes, which favours the final configuration. About ten retrieval variants were compared on these 378 questions and the best was answer-tested on the same questions, which likely overstates its gain.
- Incomplete relevance judgments. Recall credits only the listed sources (alternatives were added after failures), so another passage that answers scores a miss. This biases recall against new retrievers and against the agent.
- Dependent questions. Questions written per part of the library may rest on the same passage; McNemar's test assumes independence, so its p values are somewhat optimistic. Outside Table 9 and the reranker tests, they are not corrected for multiple tests.
- Small subsets. The 32-question agent subset is near its maximum for strong agents, and the combined questions number 15 and 18 per line.
- Single repeats. The repeat noise rests on one repeat per line, for Haiku 5.5 only. Paired tests against the final setup use its first run.
- Recall-only measurements. The chunking rules, fusion and expansion in the mixed library were judged on recall, not answers.
- Serving setups. Hosted and local models ran with different tool loops, temperatures and reasoning settings. The output limit of 8,192 tokens, the same for every model, cut 11 of the local Gemma 4 agent's answers, 10 of Inkling-2-Mini's and 21 of LFM3-1.7B's; they count as wrong. A side run at twice the limit recovers 3 of Inkling-2-Mini's and 10 of LFM3-1.7B's; the Gemma 4 agent's were not rerun (Section 6.8). Of Inkling-2-Mini's 10 cut answers, 8 end in repeated text, which temperature 0 may favour. LFM3-1.7B's are long reasoning that ran out of room; its model card recommends temperature 0.1 with a repetition penalty of 1.1, and the runs used temperature 0 and no penalty.
- Times. Answer times are not a speed ranking of the models (Section 5.3). Search times are an order of magnitude, measured in one sitting; they rank the search models against each other on one GPU, and other hardware gives other times.
- Images. No question tests what an image shows; the system retrieves text only.
- Two game lines. Other document collections, games, languages or layouts may behave differently.
9 Conclusion¶
The five questions of the introduction have these answers on this corpus.
- Components. The cross-encoder reranker matters most: about 12 points of recall at 5 over the fused list, significant on both lines, and about 4 to 5 more with the Qwen3 4B reranker. Fusion adds 3 to 7 points over vector search. BM25 alone is the weakest method on line A and level with vector search on line B.
- Dataset. Repeating table headers in table pieces and counting reprinted copies removed 2 of 21 misses; the question fixes and two more books removed 4 more. No chunking rule moved recall by more than one question on the first 201 line-B questions; on D4, merging gained about 2 line-A questions and lost 3 line-B ones (Appendix B.2).
- Languages. A library without the question's language loses 23 of 152 answers, the only difference in answers that holds after correction. Dictionary-based expansion recovers about half of them, and helps only in that case.
- Agent. The agent matches retrieval with both Qwen3 4B search models (142 and 214 answers) at 8 to 11 times the tokens. Its gains come on the cross-language questions, and its lead over the final setup is not significant.
- Models. Given the same passages, Claude Sonnet 5.5, Claude Haiku 5.5, Qwen3.8 and Qwen3.6 score within 5 answers of each other (blind grades), and their misses come mostly from passages the search did not find. With the final setup, Inkling-2-Mini, Gemma 4 and Qwen3.6 trail Haiku 5.5 by 3 to 5 answers on line A, and Inkling-2-Mini by 5 on line B; no gap is significant. Mistral Small 4, LFM2 and LFM3-1.7B are limited by the model, though LFM3-1.7B still answers 82 and 75 %.
Between good setups, most answer differences are within the noise of 2 to 4 answers per line, so the recommended configuration rests on recall gains more than on answer gains.
10 Further work¶
- The 8B search models, and repeat runs of the 4B models' answers to settle their line-B gain.
- Line A's remaining misses with the final setup: passages ranked just past the 12th; French questions whose English answer is outranked by a near-topic French passage; combined questions whose second passage is found only by reading the first; a value heading cut off from its lead sentence; a stat block that is mostly a skill list.
- Generated chunk context [32], for the misses where a chunk lacks its subject or a value heading its lead line.
- Query translation by a model, or a generated passage as in HyDE [18], against dictionary expansion.
- Falling back to the agent only when the retrieval answer says "not covered", to target retrieval misses at a lower cost.
- A larger question set and a human-graded subset, to narrow the intervals and calibrate the grader.
- Other mixed collections, such as manuals or regulations, and other game lines.
- Dataset changes from the analyses, to repeat the number of a numbered heading series in the body, caption a table with the bold line above it, and label a superseded rule with its correction.
Appendix A. Settings¶
- Keyword query. The question's word tokens (Unicode word characters), each quoted and joined with OR; expansion
adds the other language's terms as quoted phrases. FTS5 uses the unicode61 tokenizer with diacritics removed and no
stemming; ranking is
bm25(). - Vector search. Exhaustive cosine similarity over float32 vectors (no approximate index). The query is prefixed with "Instruct: Given a question about a tabletop role-playing game, retrieve the rulebook passages that answer it", then "Query:" and the question; chunk texts are embedded as they are.
- Inputs. Questions are cut at 1,000 characters for retrieval, and texts sent to the embedding and reranking models at 5,000 characters. The reranker scores the question against each candidate chunk text.
- Recall. Measured on the best 16 passages.
- Models. Qwen3-Embedding-0.6B, Qwen3-Embedding-4B, Qwen3-Reranker-0.6B, Qwen3-Reranker-4B and bge-reranker-v2-m3 at 8-bit weights; local chat models at 4-bit weights (LFM3-1.7B at 8-bit), each model's default chat template, temperature 0, the model's full context, an output limit of 8,192 tokens and a 10-minute request timeout. Hosted models through Claude Code 2.1.311 with its defaults and the same output limit.
- Agent search. A matching line over 300 characters is shown as a window around the match.
- Grading. The last answer line of a question counts; an empty answer or an error is wrong.
Appendix B. Study history¶
B.1 Dataset states¶
The question defects fixed during the study:
- 7 line-B questions had a single source while another passage answered equally, or an expected answer that did not match the wording;
- 27 line-B questions that a line-A book could also answer ("how many languages can a new character speak?") were made to name their game;
- one line-A question was reworded after every strong model read a qualifier in it the same wrong way, and another now accepts either of the two values two books print.
Sources also gained optional groups, so that another passage of the same book can count. These fixes and the library's growth give four states (Table B1).
Table B1. Dataset states.
| State | Library | Questions |
|---|---|---|
| D1 | line B only, 34 books | the first 201 line-B questions |
| D2 | line B only, 36 books | 226 line-B questions: 7 corrected, 25 added |
| D3 | both lines, 107 books | 378: the 152 line-A questions added |
| D4 | both lines, 107 books | 378: 2 line-A questions corrected, 27 line-B questions name their game |
B.2 Dataset changes and chunking rules¶
Each change of Table B2 was measured on retrieval, with hybrid search and reranking (pool 30).
Table B2. Retrieval after dataset changes, line B, 201 questions, states D1 and D2.
| Change | Recall at 5 | Recall at 10 | Questions missed at 8 |
|---|---|---|---|
| First index (D1) | 0.89 | 0.92 | 21 |
| Table pieces repeat their header; copies of a source count as found | 0.89 | 0.92 | 19 |
| Five chunking rules, each alone | within 1 question | ||
| Question corrections, alternative sources, two more books (D2) | 0.91 | 0.94 | 15 |
The 21 first misses had these causes: the question's words differ from the book's (5, such as an invented question asking a "price" where the table says "cost"), a table piece without its header (3), the question in a language other than its only book's (3), a chunk whose subject sits in the previous chunk (3), a passage too long or mixed with another topic (3), a hidden step or a table under the wrong heading (2), a near copy that outranks the source (1), and a wrong question (1).
The five chunking rules drawn from this list merge short sibling chunks, cut long blocks at the paragraph nearest the middle, give sidebars their own chunk, cut long named lists into groups that repeat the list's subject, and write symbol ratings as numbers. On D4, merging gained about 2 line-A questions and lost 3 line-B ones at 8 passages, and did not fix the line-A miss it targeted. Removing near-duplicate passages changed no recall. All stay off.
Appendix C. Data formats¶
The records below show each format with invented content.
Question. One JSON object per line. Each record also holds an identifier and its game line; must lists the facts
the grader checks, and a source names the book file, the page anchor above the quote, and an exact quote. An optional
group on sources marks another passage that answers on its own.
{
"lang": "en",
"kind": "value",
"question": "How much does a night at a roadside inn cost?",
"answer": "5 coins a night, meals included.",
"must": ["5 coins", "meals included"],
"sources": [
{"file": "books/line-a-en/example-core-book/example-core-book.md", "anchor": "p142",
"quote": "| Roadside inn | 5 coins a night | meals included |"}
],
"notes": "From the lodging table of the equipment chapter; a later supplement repeats it unchanged."
}
Passages. Three passages as the chat model receives them in retrieval mode: a number with the passage's file and page, the book title, the location line (book, heading path, page), then the text. The first is a piece of a table, which repeats the table's header row; the second is a rule in prose that runs onto the next page, shown by a page marker; the third is a setting passage with a sidebar, which keeps its label.
[1] books/line-a-en/example-core-book/example-core-book.md#p142
Example Core Book
[Example Core Book › Equipment › Lodging · p. 142]
| Lodging | Price | Notes |
|---|---|---|
| Roadside inn | 5 coins a night | meals included |
| City hostel | 2 coins a night | no meals |
[2] books/line-a-en/example-core-book/example-core-book.md#p22
Example Core Book
[Example Core Book › Rules › Skill tests › Helping another character · p. 22]
A character who helps another adds one die to the test, whatever their own skill. Only one helper counts: a second
helper adds nothing.
[page p23]
If the test fails, the helper shares its consequences, as the Damage section describes.
[3] books/line-a-en/example-setting-book/example-setting-book.md#p57
Example Setting Book
[Example Setting Book › The Northern Valleys › Languages · p. 57]
The valley people speak their own tongue at home and the trade language at the markets. Few of them write either.
> **[Sidebar]** Learning the local tongue
> A traveller who spends a full season in the valleys learns enough of the local tongue to bargain.
Translation reference. A Markdown table per line of books, pairing the terms of the two languages with the pages
where each appears; codes such as CB name the books, listed at the top of the file.
| French | English | French source | English source | Note |
|---|---|---|---|---|
| Auberge de bord de route | Roadside inn | [LB p142] | [CB p142] | Equipment |
| Aide d'un compagnon | Helping another character | [LB p22] | [CB p22] | Rules heading |
Answer and grade. Each run stores one answer record and one grade per question, joined by the question's
identifier. The answer record names the model and mode, lists the passages given (file, line range, page anchor), the
pages the answer cites as file#anchor (the form the system prompt asks for), the tool calls made (steps, 0 in
retrieval mode), why generation stopped, the tokens and the wall time. The first grades, and the grades of runs graded
only blind, carry the grader's note; the blind regrades of earlier runs do not.
{"id": "example-001", "mode": "rag", "model": "claude-haiku-5-5",
"answer": "5 coins a night, meals included (books/line-a-en/example-core-book/example-core-book.md#p142).",
"passages": [{"file": "books/line-a-en/example-core-book/example-core-book.md", "start_line": 6734,
"end_line": 6740, "anchor": "p142"}],
"citations": ["books/line-a-en/example-core-book/example-core-book.md#p142"], "steps": 0, "stop_reason": "answer",
"prompt_tokens": 7412, "completion_tokens": 96, "wall_seconds": 3.1, "error": null}
{"id": "example-001", "correct": true, "note": "states both required facts"}
Appendix D. Detailed results¶
Table D1. Recall at 5, 8 and 12 by retrieval method, game scope, state D4. The vector search uses Qwen3-Embedding-0.6B unless the row names the 4B model.
| Retrieval | A, 5 | A, 8 | A, 12 | B, 5 | B, 8 | B, 12 |
|---|---|---|---|---|---|---|
| BM25 (FTS5) alone | 0.659 | 0.701 | 0.733 | 0.721 | 0.777 | 0.805 |
| Vector search alone | 0.748 | 0.765 | 0.829 | 0.732 | 0.772 | 0.800 |
| Hybrid (rank fusion of both) | 0.749 | 0.807 | 0.862 | 0.781 | 0.837 | 0.865 |
| Hybrid, bge-reranker-v2-m3 over the best 50 | 0.866 | 0.887 | 0.905 | 0.905 | 0.938 | 0.942 |
| Hybrid, Qwen3-Reranker-0.6B over the best 50 | 0.873 | 0.908 | 0.940 | 0.897 | 0.921 | 0.934 |
| Hybrid, Qwen3-Reranker-4B over the best 50 | 0.919 | 0.940 | 0.940 | 0.947 | 0.950 | 0.953 |
| Hybrid with Qwen3-Embedding-4B | 0.793 | 0.844 | 0.868 | 0.775 | 0.847 | 0.906 |
| Same, bge-reranker-v2-m3 over the best 50 | 0.856 | 0.873 | 0.891 | 0.910 | 0.938 | 0.949 |
| Same, Qwen3-Reranker-0.6B over the best 50 | 0.882 | 0.931 | 0.949 | 0.893 | 0.921 | 0.942 |
| Same, Qwen3-Reranker-4B over the best 50 | 0.917 | 0.938 | 0.945 | 0.956 | 0.960 | 0.962 |
Table D2. Final settings (game scope, pool 50, 12 passages), state D4, graded blind. Retrieval times exclude the search: the runs read saved passages. Times are medians, since answers cut at the output limit stretch the means, and compare only within one serving group (Section 5.3); a range spans the runs and lines of a row.
| Model, mode | Served | Line A, of 152 | Line B, of 226 | Median answer time | Output tokens per answer |
|---|---|---|---|---|---|
| Haiku 5.5, retrieval | hosted | 139 (91.4 %); repeat 140 (92.1 %) | 206 (91.2 %); repeat 206 | 3.2 to 3.6 s | about 450 |
| Haiku 5.5, agent | hosted | 142 (93.4 %) | 214 (94.7 %) | 6.9 to 8.2 s | 1,130 to 1,280 |
| Qwen3.6 35B-A3B, retrieval | GPU, almost whole | 134 (88.2 %) | not run | 27 s | 1,590 |
| Gemma 4 26B-A4B, retrieval | GPU, whole | 135 (88.8 %) | not run | 17 s | 920 |
| Gemma 4 26B-A4B, agent | GPU, whole | not run | 200 (88.5 %) | 41 s | 2,010 |
| Inkling-2-Mini, retrieval | GPU, almost whole | 136 (89.5 %) | 201 (88.9 %) | 28 to 33 s | 1,060 to 1,100 |
| LFM3-1.7B (8-bit), retrieval | GPU, whole | 124 (81.6 %) | 169 (74.8 %) | 9 to 11 s | 2,670 to 3,030 |
Table D3. Wrong retrieval answers by cause, final setup (12 passages, state D4, blind grades): passage missing / passage given / absent question answered.
| Model | Line A | Line B |
|---|---|---|
| Haiku 5.5 | 11 / 2 / 0 | 15 / 3 / 2 |
| Inkling-2-Mini | 12 / 4 / 0 | 15 / 8 / 2 |
| Gemma 4 26B-A4B | 11 / 6 / 0 | not run |
| Qwen3.6 35B-A3B | 11 / 6 / 1 | not run |
| LFM3-1.7B | 12 / 14 / 2 | 15 / 42 / 0 |
Answers cut at the output limit whose passage was given count under "passage given": 1 and 4 for Inkling-2-Mini, 4 and 10 for LFM3-1.7B. The other cut answers lacked a passage and count under "passage missing".
Table D4. Paired tests of local models with the final setup (exact McNemar, blind grades; p values per test, not corrected). Gained and lost are for the model named first.
| Comparison | Line | Gained / lost | p |
|---|---|---|---|
| Inkling-2-Mini against Haiku 5.5 | A | 1 / 4 | 0.38 |
| Inkling-2-Mini against Haiku 5.5 | B | 3 / 8 | 0.23 |
| Inkling-2-Mini against Gemma 4 | A | 6 / 5 | 1.0 |
| Inkling-2-Mini against Qwen3.6 | A | 8 / 6 | 0.79 |
| LFM3-1.7B against Haiku 5.5 | A | 2 / 17 | < 0.001 |
| LFM3-1.7B against Haiku 5.5 | B | 4 / 41 | < 0.001 |
| LFM3-1.7B against Gemma 4 | A | 6 / 17 | 0.035 |
| LFM3-1.7B against Inkling-2-Mini | A | 3 / 15 | 0.008 |
| LFM3-1.7B against Inkling-2-Mini | B | 8 / 40 | < 0.001 |
References¶
- Lewis, Perez, Piktus, Petroni, Karpukhin, Goyal, Küttler, Lewis, Yih, Rocktäschel, Riedel, Kiela (2020). Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. NeurIPS 2020. https://arxiv.org/abs/2005.11401
- Gao, Xiong, Gao, Jia, Pan, Bi, Dai, Sun, Wang, Wang (2023). Retrieval-Augmented Generation for Large Language Models: A Survey. arXiv preprint. https://arxiv.org/abs/2312.10997
- Robertson, Zaragoza (2009). The Probabilistic Relevance Framework: BM25 and Beyond. Foundations and Trends in Information Retrieval 3(4):333-389. https://dl.acm.org/doi/10.1561/1500000019
- SQLite project. SQLite FTS5 Extension. Official documentation. https://www.sqlite.org/fts5.html
- Karpukhin, Oğuz, Min, Lewis, Wu, Edunov, Chen, Yih (2020). Dense Passage Retrieval for Open-Domain Question Answering. EMNLP 2020. https://arxiv.org/abs/2004.04906
- Zhao, Liu, Ren, Wen (2024). Dense Text Retrieval Based on Pretrained Language Models: A Survey. ACM Transactions on Information Systems 42(4), article 89. https://arxiv.org/abs/2211.14876
- Cormack, Clarke, Büttcher (2009). Reciprocal Rank Fusion Outperforms Condorcet and Individual Rank Learning Methods. SIGIR 2009, pp. 758-759. https://dl.acm.org/doi/10.1145/1571941.1572114
- Bruch, Gai, Ingber (2024). An Analysis of Fusion Functions for Hybrid Retrieval. ACM Transactions on Information Systems 42(1), article 20. https://arxiv.org/abs/2210.11934
- Thakur, Reimers, Rücklé, Srivastava, Gurevych (2021). BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Models. NeurIPS 2021 Datasets and Benchmarks Track. https://arxiv.org/abs/2104.08663
- Nogueira, Cho (2019). Passage Re-ranking with BERT. arXiv preprint. https://arxiv.org/abs/1901.04085
- BAAI. BAAI/bge-reranker-v2-m3 model card. Hugging Face. https://huggingface.co/BAAI/bge-reranker-v2-m3
- Chen, Xiao, Zhang, Luo, Lian, Liu (2024). M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillation. Findings of ACL 2024, pp. 2318-2335. https://aclanthology.org/2024.findings-acl.137/
- Zhang, Li, Long, Zhang, Lin, Yang, Xie, Yang, Liu, Lin, Huang, Zhou (2025). Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Models. arXiv preprint. https://arxiv.org/abs/2506.05176
- Zhang, Thakur, Ogundepo, Kamalloo, Alfonso-Hermelo, Li, Liu, Rezagholizadeh, Lin (2023). MIRACL: A Multilingual Retrieval Dataset Covering 18 Diverse Languages. Transactions of the Association for Computational Linguistics 11, pp. 1114-1131. https://aclanthology.org/2023.tacl-1.63/
- Bonifacio, Jeronymo, Abonizio, Campiotti, Fadaee, Lotufo, Nogueira (2021). mMARCO: A Multilingual Version of the MS MARCO Passage Ranking Dataset. arXiv preprint. https://arxiv.org/abs/2108.13897
- Lawrie, MacAvaney, Mayfield, McNamee, Oard, Soldaini, Yang (2023). Overview of the TREC 2022 NeuCLIR Track. TREC 2022 proceedings. https://arxiv.org/abs/2304.12367
- Ballesteros, Croft (1997). Phrasal Translation and Query Expansion Techniques for Cross-language Information Retrieval. SIGIR 1997, pp. 84-91. https://dblp.org/rec/conf/sigir/BallesterosC97.html
- Gao, Ma, Lin, Callan (2023). Precise Zero-Shot Dense Retrieval without Relevance Labels. ACL 2023, pp. 1762-1777. https://aclanthology.org/2023.acl-long.99/
- Wang, Yang, Wei (2023). Query2doc: Query Expansion with Large Language Models. EMNLP 2023, pp. 9414-9423. https://aclanthology.org/2023.emnlp-main.585/
- Yang, Qi, Zhang, Bengio, Cohen, Salakhutdinov, Manning (2018). HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answering. EMNLP 2018, pp. 2369-2380. https://aclanthology.org/D18-1259/
- Rajpurkar, Jia, Liang (2018). Know What You Don't Know: Unanswerable Questions for SQuAD. ACL 2018, pp. 784-789. https://aclanthology.org/P18-2124/
- Liu, Lin, Hewitt, Paranjape, Bevilacqua, Petroni, Liang (2024). Lost in the Middle: How Language Models Use Long Contexts. Transactions of the Association for Computational Linguistics 12, pp. 157-173. https://aclanthology.org/2024.tacl-1.9/
- Zheng, Chiang, Sheng, Zhuang, Wu, Zhuang, Lin, Li, Li, Xing, Zhang, Gonzalez, Stoica (2023). Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena. NeurIPS 2023 Datasets and Benchmarks Track. https://arxiv.org/abs/2306.05685
- Wang, Li, Chen, Cai, Zhu, Lin, Cao, Kong, Liu, Liu, Sui (2024). Large Language Models are not Fair Evaluators. ACL 2024, pp. 9440-9450. https://aclanthology.org/2024.acl-long.511/
- Kamalloo, Dziri, Clarke, Rafiei (2023). Evaluating Open-Domain Question Answering in the Era of Large Language Models. ACL 2023, pp. 5591-5606. https://aclanthology.org/2023.acl-long.307/
- Es, James, Espinosa Anke, Schockaert (2024). RAGAs: Automated Evaluation of Retrieval Augmented Generation. EACL 2024 System Demonstrations, pp. 150-158. https://aclanthology.org/2024.eacl-demo.16/
- Saad-Falcon, Khattab, Potts, Zaharia (2024). ARES: An Automated Evaluation Framework for Retrieval-Augmented Generation Systems. NAACL 2024. https://arxiv.org/abs/2311.09476
- Yao, Zhao, Yu, Du, Shafran, Narasimhan, Cao (2023). ReAct: Synergizing Reasoning and Acting in Language Models. ICLR 2023. https://arxiv.org/abs/2210.03629
- Trivedi, Balasubramanian, Khot, Sabharwal (2023). Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questions. ACL 2023, pp. 10014-10037. https://aclanthology.org/2023.acl-long.557/
- Asai, Wu, Wang, Sil, Hajishirzi (2024). Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection. ICLR 2024. https://arxiv.org/abs/2310.11511
- Model Context Protocol. Specification, revision 2025-06-18. https://modelcontextprotocol.io/specification/2025-06-18
- Anthropic (2024). Introducing Contextual Retrieval. Engineering post, 19 September 2024. https://www.anthropic.com/news/contextual-retrieval
- Qu, Tu, Bao (2025). Is Semantic Chunking Worth the Computational Cost? Findings of NAACL 2025, pp. 2155-2177. https://aclanthology.org/2025.findings-naacl.114/
- Ouyang, Qu, Zhou, Zhu, Zhang, Lin, Wang, Zhao, Jiang, Zhao, Shi, Wu, Chu, Liu, Li, Xu, Zhang, Shi, Tu, He (2025). OmniDocBench: Benchmarking Diverse PDF Document Parsing with Comprehensive Annotations. CVPR 2025. https://arxiv.org/abs/2412.07626
- Blecher, Cucurull, Scialom, Stojnic (2024). Nougat: Neural Optical Understanding for Academic Documents. ICLR
- Auer, Lysak, Nassar, Dolfi, Livathinos, Vagenas, Berrospi Ramis, Omenetti, Lindlbauer, Dinkla, Mishra, Kim, Gupta, Teixeira de Lima, Weber, Morin, Meijer, Kuropiatnyk, Staar (2024). Docling Technical Report. arXiv preprint. https://arxiv.org/abs/2408.09869
- Wilson (1927). Probable Inference, the Law of Succession, and Statistical Inference. Journal of the American Statistical Association 22(158):209-212. https://www.jstor.org/stable/2276774
- McNemar (1947). Note on the Sampling Error of the Difference Between Correlated Proportions or Percentages. Psychometrika 12(2):153-157. https://doi.org/10.1007/BF02295996
- Dror, Baumer, Shlomov, Reichart (2018). The Hitchhiker's Guide to Testing Statistical Significance in Natural Language Processing. ACL 2018, pp. 1383-1392. https://aclanthology.org/P18-1128/
- Holm (1979). A Simple Sequentially Rejective Multiple Test Procedure. Scandinavian Journal of Statistics 6(2), pp. 65-70. https://www.jstor.org/stable/4615733
- Smucker, Allan, Carterette (2007). A Comparison of Statistical Significance Tests for Information Retrieval Evaluation. CIKM 2007, pp. 623-632. https://dl.acm.org/doi/10.1145/1321440.1321528
- Gerganov and contributors (ongoing). llama.cpp: LLM inference in C/C++. GitHub project. https://github.com/ggml-org/llama.cpp