What a hallucination is
A hallucination is the model confidently giving incorrect information. Typical signs:
- Inventing facts, names or citations that do not exist
- Piecing real fragments together into an article that never existed
- Giving a “reasonable-looking” answer about internal data
It looks convincing, which is what makes it dangerous.
Why it happens
The way large models work: predict the most likely next word based on the text before it. It does not need to “know it is telling the truth”, only to “sound like it”.
A few common causes:
- Not in the training data: you are asking about internal company data it has never seen
- Higher probability is not correctness: the model picks the statistically more common phrasing
- Randomness: the same kind of question can get different answers on different runs
So a stronger model lowers the probability but cannot eliminate it.
Three ways to anchor it
1. Give it trusted data
Have it look things up before answering instead of answering from memory. The approach: organise business data into queryable objects (client, order, product) and retrieve the relevant content before answering.
Example: for “which cities are our distribution centres in”, do not let it guess; have it query internal data.
2. Give it deterministic tools
Hand number calculations, date conversions and inventory deductions to tools; the model only understands and organises the language.
- Calculate amounts → calculation tool
- Look up inventory → query interface
- Sort and filter → database
3. Give it controlled actions
Let AI “look up and suggest”, but actions that change data or send messages externally must pass confirmation and validation; every action has permissions, logs and rollback.
Answers must be able to show their basis
A good answer can say “the basis comes from this dataset / this record”.
When that is not possible, the right thing to do is:
- Say clearly “I am not sure”
- Or hand over to a person
- Do not make up a plausible-looking answer
Three rules for small teams
- Key questions must query internal material: clients, prices, inventory and orders are always looked up before answering
- Numbers go to tools: amounts, dates and ratios are not left to the model’s mental arithmetic
- Admit it when there is no basis: treat “I do not know” as a normal output, not a failure
How to check whether it improved
- Prepare 20 questions that “require querying data to answer correctly”
- Compare the accuracy of “asking directly” and “looking up first”
- Record which questions the model starts making things up on
- Rerun after every prompt change or model switch
Checklist
- Key questions are connected to internal data queries
- Number questions are calculated by tools
- Answers can point out their sources
- There is an exit for “hand over to a person / say I do not know” when unsure
- High-risk actions require confirmation and logs
- There is a fixed set of hallucination test questions
Reference: key points adapted from Palantir’s official blog post “Reducing Hallucinations with the Ontology in Palantir AIP”, rewritten for small-team scenarios.
Questions
If I switch to a stronger model, will hallucinations disappear?
They will not disappear completely. Part of hallucination comes from the way the model works — predicting the next word — and a stronger model only lowers the probability. The key is still to give it data it can look up and calculations it can execute, and to expose the parts it is unsure about.
How do I tell which questions are prone to hallucination?
Three kinds are the most dangerous: those needing your company's internal data, those needing precise numbers, and those needing cited sources. All three should be looked up before answering, not answered from the model's memory.
How does a small team put this into practice?
Three things: force key questions through internal material; hand number questions to calculation tools; require answers to point out their basis. If that cannot be done, hand over to a person instead of forcing an answer.