Skip to content
mentoor

Topic 2 of 5 · 4 min read

Context versus trained knowledge

Goal: Tell whether an answer came from the window or from training, and say which one to supply for a private, recent or exact fact.

A model knows two kinds of things: what it absorbed in training, and what it can read in the window right now. For private, recent or exact facts, only the window is reliable.

Check yourself · 1 of 3

You ask an assistant about a clause in your company's own contract without attaching it. What is most likely to happen?

Choose one answer

Why it matters

Training knowledge is general and frozen. The model learned patterns from a huge pile of text up to a cutoff date. It was never shown your contract, your codebase, last week's price list or your team's naming rules. If you ask about them without supplying them, it does not say "I do not know". It often produces something that sounds right. That is a guess.

Context knowledge is specific and fresh. If the text is in the window, the model can quote it, compare it and use it.

How to tell which one an answer used

Ask yourself three questions:

  1. Is it private? Your documents, customers, code and decisions are not in training. They must be in the window.
  2. Is it recent? Anything after the model's training cutoff is missing. Prices, versions, laws, news and your own last sprint all change.
  3. Does it need to be exact? Training gives a blurry memory of facts. Quotes, numbers, function signatures and clause wording should be copied from a source, not recalled.

If the answer to any is yes, put the source in the window. Paste it, attach it, or let a tool fetch it.

You can also test an answer: ask "Which part of the text I gave you supports this?" If the model cannot point to a passage, the claim likely came from training or from a guess.

Before and after

Before: "What is our refund window for annual plans?"

The model has never seen your policy. It will describe a typical refund policy and present it as yours.

After: "Here is our refund policy (pasted below). Using only this text, what is the refund window for annual plans? Quote the sentence you used. If the policy does not say, answer 'not stated'."

Now the answer comes from the window, with a quote you can check, and there is a safe way out when the text is silent.

What goes wrong

  • Confident guesses. Models sound sure when wrong. A fluent answer is not evidence that it came from your document.
  • Mixing the two. Even with a document pasted in, the model may add a general fact from training. Say "use only the text below" when that matters.
  • Stale training facts. Library versions, prices and laws change after the cutoff. The model may describe an old API with full confidence.
  • Search is still context. A tool that searches the web only helps once the results are in the window. Check that the right page was found.

Examples

Private fact: a pricing question

Without context: "What do we charge for the Team plan?" The model describes typical team pricing from the web.

With context: You paste the current price sheet and ask the same question. The model returns the price from the sheet and quotes the line. The pasted sheet is the only reason the answer is right.

Recent fact: a library change

You ask for code against a library that released a major update after the model's training cutoff. The code uses calls from the old version. You paste the new version's migration notes into the window and ask again. The answer now follows the new calls, because the notes are in front of the model.

Key points

  • Trained knowledge is general and frozen at a cutoff date; context is specific and current.
  • Private, recent and exact facts must be supplied in the window, because training does not contain them.
  • Without the source, a model tends to give a plausible answer rather than say it does not know.
  • Asking the model to quote the supporting passage shows whether an answer came from the window.
  • Telling the model to use only the provided text, and allowing 'not stated', reduces guessing.

Common mistakes

  • Asking about your own documents or data without attaching them, then trusting the confident answer.
  • Assuming the model knows recent events, prices, laws or library versions.
  • Relying on recall for exact quotes, numbers or code signatures instead of pasting the source.
  • Not allowing the model to say the text does not answer the question.

Check yourself · 2 of 3

Which fact is the best candidate to paste into the window rather than trust to the model's memory?

Choose one answer

Check yourself · 3 of 3

You paste a report and ask a question. Which follow-up best checks that the answer came from the report and not from training?

Choose one answer

Practice items, not counted towards your mastery.

Start here