Sub topic 6
Giving the model your context
This chapter assumes you can write a structured prompt with role, context, task, format, and constraints. It also assumes you have used a chat assistant and can anonymize data before pasting it. Here the focus is the context part: what to supply, how to present it, and how to keep the model working from it.
Why context decides the quality of the answer
A language model knows nothing about your product, your customers, or your company. It only knows patterns from its training data and whatever you put in the conversation. If you ask "What are the main onboarding problems?" with no notes attached, the model will produce plausible problems that sound like onboarding problems in general. They will not be your users' problems, and nothing in the answer will tell you which kind you got.
Grounding means giving the model the material it should work from, and telling it to stay within that material. This does not make the output correct. It narrows the space where errors can occur, and it makes errors easier to find, because you can compare the output with a source you control.
Three kinds of context
Not all context does the same job. Separating the kinds helps you decide what to include.
| Kind | What it is | Example |
|---|---|---|
| Source material | The text the answer must be based on | Interview notes, survey comments, a draft spec |
| Background facts | Short facts that frame the task | "We sell to agencies of 5 to 30 people" |
| Definitions and rules | Terms and conventions the model cannot guess | "Active user means one or more events in a calendar week" |
Source material is usually long. Background and definitions are short, and they are the part people most often leave out. Most of the confident-but-wrong answers in PM work come from a missing definition, such as which events count as activity or what "churn" means for your contract type.
Presenting source material
Put source material in a clearly marked block, separate from your instructions. Triple quotes, XML-style tags, or a labeled heading all work. What matters is that the model can tell where your instructions end and the pasted text begins. This also reduces the chance that text inside the notes is read as an instruction.
Role: You are a senior product manager reviewing customer research.
Context: We build a project-management app for small agencies. The notes below are from five interviews about onboarding. "Participant" means one interviewee.
Task: Identify the three most common problems participants describe.
Format: A table with columns Problem, Number of participants who mentioned it, and One short supporting quote.
Constraints: Use only the notes below. If a point appears in only one interview, say so. Do not infer motives that are not stated. If the notes do not support three problems, return fewer.
Notes:
"""
[paste anonymized interview notes here]
"""Three details in this prompt do the grounding work:
- "Use only the notes below" sets the boundary.
- "If a point appears in only one interview, say so" asks the model to report weak support instead of hiding it.
- "Return fewer" gives the model a legitimate way out. Without one, it tends to fill the requested number of slots.
Label each document when you paste several, for example Interview 3, 2026-10-14. Labels let you ask for citations and let you check them later.
Telling the model how to use the context
Pasting text is not enough. Add instructions for how to treat it.
- Restrict the source. Say whether the model may use general knowledge. For research synthesis, the answer is usually no. For drafting a competitor comparison framework, it may be yes.
- Ask for evidence. Request a quote, a document label, or a line reference with every claim. A claim with no quote you can find is a flag to investigate.
- Allow "not stated". Tell the model to write "Not in the material" when something is missing.
- Separate facts from inference. Ask it to mark any conclusion it drew itself.
Context has limits
A model reads a fixed amount of text per conversation, called its context window. Two practical consequences follow.
- Overflow. If your material is larger than the window, the tool may reject it or silently drop part of it. A summary of "all 40 interviews" may only reflect the first 25. Ask the model to list the documents it received, and compare that list with what you sent.
- Uneven attention. Models can use material in the middle of a very long input less reliably than material at the start or end. Put the task and constraints after a long document as well as before it, or split the work.
For large sets, process in batches. Summarize each interview or group of interviews separately with the same prompt, then run a second prompt over the summaries. Check the batch summaries against their sources first. Otherwise any error they contain passes silently into the combined result.
More context is not always better. Irrelevant material gives the model more things to latch onto. Include what the task needs, and cut boilerplate such as email signatures and unrelated agenda items.
When context conflicts or goes stale
Real material contradicts itself. A roadmap deck from March may disagree with a planning note from October. If you paste both without comment, the model will blend them or pick one at random.
State precedence in the prompt: "Where documents disagree, prefer the later one and list each disagreement." Date every document. Ask the model to surface conflicts as a separate list, since a conflict between two sources is often something you should resolve yourself.
Context you reuse across sessions also goes stale. If you keep a saved block of product background, review its dates and numbers whenever you reuse it.
A before-and-after example
Weak prompt:
Write acceptance criteria for CSV export of members.The model must guess the roles, the permissions model, the columns, and the file limits. It will guess and present the guesses as requirements.
Grounded prompt:
Draft acceptance criteria in Given / When / Then form for the feature below.
Background: Workspaces have two roles, Admin and Member. Only Admins can manage members.
Definition: "Member list" means name, email, role, and date joined. It does not include billing data.
Feature: Let workspace admins export the member list as a CSV file.
Use only the background, definition, and feature above. If something needed is not stated, such as file size limits, list it under Open questions and do not invent a value.The second version states what is known and sends everything else to Open questions, where your team can decide it.
Common errors
- Pasting data you should not share. Grounding pulls you toward including real material. Anonymize names, emails, and account identifiers first, and follow your company's policy on which tools may receive customer data.
- Mixing instructions and source text. Without a boundary, a line in a transcript like "please summarize this" can be treated as a command.
- Assuming the model read everything. Verify coverage, especially with long inputs.
- Treating grounded output as verified. The model can still misquote, miscount, or merge two speakers. Counts such as "4 of 5 participants" should be checked against the notes.
- Leaving out definitions. Metrics terms are the most common source of silent errors.
Exercise
You paste transcripts from eight customer calls into an assistant and ask for "the top three feature requests." The answer lists three requests, each with a confident explanation of why customers want it. Name three changes to the prompt that make the answer easier to trust, and one check you do afterward.
Show answer
Possible changes: (1) label each transcript (Call 1 to Call 8) and fence them in a delimited block; (2) add "Use only the transcripts; if fewer than three requests are supported, return fewer; do not explain motives that are not stated"; (3) require a count of calls that mention each request plus one short quote per request with its call label. Afterward, ask the model to list the calls it received to confirm all eight were read, then search the transcripts for each quote and recount the mentions yourself.