Sub topic 5
What knowledge files and models cannot guarantee
This chapter assumes you have used a custom GPT, Gem, or Claude Project at least once, and that you have read the earlier chapters on instructions and knowledge files. It explains where an assistant's answers can go wrong even when your setup looks correct, and what you can do about it.
Files are searched, not memorized
A knowledge file does not work like a handbook that the assistant reads cover to cover before every reply. Depending on the platform and the file size, the tool may place the whole file in the model's working context, or it may search the file and pass only the best-matching passages to the model. In both cases the model can miss things.
Common results of this:
- A rule on page 40 of a style guide is not retrieved for a request that does not mention it.
- A table or a scanned PDF is read badly, so figures come out wrong or missing.
- Two files disagree, and the assistant picks one without telling you.
- An old file stays attached next to its replacement, and the assistant uses the old one.
The platforms differ in file limits and in how they handle large files. Check the current documentation for each before you rely on a long document.
Models can produce confident errors
The model writes likely-sounding text. It can state a statistic, a customer quote, or a product feature that appears in none of your files. This is called a hallucination. Knowledge files lower the chance of it but do not remove it.
Instructions are also not guarantees. A rule like "never use the word 'revolutionary'" lowers the frequency of that word. It does not make it impossible, especially in long outputs or when the user's request pushes the other way.
Outputs vary between runs. The same prompt can pass on Monday and fail on Tuesday.
Reduce the risk in your setup
You cannot reach certainty, but you can narrow the gaps.
- Keep files short and single-purpose. One style guide, one banned-claims list, one set of example posts. Remove superseded versions instead of keeping both.
- Use plain text structure. Headings and bullet lists are retrieved and read more reliably than dense tables or scanned images.
- Tell the assistant what to do when the files are silent. The sample instructions in this tutorial include "If the guide does not cover a case, say so instead of guessing."
- Ask for assumptions. Require a short list of assumptions after each draft so reviewers know what the assistant filled in itself.
- Ban invention explicitly. State that it must not create statistics, quotes, or features.
# Boundaries
- Do not invent statistics, customer quotes, or product features.
- If a fact is not in the attached files or the user's message, write [NEEDS SOURCE] in its place.
- Flag any claim that needs legal or compliance review.The [NEEDS SOURCE] marker makes gaps visible in the draft. A reviewer can search for it, which is easier than hunting for a quietly invented number.
Check the limits with tests
You find these gaps by trying to trigger them. Include prompts in your test set that target the weak spots:
- A request that needs a rule from deep inside a long file.
- A request that asks for a statistic the files do not contain.
- A request that pushes the assistant to break a voice rule.
Run each prompt more than once, since a single pass can hide variation. The chapter on testing covers how to record these runs.
Summary table
| Limit | What it looks like | Main control |
|---|---|---|
| Partial retrieval | A rule in the files is ignored | Short, focused files; test prompts that need that rule |
| Stale or conflicting files | Old tone rules appear in drafts | Remove old versions; log file changes |
| Hallucination | Invented statistic or quote | Boundary rules, `[NEEDS SOURCE]` marker, human review |
| Instruction drift | Banned word appears | Repeat testing; edit instructions after failures |
| Run-to-run variation | Same prompt, different result | Rerun test set several times |
Exercise
A teammate says, "The brand guide is attached as a knowledge file, so every draft from the assistant follows it." Give two reasons this is not guaranteed, and one change you would make to the assistant's instructions.
Show answer
First, the assistant may retrieve only some passages of the file, so a relevant rule can be missed. Second, the model may not follow an instruction even when it is retrieved, and its output varies between runs. A useful change is to add a boundary such as "If the guide does not cover a case, say so instead of guessing" and to require a short list of assumptions after each draft, so reviewers can see where the assistant filled gaps itself.