AI CompendiumA public chart of the language
Home / Retrieval & Memory / Contextual Knowledge
Retrieval & Memory

Contextual Knowledge

What the model knows from the prompt, right now.

Definition

Facts supplied in the context window — retrieved documents, tool results, the user’s message. Editable per request, attributable, and current.

The practical rule for building reliable AI features: prefer supplying knowledge in context over hoping it lives in the weights. Context is inspectable; weights are not.

Its strengths are exactly the inverse of parametric knowledge: attributable, correctable per request, and current. Its weakness is cost and attention — every retrieved fact spends window space, so the discipline is retrieval quality rather than retrieval volume.

How people use it
A hallucination complaint.
"It is not missing the fact, it is missing it from context. Retrieval is the fix, not a bigger model."
Worked example

When the context and the memory disagree

A retrieved document contradicts what the model recalls from training.

Say so explicitly in the system prompt: supplied context takes precedence, and note the conflict when it is material. Otherwise the model arbitrates silently, and you find out which way it went only when a user complains.

Sources
Related terms