Parametric and External Knowledge › What Retrieval Actually Stores (and Doesn't)
Language AI HandbookAll chapters External knowledge is information the system supplies from outside the current model weights. A caller can paste the text of a memo into a prompt. A search service can find the memo in a larger collection. A database can return a structured policy field. In a text-generation system, the chosen text or a serialization of the tool result can be passed in as context. Keeping source metadata on that path lets the application distinguish the caller's assertion from the versioned policy record.
For a retrieval system, separate the source of record, the index, and the request context:
- The source of record can hold a signed revision before search can find it.
- The index exposes the records available to the retriever. A matching record can still fall outside the retrieved set, for example because of ranking or filters.
- The request context contains whatever the application selected and supplied to the generator. Even with the right evidence in context, generation can misread it or omit it.
A timestamp needs a field name. When was a document signed? When did the rule take effect? When could your service retrieve it? A signed memo can be published before its effective date. A later indexing time can reflect ingestion lag while telling you nothing about which revision governs a question.
The original Lewis et al. RAG paper combined a pretrained sequence-to-sequence model with a dense Wikipedia index and fine-tuned its RAG architectures. In the fixed-generator setup discussed here, updating the index or supplying different passages at inference leaves the generator weights unchanged. A citation also depends on how the application records the source and ties the answer to it. A current index can still yield an answer with an unverifiable citation. A citation that points to a real passage can still give an obsolete rule. RAG Evaluation covers ways to measure retrieval and generation separately.
There are several ways search can miss an answer. A source document might never reach the index. It might be indexed but outside the returned set for a query. The application might retrieve the right document and include the wrong excerpt in context. These failures all look like missing evidence to the generator. The query, returned record IDs and supplied passages can show whether a retrieved record reached the prompt. If the record never appeared in the results, use the serving snapshot's membership to distinguish an absent record from one that was indexed. If it was indexed, check candidate and ranking logs or replay the query against that snapshot with its original settings. Membership alone cannot show whether filtering or ranking excluded it. Document Chunking, Dense Retrieval, and Hybrid Search discuss the stages in more detail.
Structured lookup changes the boundary again. If a policy service returns a versioned threshold as a field, the application can display the field directly. If search only returns prose describing how to derive the amount, you may still need an extraction or calculation step. Record which route answered the question, because a source update affects a lookup and an index through different paths.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!