Context is information added to a prompt so a language model can interpret a request and respond appropriately. It supplies knowledge the model may not have, such as current company policies, rather than relying only on the user’s wording or training data. section 7.2.1
A useful prompt separates four responsibilities:
- Input captures what the user writes. section 7.5
- Instruction encodes task-specific directions in a template. section 7.5
- Context adds retrieved information through retrieval-augmented generation (RAG) or database lookups. section 7.5
- System instructions establish hidden, task-wide constraints. section 7.5
A policy question
For “How much does the company match for our 401k?”, a vector database can retrieve the closest policy documents and insert them as context. Combined with instructions to answer only from company policies and admit uncertainty, the model can respond with the relevant match rate and documentation link. section 7.2.1

















