3 Ways Language Models Fail (And Why Context Pasting Fails) | Vedanshu
Vedanshu Daxes Patel demonstrates with a toy assistant why hardcoded facts go stale, why full manuals get hallucinated over, and why naive text scanning still returns the wrong paragraph.
Vedanshu Daxes Patel builds a small toy assistant to demonstrate a core problem with language models: giving them more text does not automatically fix wrong answers. The demo walks through three distinct ways an assistant can fail, and shows why the obvious fix of pasting an entire document into context does not solve the underlying issue.
The two failures of a fixed-fact assistant
Patel starts with the simplest possible setup: an assistant that answers from a small hardcoded dictionary, with no lookup and no retrieval. This exposes two failure modes right away. Asked about a benefit that has since changed, it confidently returns an 8-week-old, now-incorrect figure. Asked about a program it was never told about at all, it invents a specific dollar figure anyway. Both answers come back in the same confident tone, with nothing in the output distinguishing a looked-up fact from a guess.
The obvious fix: pasting the whole manual
The natural next step is to stop hardcoding a single fact and instead paste the entire policy manual into the assistant's context, letting it scan for whatever looks relevant. This sounds like it should work, since all the real information, including the correct, updated answer, is now present in the text.
Why naive scanning still grabs the wrong paragraph
It does not work. With five real paragraphs in the manual, a naive scan just returns the first paragraph that shares any word with the question, with no ranking and no sense of which passage actually answers it. Asked about parental leave, the scan grabs a vacation paragraph because it shares the word "leave," while the correct 16-week parental leave passage sits three paragraphs later and is never reached. Pasting the whole manual did not fix the problem; it just gave a wrong answer better material to hide behind.
What both failures have in common
Patel frames both failures the same way: a hardcoded fact goes stale, and a fully pasted manual still returns the wrong paragraph. Neither failure is about the model being unintelligent. Both are about what the model was handed, and whether anything in the process decided which part of that material actually mattered. That question, of deciding what matters before the model answers, is where this chapter's argument stops and the next chapter's argument begins.
The practical challenge
Patel closes with a hands-on prompt: build a naive assistant, either a small hardcoded-fact script or a big pasted block of text, and show two ways it fails, either inventing an answer or grabbing the wrong nearby passage when the real one is buried in the middle. Then state in plain terms what would actually have to change to fix both. The suggested test is to try it on your own notes or a document, and to see whether the answer improves when you ask the model to name which passage it is actually using.
Key takeaways
- A hardcoded, fixed-snapshot assistant fails two ways: it repeats stale data or invents an answer outright.
- Confident tone is not evidence of accuracy; a guess and a looked-up fact can sound identical.
- Pasting an entire document into context does not fix retrieval; without ranking, a naive scan still grabs the wrong nearby paragraph.
- Sharing a keyword with the question is not the same as answering the question.
- The real fix requires deciding which part of the pasted material matters, not just providing more of it.
Who this is for
This is for anyone building or evaluating an LLM-based assistant over their own documents, and who wants a concrete demonstration of why naive context pasting is not the same as retrieval.
Chapters
- 0:00Three ways a language model goes wrong
- 0:20The stale data & outright hallucination trap
- 0:45The obvious fix: Pasting the entire manual
- 1:10Why naive scanning grabs the wrong paragraph
- 1:35Reaching limits: The need for intelligent ranking
- 1:55Practical challenge: Test your model's receipt verification
Full transcript(auto-generated, with timestamps)
Three ways a language model goes wrong
[0:00]Bonjour, I'm Vedantu Daksesh Patel. Chapter 2 names three ways a language model goes wrong. Let's build a toy assistant that hits two of them in one run, try the obvious fix, and watch it fail a third way. Here's the trap, a fixed snapshot assistant can only fail two ways, inventing an answer it never had, or repeating one that's since changed. The obvious fix, paste in everything it
The stale data & outright hallucination trap
[0:21]Might need, sounds like it should work. Chapter 2's whole argument is that it doesn't, not on its own. The ask, write a toy assistant that answers from a small hardcoded dict, no lookup, no retrieval. Ask it about a benefit that changed, and one it was never told about at all. Read it before trusting it. Known holds exactly one fact, frozen at 8 weeks. The real policy has since changed. Ask about wellness, and there's
The obvious fix: Pasting the entire manual
[0:45]No entry for it at all. Yet, the function still returns a specific, confident dollar figure. Nothing in here distinguishes I looked this up from I'm guessing. Run it 8 weeks stale, the policy changed. 12 wellness days and a stipend invented outright, there's no such program. Same script, same confident tone, two completely different failures. Obvious fix, stop hardcoding one fact. Paste the entire policy manual in his context, and have it scan for whatever
Why naive scanning grabs the wrong paragraph
[1:11]Looks relevant. The manual is all here, five real paragraphs including the correct one, 16 weeks updated from eight. But, naive scan just returns the first paragraph sharing any word with the question, no ranking, no sense of which passage actually answers it. The right paragraph is sitting right there in the middle. That's not the same as being found. Run it, the scan grabs the vacation paragraph. It shares the word leave with the question, and it comes
Reaching limits: The need for intelligent ranking
[1:35]First. The correct parental leave passage, 16 weeks, is sitting three paragraphs later, never reached. Pacing in the whole manual didn't fix anything. It just gave the wrong answer better material to hide behind. Same shape twice, a hardcoded fact when stale, and a fully pasted manual still returned the wrong paragraph. Neither failure is about the model being unintelligent,
Practical challenge: Test your model's receipt verification
[1:56]Both are about what it was handed, and whether anything decided which part of it mattered. That's exactly where chapter two leaves off and exactly the question chapter three starts answering. Your turn. Paste this. Take a naive assistant, Py style script like mine, small hard-coded facts, or a big pasted block of text and show me two ways it can fail, inventing an answer or grabbing the wrong nearby passage when the real one's buried in the middle. Then tell me in plain terms what would actually have to change to fix both. Try it on your own notes or a document you paste in. And see if the answer changes when you ask Claude to name which passage it's actually using. Watch the obvious fix fail, Vedanshu Daksesh Patel.
More from Humanitarians AI Fellows
2:03Why Contributor Profiles Beat Brand Posts on LinkedIn | Ankita
3:05Nyquist Limit, Sample Rate & Aliasing Explained | Rohan
2:12The 3-Act Volunteer Story System: Build a Repeatable Series | Ankita
3:15How to Read an Audio Spectrogram (And What It Hides) | Rohan
4:04How AI is Quietly Saving Small Nonprofit Teams | Agrima
4:29