The question
Retrieval-augmented generation has a habit nobody chose on purpose. After retrieval, the chunks are pasted into the prompt in the order the retriever ranked them: most similar first. For a short top-5 list that hardly matters. Long-context models changed the arithmetic. It is now cheap to send 20,000 or 40,000 tokens of retrieved text, and at that size the prompt stops being a list of snippets. It becomes a patchwork of a document, stitched together in an order the author never wrote.
DOS RAG, short for "Document's Original Structure" RAG, is the proposal to undo that. Retrieve exactly as before, then sort the selected chunks back into document order . Laitenberger, Manning and Liu present it as a baseline, not a new method. They tested it against RAPTOR, which builds a tree of LLM summaries , and ReadAgent, an LLM that paginates and gists a book before looking things up . Their recommendation is that future work should beat DOS RAG before it claims progress .
So we asked:
- Where did the idea come from, and what does it build on?
- What exactly is DOS RAG, and how does it differ from vanilla RAG and OP-RAG?
- What do the benchmarks show, and at what token budgets?
- Why would document order help, given what we know about position bias?
- Where does it break?
- What should a practitioner actually do?
Scope. We cover foundations from 2023 and focus on work from mid-2024 to November 2026. Peer-reviewed papers, preprints and official documentation are all included and labelled. Vendor results are marked as self-reported.
How we got here
Three threads meet in DOS RAG.
Position bias. "Lost in the Middle" showed a distinctive U-shaped curve in multi-document QA. Models used information at the start or end of the context far better than information in the middle . With 20 documents, GPT-3.5-Turbo answered 75.8% correctly when the gold passage came first and 53.8% when it sat in the middle. That is below the 56.1% it scored with no documents at all . The same paper found that retrieving more than about 20 documents barely helped readers, even though recall kept rising . The practical lesson most people drew was to keep contexts short and put the best evidence first.
The long-context-versus-RAG debate. Xu and colleagues found that a 4K-context model with simple retrieval roughly matched a 16K long-context model. They also found that adding more than the top 5 or 10 chunks did not help . Their chunks were ordered from most to least relevant . A year later, Li and colleagues reported the reverse headline. Given enough resources, feeding the whole document beat RAG on average: 48.67 versus 32.60 for GPT-4o across nine datasets . Their RAG used five 300-word chunks, again ordered by similarity score . Both papers, in other words, tested relevance-ordered RAG at small budgets.
Reordering by relevance. The common response to position bias was to move the best material to where the model looks. LongLLMLingua reorders compressed documents by a question-conditioned importance score, to exploit the model's preference for early material . Attention sorting decodes one step, then moves the documents that drew the most attention to the end, next to the question . Jin and colleagues proposed placing the top-scoring passages at both the start and the end of the prompt . Every one of these orders by relevance. None asks what order the text was written in.
The pivot: OP-RAG. In September 2024, Yu, Xu and Akkiraju tried the obvious alternative. They kept the same top-k chunks and sorted them by their position in the source . On ∞Bench, the gap grew with the number of chunks. At 128 chunks on En.QA, F1 rose from 38.40 to 44.43. At 192 chunks on En.MC, accuracy rose from 81.22% to 88.65% . With only a handful of chunks, the gap was small . That is exactly the regime earlier comparisons had tested.
The question
Some AI systems answer questions about long texts. First they search the text for helpful pieces. These pieces are called "chunks". A chunk is just a short slice of text. Then the AI reads the chunks and answers.
There is a hidden habit here. The chunks are usually lined up "best match first". Nobody really chose that on purpose. With five chunks, it hardly matters. But today's AIs can read a lot. They can read 20,000 or 40,000 words of chunks at once. Then the chunks become a jumbled copy of the book.
DOS RAG is a fix for that. DOS stands for "Document's Original Structure". You pick chunks just like before. Then you put them back in book order . The team behind it says it is a "baseline". A baseline is the simple thing that new ideas must beat. They tested it against RAPTOR, which builds a tree of summaries . They also tested ReadAgent, an AI that skims a book and takes notes first . Their advice is clear. New systems should beat DOS RAG before anyone calls them better .
So we asked six things:
- Where did the idea come from?
- What exactly does DOS RAG do?
- What do the tests show, and how much text was used?
- Why would book order help?
- When does it stop working?
- What should builders do?
What we looked at. We looked at work from 2023 onwards. We focused on mid-2024 to November 2026. We used checked papers, unchecked papers and official guides. We label each kind. Company results are marked as the company's own claims.
How we got here
Three ideas led to DOS RAG.
The middle gets forgotten. A 2023 study found a U shape . AIs used facts at the start or end of their reading well. They used facts in the middle badly. One AI got 75.8% right when the key fact came first. It got 53.8% when the fact was in the middle . That was worse than its 56.1% with no reading at all . Giving it more than about 20 pieces barely helped . So people learned a rule: keep it short, and put the best bit first.
Long reading versus picking pieces. One team tested picking a few pieces. It worked about as well as reading a long text . More than 5 or 10 pieces did not help . They lined pieces up "best first" . A later team found the opposite. Reading the whole text beat picking pieces: 48.67 versus 32.60 for one AI . But they only picked five pieces, again "best first" . So both teams tested small, "best first" piles.
Moving the best bits around. Many fixes moved the best pieces to where AIs look most. One sorted the pieces by how important they seemed . One moved the pieces the AI watched most to the end, next to the question . One put the top pieces at both the start and the end . All of these sort by "how good is this match". None asks what order the author wrote.
The big switch: OP-RAG. In 2024, one team tried book order instead . They kept the same chunks and just sorted them by place in the book. The more chunks they used, the more it helped. With 128 chunks, one score rose from 38.40 to 44.43. With 192 chunks, another rose from 81.22% to 88.65% . With only a few chunks, it barely helped . That was exactly the small setting older tests used.
There was a precedent, too. ReadAgent already reinserted the raw pages it looked up at their original positions, preserving the overall narrative flow . OP-RAG and DOS RAG take that instinct and drop the agent.
What DOS RAG actually does
The method has three steps :
- Split the document into chunks of at most 100 tokens, without breaking sentences. Embed each with a small off-the-shelf model, Snowflake Arctic-embed-m 1.5.
- Rank the chunks by cosine similarity to the question and add them until a token budget is full. There is no fixed top-k.
- Sort the selected chunks by their position in the document, join them, and pass them to the reader with the question.
Vanilla RAG is the same pipeline without step 3, so the comparison is an exact ablation of ordering . In the released code, step 3 is a single line that sorts the selected nodes by index . There are no LLM calls before the question arrives: no summaries, no gists, no tree.
There was an earlier hint too. ReadAgent put the pages it looked up back where they belonged . DOS RAG keeps that idea but drops the helper.
What DOS RAG actually does
It has three steps :
- Cut the book into small chunks of up to 100 tokens. A token is roughly a word. Never cut a sentence in half. Turn each chunk into numbers with a small, ready-made tool.
- Find the chunks that best match the question. Keep adding them until you hit a word limit. This limit is called the "budget".
- Sort the chosen chunks by their place in the book. Then give them to the AI with the question.
Normal RAG skips step 3. So comparing them shows exactly what the order does . In the team's code, step 3 is one line . Nothing extra runs before the question. There are no summaries, no notes and no tree.
How does this differ from OP-RAG? In substance, very little. Both re-sort retrieved chunks into document order . DOS RAG uses smaller chunks, fills a token budget rather than a chunk count, and uses different readers and embedders . Its main contribution is the comparison, not the trick. OP-RAG was a single-benchmark preprint pitting an open model against other vendors' long-context runs . DOS RAG is a peer-reviewed EMNLP 2025 paper. It tests matched budgets against two multi-stage pipelines on three benchmarks, with five runs per setting .
The benchmark record
The DOS RAG paper uses three single-document reading-comprehension benchmarks . ∞Bench En.MC has 229 multiple-choice questions over 58 books averaging about 184K tokens. QuALITY has 2,086 multiple-choice questions over stories of a few thousand tokens. NarrativeQA has more than 10,000 short-answer questions over books and scripts. The readers are GPT-4o and GPT-4o-mini .
∞Bench, the long-document case. With GPT-4o, DOS RAG beat vanilla RAG at every budget from 5K tokens up. The margin grew from 3.3 points at 5K to 5.3 points at 30K and 40K . Its best score was 93.1% at 30K, against 87.8% for vanilla RAG and 85.0% for RAPTOR at the same budget . ReadAgent scored 90.3% but used about 86K tokens per question . DOS RAG reached 90.0% at 10K. With GPT-4o-mini the pattern was the same and the gaps were larger: DOS RAG 84.1% at 10K against 76.0% for vanilla and 75.0% for RAPTOR. ReadAgent scored 76.2% .
How is this different from OP-RAG? Hardly at all. Both put chunks back in book order . DOS RAG uses smaller chunks. It fills a word budget instead of counting chunks. It also uses different AIs . The new part is the careful test, not the trick. OP-RAG was an unchecked paper with one set of tests . DOS RAG is a checked paper from a big 2025 meeting. It gave every system the same budget. It ran three tests, five times each .
The test results
The team used three reading tests . ∞Bench has 229 multiple-choice questions about 58 very long books. Each book is about 184,000 tokens. QuALITY has 2,086 multiple-choice questions about short stories. NarrativeQA has over 10,000 short-answer questions about books and scripts. The readers were two OpenAI models, GPT-4o and the smaller GPT-4o-mini .
Very long books. With GPT-4o, book order beat "best first" every time from 5,000 tokens up. The gap grew from 3.3 points to 5.3 points . Its best score was 93.1% at 30,000 tokens. "Best first" got 87.8%, and RAPTOR got 85.0% . ReadAgent got 90.3%, but it read about 86,000 tokens per question . DOS RAG got 90.0% with just 10,000. With the smaller AI, the gaps were even bigger. DOS RAG got 84.1%. "Best first" got 76.0%, RAPTOR 75.0% and ReadAgent 76.2% .
The small-budget exception. At 1.5K tokens, DOS RAG was slightly behind vanilla RAG on ∞Bench with both readers: 75.6% versus 76.2% for GPT-4o and 68.9% versus 69.9% for GPT-4o-mini . Those gaps are within run-to-run noise, but they are the right sign for the obvious explanation. With only 15 or so 100-token chunks scattered across a 184K-token book, there is little adjacency for document order to restore.
When the budget is tiny. At 1,500 tokens, book order was a tiny bit worse. It got 75.6% against 76.2%, and 68.9% against 69.9% . Those gaps are smaller than normal wobble between runs. It makes sense, though. Fifteen tiny chunks from a huge book are rarely next to each other. So there is little order to fix.
QuALITY, the short-document case. Here the documents average about 5.8K tokens, so an 8K budget is nearly the whole text. DOS RAG reached 90.4% with GPT-4o, ahead of vanilla RAG at 85.9% and RAPTOR at 84.9% . But GPT-4o reading the full document scored 91.2%, the best result in the table . With GPT-4o-mini, DOS RAG at 81.2% roughly tied the full document at 81.0% .
NarrativeQA. With GPT-4o-mini only, DOS RAG reached 22.1 F1 at 20K tokens. Vanilla RAG scored 19.2 and RAPTOR 17.3 at the same budget, and ReadAgent 21.0 with about 34K tokens . The margins are small, and n-gram metrics on free-form answers are a blunt instrument.
Independent evidence. No group has yet re-run DOS RAG on its own benchmarks with another model family. The closest replication is of OP-RAG. FB-RAG's authors re-implemented it with Llama 3.1 70B. At 16K and 24K tokens they got 47.87 and 48.27 F1 on ∞Bench En.QA, against 34.26 for the same model reading the full context . On En.MC, their figures were about three points lower than OP-RAG's own . On LongBench, whose tasks are often multi-document, order preservation added under one point over vanilla RAG, and full long context still won . LongBench v2 used document-order RAG as its baseline. For two open models, about 32K retrieved tokens scored higher than their full 128K context, by 4.1 points for Qwen2.5. GPT-4o still did slightly better reading everything .
Short stories. These stories are only about 5,800 tokens. So an 8,000-token budget holds nearly the whole story. DOS RAG got 90.4% with GPT-4o. "Best first" got 85.9%, and RAPTOR got 84.9% . But GPT-4o reading the whole story got 91.2%, the best score of all . With the smaller AI, it was about a tie. DOS RAG got 81.2%, and the whole story got 81.0% .
Short answers. Only the smaller AI was tested here. DOS RAG scored 22.1. "Best first" got 19.2, and RAPTOR got 17.3 . ReadAgent got 21.0 while reading more . These gaps are small. The scoring just counts matching words, which is a rough way to grade answers.
Checks by other teams. No other team has rerun DOS RAG's own tests yet. The closest check was of OP-RAG. A second team rebuilt OP-RAG with the same open AI. They scored 47.87 and 48.27, against 34.26 for reading the whole book . On one test, their scores were about three points lower than OP-RAG's own . On a mixed test called LongBench, book order added less than one point. Reading everything still won there . Another big test, LongBench v2, used book order as its simple method. For two open AIs, it beat reading everything, by up to 4.1 points. GPT-4o still did a little better reading it all .
Why would document order help?
None of the papers isolates the mechanism. What follows is the most consistent reading of the evidence, not a tested result.
The lost-in-the-middle story predicts the opposite of DOS RAG. If position bias dominated, sorting by document position would scatter the best chunks into the middle, and relevance-first or ends-first orderings would win. Instead, document order beats relevance order once the budget is large . Two developments make this less surprising than it sounds.
First, position bias looks weaker than it did in 2023. Hsieh and colleagues traced lost-in-the-middle to a U-shaped attention bias and showed it can be calibrated away . LongPiBench found most current models more robust to the classic effect . Veseli and colleagues found it strongest when the input fills up to about half the context window, which DOS RAG's budgets rarely approach on a 128K model . In realistic open-domain RAG with 5 to 10 passages, Cuconasu and colleagues found random ordering statistically equivalent to clever rearrangement .
Second, what remains is sensitivity to distance between related pieces. LongPiBench reports noticeable bias from how far apart relevant items sit . In multi-hop QA, presenting supporting documents in the order of the reasoning chain matters by 10 F1 or more . A book is the extreme case of interlinked evidence: a pronoun resolves three sentences back, a clue pays off two chapters later. Document order keeps neighbouring chunks adjacent and the narrative's sequence intact. Relevance order shuffles them. That fits the budget pattern, too. With few chunks there are few neighbours to reunite, so order hardly matters .
One finding pulls the other way. Chroma's "context rot" report found that, across 18 models, needle-in-a-haystack retrieval did better on shuffled haystacks than coherent ones . That is a synthetic single-fact task, not reading comprehension, and the report is not peer-reviewed. But it is a reminder that coherence helps comprehension, not every task.
Where it breaks
When the document fits. If the whole text fits comfortably, the strongest reader reading all of it still wins, as on QuALITY with GPT-4o . DOS RAG is a way to spend a budget well, not a reason to retrieve when you don't need to.
When the budget keeps growing. DOS RAG's accuracy rises, peaks and then falls: at 10K tokens for GPT-4o-mini and 30K for GPT-4o on ∞Bench . OP-RAG saw the same inverted U, peaking later for the larger model . Jin and colleagues traced the decline to hard negatives, passages that look relevant but mislead, which stronger retrievers return more of . The best budget is model-specific and has to be tuned.
When there is no single document. The authors say plainly that they tested single-document reading comprehension . Multi-document corpora have no natural global order. Jin and colleagues' edge-placement and Gabín and colleagues' finding that reverse score order wins at larger contexts on HotpotQA both come from that open-domain regime . Neither tested document order, because there was none to test.
When the questions need several hops. StateRAG used DOS RAG as one of ten baselines with a Qwen2.5-14B reader. It trailed the authors' stateful method by 6.9 F1 on HotpotQA, 16.2 on 2WikiMultihopQA and 12.9 on MuSiQue . DOS RAG used only about 1.0 to 1.4K tokens per query there, well below where it shines, and the comparison was run by the competing method's authors . M-RAG, another independent baseline study at even smaller budgets, found DOS RAG competitive: it led on 2WikiMultihopQA and trailed slightly on NarrativeQA . Banerjee and colleagues found that on a multi-hop benchmark, top-10 retrieval surfaced all the gold facts for only 19% of queries . No reordering can fix evidence that was never retrieved.
When the question is global. "What are the main themes across these 500 reports?" has no small set of supporting chunks. GraphRAG's community summaries beat vector RAG on comprehensiveness and diversity for such questions, judged by an LLM . DOS RAG was not tested there.
Why would book order help?
No paper has proved why. This is our best guess from the evidence. It is not a tested fact.
The "middle gets forgotten" idea says book order should lose. Book order would bury the best chunks in the middle. But book order wins once the AI reads a lot . Two newer findings help explain this.
First, the middle problem seems smaller now. One team found it comes from a lopsided focus inside the AI, and fixed it . Another team found most new AIs handle the old problem better . A third found it is strongest when the AI's memory is up to half full . DOS RAG's budgets rarely fill that much. Normal search setups use 5 to 10 pieces. There, random order did just as well as clever order .
Second, distance still matters. AIs do worse when related facts sit far apart . Step-by-step puzzles were tested too. Putting clues in the right order changed scores by 10 points or more . A book is full of linked clues. A "she" points back to a name. A hint pays off two chapters later. Book order keeps neighbour chunks together, and the story flows. "Best first" shuffles them. This also explains the small-budget result. With few chunks, there are few neighbours to join up .
One finding points the other way. A company test found that AIs found a single hidden fact better in shuffled text . That test was made-up and about one fact, not about understanding a story. It was also not checked by outside experts. Still, it is a reminder. Neat order helps understanding. It may not help every task.
When it stops working
When the whole book fits. If the AI can read everything, reading everything can still win. That happened with GPT-4o on short stories . DOS RAG helps you use a budget well. It is not a reason to skip reading the whole thing.
When you keep adding more. Scores go up, peak, then dip. The peak was at 10,000 tokens for the small AI and 30,000 for GPT-4o . OP-RAG saw the same hill, with the bigger AI peaking later . One team found why. Good search tools also find "tricky" pieces that look right but mislead . So the best budget is different for each AI. You have to test it.
When there is more than one book. The team only tested one book at a time . A pile of many documents has no single natural order. Other tips, like putting the best pieces at both ends, came from those mixed piles . They never tested book order, because there wasn't one.
When questions need several steps. One team used DOS RAG as a simple method to beat. Their own method won by 6.9, 16.2 and 12.9 points on three step-by-step puzzle tests . But DOS RAG only read about 1,000 to 1,400 tokens there. DOS RAG does best with much more. And that team was testing its own method . Another team used even smaller budgets. There, DOS RAG did well. It won on one test and lost slightly on another . A third team found a deeper problem. Search found all the needed facts for only 19% of questions . Sorting cannot fix facts that were never found.
When the question is about everything. "What are the main themes in these 500 reports?" No small set of chunks can answer that. A system called GraphRAG did better on such big-picture questions, judged by an AI . DOS RAG was not tested there.
Where the evidence disagrees
Chunks or summaries? DOS RAG found raw chunks beat RAPTOR's summary tree at every budget . Li and colleagues' long-context revisit found summarisation-based retrieval comparable to full context, with chunk-based retrieval lagging . The settings differ in benchmarks, readers and ordering. DOS RAG also built RAPTOR's tree with the cheaper GPT-4o-mini , and Li and colleagues did not test order-preserving chunks . Neither result settles the other.
Long context or RAG? Self-Route said long context wins when resourced . OP-RAG and DOS RAG say budgeted, order-preserving RAG can match or beat it . LaRA's careful ICML 2025 benchmark says there is no universal winner: the answer depends on model, context length and task . Much of the old disagreement is configuration. Self-Route's RAG used five relevance-ordered chunks , a setting OP-RAG showed is where ordering matters least and budgets are too small .
Which order? Importance-first , ends-first , most-relevant-last and document order have each won somewhere. The cleanest reconciliation is that they won in different regimes. Relevance and edge orderings come from open-domain, multi-source passages with short contexts. Document order comes from long single documents at large budgets. We found no paper that tests all four on the same single-document benchmark.
Contamination. QuALITY and NarrativeQA draw heavily on public-domain fiction. GPT-4 has memorised many popular books, and models do better downstream on books they have memorised . On recently published novels designed to need whole-book reasoning, GPT-4o scored only 55.8% . None of this has been measured for DOS RAG's benchmarks specifically. It argues for caution in reading absolute numbers, though it should affect every method in a table roughly equally.
What this means in practice
Make DOS RAG your baseline. It costs nothing to add. If you already store a chunk index, sorting by it after retrieval is one line, exactly as in the reference implementation . If a new pipeline cannot beat budgeted, order-preserving retrieval, its extra machinery isn't earning its keep .
Check what your framework's reorder does. LangChain's LongContextReorder and LlamaIndex's LongContextReorder both put the most relevant chunks at the two ends . Haystack's LostInTheMiddleRanker does the same . That is a lost-in-the-middle strategy, not document order. LlamaIndex's PrevNextNodePostprocessor splices neighbours in, but does not globally sort by position . Haystack's MetaFieldRanker can sort on a numeric position field, though its docs don't show that use . Store a position at ingestion time and sort on it explicitly.
Spend a real budget, then tune the peak. The ordering gain only appears once the budget holds many adjacent chunks: 5K tokens and up in the DOS RAG experiments . But more is not always better, so sweep budgets on your own data and pick the knee for your model .
Keep the rest of the prompt sensible. Vendor guidance agrees on documents first and question last for Anthropic and Google models . OpenAI's GPT-4.1 guide suggests instructions both before and after long context, and found XML-style delimiters worked better than JSON . None of these guides says anything about ordering chunks among themselves. DOS RAG fills that gap and sits comfortably inside all of them.
Improve selection and ordering separately. DOS RAG changes only what happens after selection. Anthropic reported that prepending generated context to each chunk cut top-20 retrieval failures by 35% to 67% depending on the stack . Late chunking and contextual embedding training attack the same lost-context problem at embedding time . These are complementary in principle, but nobody has published the combination.
For multi-document corpora, group then sort. The natural extension is to group retrieved chunks by source document and order each group internally. That extension is untested. Measure it against plain relevance order before you trust it.
Know what long context costs you. Pricing now varies more than the "long context is expensive" folklore suggests. Most current Claude models bill a 900K-token request at the same per-token rate as a short one . Gemini Pro-tier pricing doubles every token once input passes 200K . DOS RAG's 5K to 40K budgets sit below every such threshold. The DOS RAG paper itself did not measure end-to-end cost or latency .
Where the evidence disagrees
Chunks or summaries? DOS RAG found raw chunks beat RAPTOR's summary tree every time . Another team found summaries did about as well as reading everything. Plain chunks did worse . Their tests, AIs and setups were different. DOS RAG also built RAPTOR's tree with the cheaper AI . The other team never tried book order . So neither result cancels the other.
Read everything, or pick pieces? One team said reading everything wins if you can afford it . OP-RAG and DOS RAG say picking pieces in book order can match or beat it . A careful 2025 study says there is no single winner. It depends on the AI, the length and the task . Much of the fight comes down to setup. The "read everything wins" team only picked five pieces, "best first" . OP-RAG showed that is where order matters least .
Which order is best? "Most important first" , "best at both ends" , "best last" and book order have each won somewhere. The simplest answer is that they won in different places. The first three won with short piles from many sources. Book order won with one long book and a big budget. We found no study that tests all four on the same one-book test.
Did the AI already know the books? Two of the tests use old, free books. AIs have memorised many popular books. They do better on books they remember . On brand-new novels that need whole-book thinking, GPT-4o scored only 55.8% . Nobody has measured this for DOS RAG's tests. So be careful with the exact scores. It should affect every system in the table about equally, though.
What this means for builders
Use DOS RAG as your starting point. It is almost free to add. If you store each chunk's place in the book, sorting is one line . If a fancy new system can't beat it, the fancy parts aren't earning their keep .
Check what your tool's "reorder" does. Two popular tools both have a "LongContextReorder". It puts the best chunks at the two ends . A third tool does the same . That fixes the "middle gets forgotten" problem. It is not book order. One tool can add a chunk's neighbours, but it does not sort the whole pile . Another can sort by a number you store, though its guide does not show this . So save each chunk's place when you load it, and sort on that.
Use a real budget, then find the peak. Order only helps when many neighbour chunks fit. In the tests, that meant 5,000 tokens or more . But more is not always better. Try different budgets on your own data, and pick the best one .
Keep the rest of the prompt tidy. One AI company says to put the documents first and the question last . Another says to put instructions before and after the reading. It also found tags worked better than JSON . None of these guides says how to order the chunks themselves. DOS RAG fills that gap. It fits with all of their advice.
Improve finding and sorting separately. DOS RAG only changes what happens after the chunks are found. One company added a short note to each chunk about where it came from. That cut search misses by 35% to 67% . Other ideas help chunks remember their surroundings too . These could work together with DOS RAG. Nobody has tested that yet.
For many documents, group them, then sort. A natural idea is to group chunks by document. Then sort each group in its own order. Nobody has tested this. Check it against "best first" before you trust it.
Know what long reading costs. Prices are not always what people think. Most current Claude AIs charge the same rate per word for very long and short requests . Google's top Gemini AIs charge double per word past 200,000 tokens . DOS RAG's budgets stay well under those limits. The DOS RAG team did not measure full costs or speed .
Open questions & opportunities
Everything in this section is speculation or a proposed experiment, not a finding.
- Isolate the mechanism. A shuffled-order arm, and an arm that keeps adjacent chunk pairs but shuffles the pairs, would separate "global narrative order" from "local adjacency". This experiment is cheap and has not been published.
- Test across model families. Every DOS RAG number comes from two OpenAI readers and one embedder . Reproducing ∞Bench with open-weight readers, as FB-RAG did for OP-RAG , is the obvious next replication.
- Test where order is ambiguous. Conversations, code repositories, legal bundles and email threads have partial orders: by time, by file, by thread. Which order should DOS use there?
- Combine with better selection. DOS RAG plus contextual retrieval or late chunking is untested .
- Predict the peak. Can the best budget be estimated from a model's effective context length, instead of swept? OP-RAG's observation that larger models peak later hints at a relationship .
Limitations of this review
- The core evidence is narrow. Most of the strongest numbers come from one peer-reviewed paper with two closed readers and one embedder, and from one preprint plus one re-implementation of its precursor .
- The OP-RAG replication has a loose end. FB-RAG's re-implemented En.MC scores (81.22 and 85.59) coincide exactly with values that appear elsewhere in OP-RAG's own results . This may be coincidence. We report the En.QA replication with more confidence.
- Independent use of DOS RAG is thin, recent and mixed. The two baseline studies we found are 2026 preprints with small budgets and authors comparing against their own methods .
- Several cited sources were read at abstract level only. These include the attention-sorting, positional-shift and long-context-revisit papers. We used them only for their headline claims.
- Vendor material is self-reported. The Chroma, Anthropic Contextual Retrieval and pricing sources are vendor documents. Prices are as retrieved on 23 November 2026 and will change.
- Coverage gaps. We could not query Semantic Scholar's citation graph directly, so some 2025–2026 papers that use DOS RAG as a baseline may be missing.
- Contamination is unmeasured. The memorisation concern for the book benchmarks is inferred from adjacent work, not measured for these benchmarks .
Method
Date. Research conducted 23 November 2026.
Lines of inquiry. Five parallel lines: foundations (position bias, the long-context-versus-RAG debate, and the complex baselines); frontier (the DOS RAG paper and work citing it, 2024–2026); evidence and benchmarks (extracting every reported number); critique (failure modes, negative results, benchmark validity); and applied (code, frameworks, vendor guidance and pricing).
Sources searched. ACL Anthology, arXiv (abstract and HTML full text), OpenReview, PMLR, ICLR and EMNLP proceedings, GitHub source code, and official vendor documentation. Queries included "DOS RAG", "document original structure", "order-preserving RAG", "OP-RAG replication", "lost in the middle 2025", "positional bias RAG", "long context vs RAG", "LongContextReorder" and "LostInTheMiddleRanker".
Inclusion. We included primary research on chunk ordering, position bias and long-context-versus-RAG comparisons; the papers for the baselines DOS RAG was tested against; and official documentation for tooling and pricing. News and blogs were used only for leads. Roughly 190 items were screened (including about 70 papers citing OP-RAG, screened by title), and 38 were included.
Verification. An independent verification pass, separate from the drafting, re-opened every source. It checked bibliographic metadata, confirmed each excerpt verbatim at its locator, and checked every number against the source tables. It checked all 40 candidate sources. It corrected metadata, locators or claim wording for 23 of the 38 cited sources, found peer-reviewed versions of four preprints (LongBench v2, the multi-hop ordering study, LongPiBench and ConTEB), and dropped none. It caught two claims we had understated or blurred: LongBench v2's order-preserving RAG beat full context by 4.1 points for Qwen2.5, not 'slightly', and StateRAG's token figures mixed two methods. Two candidate sources were not needed and are not cited.
Grading. Strong: replicated or several independent peer-reviewed sources. Moderate: one solid peer-reviewed source or consistent preprints. Emerging: preprints or single studies. Contested: credible sources conflict.
Open questions & opportunities
Everything here is a guess or an idea to test. None of it is a finding.
- Find out why it works. Try a shuffled order. Also try keeping neighbour pairs together but shuffling the pairs. That would show whether the whole story order matters, or just neighbours. It would be cheap to do.
- Try other AIs. Every DOS RAG score came from two OpenAI AIs and one search tool . Someone should rerun it with open AIs, like a team did for OP-RAG .
- Try messy orders. Chats, code, legal files and email threads have more than one order. They can go by time, by file or by thread. Which order should DOS use?
- Combine it with better finding. Nobody has tested DOS RAG with smarter chunk notes yet .
- Guess the peak. Could we predict the best budget for each AI, instead of testing them all? Bigger AIs peaked later, which is a hint .
Limitations of this review
- The main proof is narrow. Most of the best numbers come from one checked paper. It used two closed AIs and one search tool. The rest come from one unchecked paper and one rebuild of it .
- One check has a loose end. Some scores from the team that rebuilt OP-RAG match other OP-RAG numbers exactly . That might be chance. We trust their other scores more.
- Outside checks are few and mixed. The two other teams we found are new, unchecked papers. They used small budgets and were testing their own methods .
- Some papers we only read in summary. We used those only for their main claims.
- Company sources speak for themselves. Some sources are company reports and price pages. Prices are from 23 November 2026 and will change.
- We may have missed papers. One big paper search tool did not work for us. So some 2025–2026 papers may be missing.
- The "already knew the books" worry is untested. It comes from nearby studies, not from these tests .
Method
Date. We did this research on 23 November 2026.
Lines of inquiry. We followed five lines. One looked at the history. One looked at the newest work. One gathered every number. One hunted for problems and failures. One looked at code, tools, guides and prices.
Where we searched. We searched big research libraries, conference papers, code on GitHub and official company guides. Our searches included "DOS RAG", "order-preserving RAG", "lost in the middle" and "long context vs RAG".
What we kept. We kept research on chunk order, the middle problem, and reading everything versus picking pieces. We kept the papers for the systems DOS RAG was tested against. We also kept official guides for tools and prices. We only used news and blogs to find leads. We screened about 190 items and kept 38.
Checking. A separate checking pass reopened every source. It checked the paper details. It checked that each quote really appears where we say. It checked every number against the paper's tables. It checked all 40 sources we found. It fixed small details for 23 of the 38 we use. It found that four unchecked papers had since been checked and published. It threw nothing out. It also caught two places where we had a number a bit wrong, and we fixed them.
Grading. Strong means repeated, or backed by several checked papers. Moderate means one solid checked paper, or several unchecked papers that agree. Emerging means unchecked papers or single studies. Contested means good sources disagree.
