Ask Nicely, Stuff the Context… and Still Not Have a System
In this part · 8 sections
- I. In-context learning does not change the weights
- II. Chain-of-Thought: stuffing in one more voice and calling it thinking
- III. A machine that completes sequences, not a store of facts
- IV. InstructGPT: when human satisfaction became the training signal
- V. RAG: from non-parametric memory to the enterprise pipeline
- VI. When embeddings thin out: the bigger the index, the thinner the margin
- VII. The right document can still be lost in the middle of the context
- VIII. The limits of an architecture built only around language

At its most basic level, a language model does not check facts, set its own goals or carry out actions. It takes a sequence of tokens and predicts which token should come next. That mechanism can produce astonishing abilities. The trouble starts when we treat a convincing answer as a grounded one, and the ability to describe an action as the ability to complete it.
That confusion has fed countless impressive demos. But a demo only shows what a model can say in a well-staged situation. A real system has to answer harder questions: what does it know, on what grounds, what is it allowed to do, what did it actually do, and how can it prove the result?
This essay examines that gap through two techniques that shaped the current wave of AI: prompt engineering and context engineering. The most telling is the early form of context engineering, usually called "stuffing the context": adding more instructions, examples and documents to the input in the hope that the model becomes more reliable. Both techniques have value, but they mainly change what the model sees before it answers. What the model is allowed to do, which sources it relies on and how its results are verified are questions of system architecture.
I. In-context learning does not change the weights
In May 2020, Brown et al. released GPT-3:1 a 175-billion-parameter model, pre-trained on roughly 300 billion tokens, with a 2,048-token context window. The paper did not introduce a finished chatbot. What mattered more was an observation: once a model is large enough, an instruction or a few examples in the input are enough for it to perform a new task without further fine-tuning.
We put a few examples in front of the question; the model recognizes the pattern and continues it. On LAMBADA, GPT-3 reached 76.2% accuracy zero-shot, dropped to 72.5% one-shot and rose to 86.4% few-shot. All of that change happens at inference time. No gradient is computed and no weight is updated.

Read the figure left to right. On the left is the old way: each example pair goes through the model, produces a gradient, and nudges the weights a little, thousands of times over. On the right is what GPT-3 does: the same 175-billion-parameter model, untouched. The only difference between the zero-shot, one-shot and few-shot rows is how many examples sit in front of the question.
That is in-context learning: the ability to adapt to the context during inference itself.
The confusion lives in the word "learning". The model can behave as if it had just learned a rule, but what changed is only a temporary computational state produced by the current context. The weights stay the same. When the context goes, the effect goes with it, unless the application saves the information and puts it into the next call.
The LAMBADA results show something else too: more examples are not always better. One-shot does worse than zero-shot, partly because the input format differs and partly because a single example can lead the model toward the wrong pattern. Content matters, but presentation, order and format can also change the result substantially.
From here, prompt engineering gradually became a specialty: change what the model sees in order to steer what it produces. It is a useful technique with clear limits. A prompt can steer behaviour within one inference pass; on its own it creates no long-term memory, updates no weights and grants the system no new power to act.
II. Chain-of-Thought: stuffing in one more voice and calling it thinking
In-context learning, in the previous section, only stuffed in examples. In 2022 the field found one more thing it could stuff in: intermediate steps, written in human language, placed before the answer.
Wei and colleagues called it Chain-of-Thought.2 Instead of few-shot examples made of a question and an answer,
Q: Roger has 5 tennis balls. He buys 2 more cans of tennis balls. Each can has 3 tennis balls. How many tennis balls does he have now?
A: The answer is 11.
they put into the prompt a few examples whose answers are written out step by step:
Q: Roger has 5 tennis balls. He buys 2 more cans of tennis balls. Each can has 3 tennis balls. How many tennis balls does he have now?
A: Roger started with 5 balls. 2 cans of 3 tennis balls each is 6 tennis balls. 5 + 6 = 11. The answer is 11.
The model sees that pattern and writes its own solution before giving the number. With PaLM 540B, accuracy on GSM8K, the grade-school word problems where ordinary few-shot prompting struggled, rose from 17.9% to 56.9%.
Kojima and colleagues, the same year, dropped the examples altogether.3 One sentence after the question was enough: Let's think step by step. With no example at all, the model still wrote out a chain of reasoning before reaching a result. With text-davinci-002, accuracy on MultiArith jumped from 17.7% to 78.7%, and on GSM8K from 10.4% to 40.7%.
Seen in the language of the previous section, nothing new happens at the level of the machine. It is still
The only difference: now contains a passage that looks like a proof. The machine has not been given register-style working memory. It has been given more conditioning, and that conditioning is something it is about to generate itself. Let be the original context and the chain of intermediate steps:
The answer depends on the passage just written the way it depends on every other token. A thought is not state; a thought is context. When the turn ends, ends with it, unless the application keeps it and stuffs it into the next turn. It is the same ailment in-context learning already showed: the context window is working memory rented by the turn.
The part that is easy to tell wrong is the word "thinking". A CoT chain looks like the machine calculating. In fact the machine is generating tokens to condition the next tokens, because the data taught it that a hard problem usually comes with an explanation before the number. That is completing the template "problem → solution → answer", not switching on an ALU. This does not make the written steps useless: the scores really do rise, because each step written becomes a foothold for the next. It only means nothing guarantees that those steps are the real reason for the answer.
Turpin and colleagues (2023) measured exactly this.4 They planted a bias in the input, for example reordering the few-shot examples so the correct answer was always (A), or adding a hint such as "I think the answer is (A)". The models were pulled toward the bias, while the reasoning stayed fluent, defended the biased answer, and almost never mentioned what had actually steered it. Across 13 BIG-Bench Hard tasks, accuracy for GPT-3.5 and Claude 1.0 dropped by as much as 36%. The intermediate prose is not faithful to the computation. It is faithful to sounding like a computation.
Two consequences follow, and they lead straight into the sections ahead.
First, CoT is prompt engineering dressed up as cognition. Section IV will show InstructGPT teaching the machine to write the prose its graders want to read; CoT exploits exactly that habit, because graders like to see steps. Well-written steps get rewarded. Steps that match the world are not what the loss is aiming at.
Second, CoT makes the ailment of section VII worse. Every time the model "thinks", the context grows. The question, the RAG documents and the system constraints get pushed into the middle, or diluted inside a passage of self-written reasoning. Stuffing in thoughts is still stuffing in text, and Lost in the Middle does not spare the scratchpad.
The next part meets this chain again in ReAct. ReAct does not replace CoT; it takes CoT, adds an Action beat, and waits for a parser to cut the command out. A Thought is still a prompt the machine wrote for itself, an Observation is still text pasted into the context. What breaks ReAct is not having Thoughts. It is that Thoughts, commands and apologies all sit on the same tape, and that a Thought never has to face consequences; it only has to face the next token.
Since OpenAI's o1, released in September 2024, reasoning models that use test-time compute look like CoT grown up. They are trained with reinforcement learning to think longer and more usefully, and the thinking sometimes happens on a channel the user never sees. Training really does make the reasoning better, but the geometry of the prediction is unchanged; what changes is where the Thought sits. If the intermediate chain is confined to its own channel, not allowed to pass itself off as a command or as the world's reply, that is already a system boundary applied to this very CoT. If the chain still spills into the same stream as the commands and the documents, it is still this essay's story: more text stuffed in, under a grander name.
CoT belongs here because it is the second illusion, fitting neatly between few-shot and agents. The first illusion: arranging examples is learning. The second illusion: writing out steps is thinking. Both only change the conditions of the prediction. Hands, permissions and a place to stop have still not appeared.
III. A machine that completes sequences, not a store of facts
For an autoregressive model, the core problem fits on one line:
From the token sequence , the model estimates which token is likely to come next.
Nothing in that computation automatically holds a slot for "last month's warehouse revenue". If internal data is not in the weights, not put into the context, and cannot be fetched from an external tool, the model has no reliable source for that number.
Even so, it can still produce an answer that sounds entirely plausible. In language data, the phrase "last month's revenue was…" is usually followed by a number. The model can complete the sentence without ever consulting the ledger. That is the fundamental difference between producing a sequence that looks right and retrieving a verified fact.
Calling all such cases "hallucination" is not wrong, but the name suggests the model has just broken a promise about the truth. In practice, pre-training mainly teaches a model to predict language. It does not automatically give it an audit mechanism, a current data source, or an obligation to leave the answer blank when evidence is missing.
Kalai et al. (2025) analyse the problem through statistics and evaluation.5 When true and false statements are hard to tell apart in the data, errors arise under ordinary pre-training pressure. Many benchmarks then go on to reward guessing: answering "I don't know" is guaranteed to score nothing, while a guess still has some chance of being right. If we only reward accuracy and do not penalize confident wrong answers heavily enough, the system learns to be an exam-taker who likes to guess rather than a careful bookkeeper.
That is not a moral defect lurking somewhere in the network. It is the result of the data, the training objective and the way we grade.
IV. InstructGPT: when human satisfaction became the training signal
GPT-3 was good at completing text but not yet good at following instructions. Give it a request and it might simply keep writing the request instead of carrying it out. Ouyang et al. (2022) changed that behaviour with a three-stage training process.6
Stage one, SFT: supervised fine-tuning. The team used about 13,000 training prompts paired with human-written answers and fine-tuned GPT-3 for 16 epochs. Validation loss began to rise after the first epoch, a sign that the model had started to overfit by the measure of token prediction. Yet the reward-model score and human preference ratings kept improving, so the team kept training. In other words, they accepted a worse result on one measure in exchange for behaviour closer to the model of a "helpful assistant".
Stage two, the reward model. For each prompt, the system produces several answers for labelers to rank. From those comparisons the team trained a 6-billion-parameter model, initialized from the SFT model with its final unembedding layer removed. It outputs a single scalar score, used to predict which answer people prefer.
Stage three, PPO. The SFT model is optimized further with PPO, using the reward model's score as its signal. The objective adds a KL penalty so that the model cannot drift too far from the original policy just to farm points. In the PPO-ptx variant, the team also mixes in gradients from pre-training data to reduce the alignment tax, the loss of ability on some NLP benchmarks after alignment.

Each column in the figure is one stage. The loss curve in the first column is an illustration rather than the paper's data, but its shape is exactly what the paper admits: it bottoms out after the first epoch and climbs, and training carries on anyway. In the last column, the rope tying the policy to the frozen SFT copy is the KL penalty.
This process did more than make answers "nicer to hear". By the team's own evaluation, InstructGPT also followed instructions better, was more helpful, was more truthful on some measures and produced less toxic content. But what it optimized was still bounded by the data and by the raters' criteria.
If raters only look at the final answer, the model is rewarded for producing answers that satisfy them. That does not give it the power to call an API, read real state from a terminal or check a row in a database. Those capabilities require tools, access, a runtime and verification at the level of the system.
That prompt engineering worked better after InstructGPT is no mystery. The model had been trained to respond better to instructions in plain language. But doing what the user says is still not the same as being connected to a source of truth.
V. RAG: from non-parametric memory to the enterprise pipeline
A natural question follows: if a prompt cannot supply current data on its own, why not find the information elsewhere and put it into the context before the model answers? RAG (Retrieval-Augmented Generation) grew out of exactly that intuition. What is worth noticing is that from the work Lewis et al. proposed in 20207 to the enterprise systems of today, the core idea survived while the mechanism changed considerably.
In the 2020 design, the team combined two kinds of memory in a single model. Parametric memory lives in BART-large; non-parametric memory is an index of about 21 million Wikipedia passages, retrieved with DPR. For each question, the system treats the top- documents as latent variables and optimizes the probability of the correct answer after combining the contributions of those candidates.
Retrieval therefore does not sit outside learning like a search box bolted on at the end. The generator and the retriever's query encoder are fine-tuned together; the signal from the target answer can adjust how queries are represented, and so change which documents get priority. The document encoder and the index stay fixed in the paper's setup, but the mechanism as a whole is not just copy-pasting documents into a prompt.
When RAG moved from the lab into companies, that idea of external memory was split into modules that are easier to deploy. Documents are cut with a chunking strategy, encoded by an off-the-shelf embedding model, stored in a vector index, and fetched with top- retrieval. The passages found then go through prompt construction before the generator writes its answer. This organisation lets a company update the corpus, swap the retriever, change the generator or inspect each step without retraining the whole system.
The price is that once the modules are separated, the learning path linking the quality of the final answer to how the retriever represents a query is usually cut as well. A wrong answer does not automatically tell the embedding model that it fetched the wrong document. The responsibility that joint fine-tuning used to carry is spread across the chunking strategy, query formulation, metadata filtering, retrieval ranking, prompt construction and the generator's reading comprehension.

Read both columns top to bottom. The middle stretch is nearly identical on both sides: a store of pre-cut passages (the original also cut Wikipedia into 100-word chunks), searched by vector, returning the top few. The difference is in the dashed lines. On the left, the gradient flows back into BART and on into the question encoder; the two blocks with a flame are the ones being trained, while the document encoder stays frozen. On the right, every block is frozen, and the way back is crossed out.
Modern enterprise RAG keeps building on that modular pipeline. Reranking re-scores the candidates with a model that sees more; context compression strips what is redundant; query rewriting fixes how the question is put to the retriever; multi-hop retrieval lets the result of one step lead to the next; and evaluation loops produce a signal that people or the system can use to keep tuning. None of this returns to the 2020 architecture, but it solves the same problem: letting outside information into the answer more selectively.
So the RAG proposed in research and the RAG running in companies are not two separate ideas. They sit on one line of development. The original work put retriever and generator under a single learning objective; enterprise systems split them into a pipeline whose parts can be replaced, observed and run independently. That shift brings flexibility, and it also creates a new weakness: many of the important parts are frozen and do not adapt as the corpus changes.
This is exactly where the limits of RAG run straight into the limits of embeddings. If the first-stage retriever compresses every query and every document into a vector of fixed dimension while the index keeps growing, the system has to keep the right document above an ever larger crowd of false positives. And even when reranking or multi-hop retrieval have improved retrieval, a read-only pipeline still only helps the model read. It does not by itself grant the power to write data, call an API or verify that an outside action actually completed.
VI. When embeddings thin out: the bigger the index, the thinner the margin
That limit does not come only from a pipeline missing its feedback. It is also a geometric constraint. In dense retrieval, each query and each document is usually compressed into a vector of fixed dimension , then ranked by dot product or cosine similarity. This quietly assumes that the gap between the truly relevant document and the ones that merely look alike stays large enough as the index grows.
While the corpus is small, that assumption can hold. But the more documents you add, the more likely a false positive with a high cosine becomes. The phenomenon can be written as a problem about margins and extremes.
1. The model
Let and be two frozen encoders. For a query and a document , normalize the embeddings onto the unit sphere:
Cosine similarity then equals the dot product:
The system takes the highest-scoring documents:
Suppose query has one relevant document , and
is the set of irrelevant documents. At , retrieval succeeds if and only if
Call the gap between the two sides the retrieval margin:
If , the right document ranks first. If , a look-alike has taken top-1. The question is: what happens to as grows while the encoders and the dimension stay fixed?
2. The crowd effect
Start with a simple probabilistic model. For a fixed query, let
Assume the noise scores are i.i.d. samples from the same continuous distribution . This assumption isolates the effect of a growing index; a real corpus may contain correlations, topic clusters and duplicates, so it need not be i.i.d.
Call the highest noise score
For any threshold ,
If the right document's score is a constant , the probability that it keeps top-1 is
So if , meaning there is some positive probability that a noise document scores above , then
Put bluntly: if the right document's score does not grow with the index, and the distribution of noise scores stays the same, the probability that it keeps beating every false positive falls to zero.
What changes here is neither nor . Both vectors are fixed. The quantity that grows with is , the highest score in an ever larger crowd. The maximum typically lands near the quantile
So as grows, the tail of the noise distribution is what decides retrieval. As long as that tail reaches the right document's score, the margin wears away more and more easily.

The figure uses illustrative numbers, not a paper's data: noise cosines follow a normal distribution around 0.2, and the right document sits fixed at . In the top half, each dot is where the strongest noise document typically lands, : with a hundred documents it is far off, with ten thousand it is close, with a million it has passed . No vector moved; the crowd just got bigger. The bottom half tells the same story as a probability: the curve sits near 100% for several orders of magnitude, then drops sharply around a hundred thousand documents.
3. Geometry on the sphere
The same phenomenon can be seen geometrically. Assume, as an idealized approximation, that the noise embeddings are spread independently and uniformly over the sphere .
Take the spherical cap centred on with angular radius :
Its share of the sphere's area is
With noise documents, the expected number that land in the cap is
The probability that no noise document lands in the cap is
So with fixed and a cap of positive area, the probability that the cap stays clean falls to zero as grows. To keep the expected number of intruders at , we need
For small angles,
So the angular radius has to shrink at the rate
For a fixed small angle, a larger makes the cap smaller and lowers the chance of a false positive. More dimensions can therefore postpone the breaking point. But if stays fixed while keeps growing, the breaking point does not go away.

The figure is a two-dimensional slice of the sphere, for intuition only. The shaded wedge is the cap around , reaching just as far as ; any dot that falls inside it has a higher cosine than the right document. On the left, a small index, and the cap is clean. On the right, the same and the same , only more documents, and three look-alikes have already moved ahead. In many dimensions the cap shrinks very quickly, so it takes many more documents to fill it, but with fixed it fills sooner or later.
Reimers and Gurevych (2021)8 observed exactly this trend on real indexes: dense retrieval degrades faster than sparse retrieval such as BM25 as the index grows, especially with low-dimensional embeddings. Seen this way, the number of dimensions is part of the budget for fighting false positives.
4. The representational ceiling of single-vector retrieval
The extreme-value effect above assumes a fixed geometry and lets the index grow. But single-vector retrieval has a deeper representational limit: a space of fixed dimension cannot realize every top- result set with a fixed positive margin.
Weller et al.9 give a bound based on sphere packing. Suppose there are unit document vectors in and . For each set of documents, require a unit query vector such that every document in beats every document outside by a margin of :
If every -element set must be realized with that margin, then
Equivalently,
The bound says something very specific. As the number of documents and relevance combinations grows, we cannot both keep fixed and ask single-vector retrieval to realize every top- set with the same positive margin.
LIMIT, the benchmark Weller et al. built from this limit, shows that even simple natural-language queries can defeat strong embedding models. More importantly, the difficulty persists when the team optimizes the vectors directly on the test set. So the problem cannot be put down only to networks that are not deep enough or training data that is not large enough; the single-vector architecture with a dot product has finite capacity once we demand a stable margin.

The figure redraws Weller et al.'s free embedding experiment: the vectors are optimized directly on the test set, the best case an encoder could hope for. For each dimension , the brown dot is the critical number of documents: beyond it, some top-2 pairs cannot be retrieved by any query vector. 512 dimensions break at about 500 thousand documents, 1024 at 4 million, 4096 at 250 million. The dashed line is the 21 million Wikipedia passages RAG 2020 searched with DPR, a 768-dimensional encoder: more than ten times past the critical point for 768 dimensions (1.7 million). This limit is about demanding every top-2 combination, not about each real query; but it shows that geometric capacity has a ceiling, and that the ceiling is lower than we tend to think.
5. What this means for a frozen pipeline
The two layers of analysis above lead to three consequences.
First, if the distribution of noise scores stays the same, the maximum never falls as noise is added, while does. In other words, adding documents to the index can make retrieval worse even though the right document was never removed from the corpus.
Second, reranking, hybrid BM25–dense search, metadata scoping and late interaction such as ColBERT are all ways of refusing to let a single cosine decide the whole result. They do not remove every representational limit, but they move the final decision to a model or a space that carries more information.
Finally, letting the gradient flow into the query encoder, as RAG 2020 did, does not abolish the crowd effect in any absolute sense. It does let the system shift the distribution , raise and thicken the margin on the very corpus and task it serves. A frozen encoder trained on general data has no such step of adaptation, so its margin is not guaranteed as the index grows.
So the claim that "the more documents there are, the thinner similarity search gets" is true only with its conditions attached: single-vector embeddings, a fixed dimension, and a geometry that is not relearned for the corpus. The neural network is still inside the encoder. What is missing is the geometric capacity and the learning signal needed to protect the retrieval margin as grows.
VII. The right document can still be lost in the middle of the context
Here is something remarkable: a system can retrieve the right document and the model can still fail to use the information inside it. Retrieval quality is only half of the problem; the other half is how the information is arranged in the context.
Lost in the Middle (Liu et al., TACL 2024) shows this very clearly.10 The team moved the document containing the answer to different positions in a multi-document question-answering task. As the number of documents grew and the relevant passage was pushed toward the middle, many models' performance traced a U-shaped curve: better at the start, better at the end, weaker in the middle.

The figure is redrawn from the paper's own table, for GPT-3.5-Turbo with 20 documents. The dashed blue-grey line is the 56.1% the model scores closed-book, with no documents at all. The shaded area is where the curve dips below that line. The strip of squares at the bottom is the context window: the closer to the middle, the fainter a document becomes to the model.
More strikingly, with GPT-3.5-Turbo, when the relevant document sat in the middle of the context, the result sometimes fell below the 56.1% of the closed-book setting (answering with no documents provided). In that case, adding documents did not help the model know more; it made the signal it needed harder to use.
The trend does not go away with a longer context window either. GPT-3.5-Turbo 16K lets you put in more tokens, but that does not guarantee the model uses every position evenly.
Nor does it stop there. Chroma's 2025 technical report Context Rot extends the observation to 18 models, including GPT-4.1, Claude 4, Gemini 2.5 and Qwen3.11 Performance generally became less stable as inputs grew longer, even in experiments designed to separate the effect of length from the difficulty of the task. It is a technical report rather than final proof for every kind of task, but it reinforces an important warning: a large context window does not mean the context gets used evenly.
Two practical consequences follow from these observations.
First, retrieval ranking is not the same as how much attention the model will pay to each passage, or how much it will use it. The right passage can be retrieved and still land in a bad position in the prompt.
Second, more context does not automatically create more understanding. Past a certain point, we are no longer highlighting the information but burying it in noise.
So context engineering is not only a question of "what can we fetch", but also of "what to keep, what to drop and where to put it". Treat the context window like a desk: the space is limited, and everything placed on it needs a reason to be there.
VIII. The limits of an architecture built only around language
Prompt engineering and RAG are often expected to do too much because of the same misconception: give the model enough words and enough documents, and it will turn into a complete system on its own.
But a company does not only need a machine that reads and writes. It needs a system that can check permissions, read the current state, write a row of data, send a notification, restart a service, wait for the result, handle errors and refuse to act when the evidence is missing.
Those are operations on the outside world, not just text.
A prompt changes the input conditions of the prediction. RAG adds data to those conditions. Chain-of-Thought has the model write more into those conditions itself. At the level of the model, all three still act on the same expression:
On their own, they grant no access, create no database transaction, set up no way to undo, and give no guarantee that the output just produced matches the real state. Nor do they revise the pre-training objective that shaped the preference for a fluent sequence.
A reliable architecture starts to appear when the model's output is no longer the end of the line. The token sequence has to become a structured request; that request has to pass through a layer that checks permissions and constraints; the runtime has to return a clear state; and only then is the model allowed to interpret the result for the user.
At that point the system does not merely "say it did it". It has evidence of whether the action succeeded, failed or was refused.
Prompt engineering and RAG are not useless. On the contrary, they are two important parts of many good systems. The mistake is treating them as the whole architecture.
They help improve what the model says. A reliable software system has to answer for more: what it read, what it was allowed to do, what it actually did, and how it proves it.
- Tom B. Brown et al., Language Models are Few-Shot Learners, NeurIPS 2020. LAMBADA results in Table 3.2; zero/one/few-shot in Figure 2.1. ↩
- Jason Wei et al., Chain-of-Thought Prompting Elicits Reasoning in Large Language Models, NeurIPS 2022. The Roger example is Figure 1. ↩
- Takeshi Kojima et al., Large Language Models are Zero-Shot Reasoners, NeurIPS 2022. ↩
- Miles Turpin, Julian Michael, Ethan Perez, Samuel R. Bowman, Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Prompting, NeurIPS 2023. ↩
- Adam Tauman Kalai, Ofir Nachum, Santosh S. Vempala, Edwin Zhang, Why Language Models Hallucinate, 2025. ↩
- Long Ouyang et al., Training language models to follow instructions with human feedback, NeurIPS 2022. SFT and the reward model in §3.5; the objective and PPO-ptx in equation (2). ↩
- Patrick Lewis et al., Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks, NeurIPS 2020. The fixed document encoder in §2.4. ↩
- Nils Reimers, Iryna Gurevych, The Curse of Dense Low-Dimensional Information Retrieval for Large Index Sizes, ACL 2021. ↩
- Orion Weller, Michael Boratko, Iftekhar Naim, Jinhyuk Lee, On the Theoretical Limitations of Embedding-Based Retrieval, revised March 2026. The sphere-packing bound, and the free-embedding experiment giving the critical number of documents per dimension. ↩
- Nelson F. Liu et al., Lost in the Middle: How Language Models Use Long Contexts, TACL 12 (2024), pp. 157–173. Data from Tables 1 and 6. ↩
- Kelly Hong, Anton Troynikov, Jeff Huber, Context Rot: How Increasing Input Tokens Impacts LLM Performance, Chroma, July 2025. ↩
— espresso.hoagg