Artificial intelligence may receive a long document containing the correct answer and still give the wrong one. An important definition might appear at the beginning, an exception in the middle and the relevant rule near the end. Reading the last paragraph alone is not enough. A correct answer depends on recognising how the distant passages work together.
Vocabulary Coding and Engineering treats a document as a connected structure rather than a sequence of independent sentences. Definitions, cross-references, conditions, exceptions and scope must survive when AI retrieves a passage, compresses a chapter or turns a document into instructions. A larger context window can make more information available, but availability does not guarantee reliable use of every important dependency.
- Document meaning may depend on definitions and exceptions located far from the rule being interpreted.
- A context window describes available input capacity, not guaranteed comprehension.
- Retrieval and chunking can separate related passages.
- A faithful summary preserves dependencies as well as individual facts.
- Test whether answers remain correct when important information is moved, reformatted or separated.
The difference between reading a sentence and understanding a document
Imagine a fictional community centre handbook. Its first section defines a current member as a person whose registration is active. Section seven states that current members can reserve a room. Section twelve states that a particular room is restricted during maintenance. Each sentence can be clear when read in isolation, but the reservation decision requires all applicable conditions.
A short AI answer saying that all members may reserve every room would be wrong. It loses the registration definition and the maintenance exception. If the AI has access to all three passages, the mistake is not necessarily caused by missing documents. It may arise because the system failed to connect the relevant passages.
Many documents use words whose meaning has been defined earlier. A phrase such as for purposes of this section narrows the definition to a particular scope. A clause saying subject to the conditions in another section establishes a dependency. If a system copies the main rule without the referenced conditions, it may change the meaning of the whole rule.
This is not an argument against summarisation. It is an argument for determining which dependencies cannot be removed without changing the answer.
Zoom 1: the reader with a long manual
Suppose a person asks whether a fictional membership permits a guest to use a shared facility. An AI retrieves a sentence allowing guests. A later section limits this permission to accompanied guests. A summary that omits accompanied may communicate a different policy.
A reader can ask the assistant to identify the specific section, relevant definitions, eligibility conditions and exceptions. Then inspect the original text. For a consequential legal or contractual decision, obtain appropriate professional advice rather than treating the AI as the final interpreter.
The same issue occurs in technical manuals. A general instruction may apply only to a particular version or configuration. A warning elsewhere in the document may change what is appropriate. The answer should preserve the boundaries of the original instruction and direct readers to the relevant authoritative material.
Zoom 2: the limits of long-context processing
Language models generally process inputs within a context supported by the system. This context may include instructions, user messages, retrieved material and other content. A larger supported context can allow more material to be supplied, but it does not demonstrate that the model will use each passage correctly on every task.
Nelson F. Liu and colleagues examined this issue in their 2024 paper, Lost in the Middle: How Language Models Use Long Contexts. In the models and retrieval tasks they studied, changing the position of relevant information could substantially affect performance. Important information placed in the middle was often harder for those systems to use.
This is an empirical finding about specific tested systems and tasks, not a universal rule that every present or future model fails on middle passages. The practical lesson is to evaluate the actual system rather than assume its advertised input capacity establishes document-level fidelity.
An assistant may also receive selected chunks of a document rather than its full contents. Chunking can make retrieval more efficient, but a definition in one chunk may be separated from the rule in another. A high-ranking search result can then be insufficient to answer the actual question.
Zoom 3: institutional document workflows
Imagine a fictional institution maintaining policies, amendments, definitions and procedure documents. A team creates an AI search assistant. If the assistant retrieves policy fragments without their version or cross-references, a user may receive a mixture of provisions that were never simultaneously in force.
A stronger design maintains the identity, version, status and structure of each document. It retains links between a defined term and its definition, between a rule and its exceptions, and between a policy and authorised amendments. When the relevant passage is retrieved, the system also seeks the dependencies needed to interpret it.
The approach is not to send every available page into every prompt. It is to establish what evidence is necessary for the particular question, preserve the required context and state what could not be checked. A reviewer should be able to trace the final claim back to the appropriate sections.
For high-impact decisions, validate the application against authoritative policy and suitable professional review. AI-generated interpretations should not automatically override the document. Access controls must also remain effective when retrieving cross-referenced material.
Zoom 4: long documents and the memory of civilisation
Laws, international agreements, scientific works and historical records often communicate meaning across many sections or related documents. A particular phrase may depend on earlier terminology, a later amendment or the historical circumstances of its publication. When a public AI system extracts isolated fragments, it can create an appearance of certainty that the full record does not support.
An international agreement might use one term in a general section and define a narrower meaning for a particular provision. A historical document might refer to a title whose meaning changed over time. These dependencies matter even if the extracted sentence is accurately copied.
At this scale, vocabulary engineering also concerns preservation of context over generations. An archive should retain meaningful document structure, version history and references wherever appropriate, while respecting legal and ethical restrictions. If a source is incomplete, its missing context should be acknowledged.
The aim is not to prevent new interpretations. It is to let readers distinguish a documented interpretation from an unsupported one and recover the evidence needed to evaluate it.
A proposed document dependency test
Start with a short fictional rulebook. Write a definition, a general permission, an exception, an effective date and a cross-reference. Record the expected answer for several clearly specified cases before asking the AI system to interpret the rulebook.
In the first version, place the relevant definition near the beginning. In another version, place it in the middle while preserving the document’s meaning and reference structure. In a third version, place a harmless intervening section between the rule and its exception. Compare the answers and their cited passages.
Test an incomplete version in which the cross-referenced section is unavailable. The appropriate answer may be conditional or unresolved rather than definite. A model that confidently fills in the missing rule fails this bounded test even if it guesses the expected answer.
For a retrieval system, inspect which passages are actually supplied to the model. For a long-context system, distinguish missing input from unsuccessful use of available input. These failures require different repairs.
A document dependency register can include source identifier, version, section, defined terms, references, exceptions, effective period and evidence status. This proposed Vocabulary Engineering method is compatible with existing document and knowledge-management systems; it does not replace domain-specific interpretation.
Four weeks of testing long-document meaning
Week 1: Read a fictional short handbook and mark every definition, condition and exception. Identify which sections must be consulted together.
Week 2: Create a low-stakes test document and change the positions of relevant paragraphs without changing their meaning. Compare AI responses across the versions.
Week 3: Test a retrieval workflow with related passages divided into separate sections. Record which dependencies are recovered and which are missed. Include cases where the answer is not established.
Week 4: Build a small review checklist requiring source sections, definitions, relevant exceptions and unresolved information. Re-test the document and verify answers against the original rather than against previous AI summaries.
Questions readers can ask
Does a bigger context window guarantee a better answer? No. Capacity can be helpful, but appropriate retrieval, reasoning and evaluation are still necessary.
Can an AI summary be accurate sentence by sentence and misleading overall? Yes. It may omit a dependency or qualification that changes the conclusion.
Should every answer include the entire document? No. A good answer presents the necessary evidence and context, while keeping the original accessible for verification.
Read next: Why Does an AI Search Result Look Relevant Without Actually Proving the Answer? and What Happens When Two Correct Instructions Contradict Each Other?. Together they help explain why a document’s meaning is a connected structure rather than a collection of isolated sentences.