AI & Knowledge

When AI gets it wrong: the problem is often context (and documents)

4 min read
Watch the video

When AI gets it wrong in the company, the problem is often not only the model: it is the retrieved context. An old version, an outdated procedure, or an incomplete document can generate an answer that sounds plausible but is operationally wrong.

A concrete example: three versions of the same document

Imagine the same file in three different folders, with similar names. AI retrieves one and answers based on that source. Only it was the version from six months ago: conditions have changed since then.

Technically this is not necessarily a “hallucination” in the strict sense. It used a real source, but not the correct one. It is a document-organization and retrieval error before it is an artificial-intelligence error.

Three types of error not to confuse

To intervene well, you need to distinguish:

  1. Corpus error: obsolete, duplicated, or contradictory sources;
  2. Retrieval error: the system retrieves the wrong or incomplete fragment;
  3. Generation error: the model invents or reconstructs beyond the sources.

The original RAG paper explains why connecting a model to external memory can improve factuality and provenance. But studies on RAG robustness at the query level and work such as Stable-RAG show that output remains sensitive to question formulation, retrieval quality, and even the order of retrieved documents.

Practical conclusion: putting the knowledge base in order helps not because it eliminates every error, but because it reduces the probability of answering on the wrong context.

The real work is on the library, not only on the machine

If you give a machine a disordered library, with duplicated books, unlabeled shelves, and old copies mixed with new ones, you cannot expect it to always find the right citation.

Preventing many operational AI errors does not mean only adding controls on the model. It means putting order in the knowledge AI uses:

  • organize critical documents;
  • make them searchable;
  • add minimal metadata (who, when, current version);
  • clarify access (who can see what);
  • define a reference source for decisions.

What to do in practice on a limited perimeter

  1. Identify the critical documents of a process (contracts, procedures, policies, reports).
  2. Delete or archive duplicates and establish the current version.
  3. Add minimal but useful metadata.
  4. Define access rights.
  5. Connect AI to this ordered perimeter, with source citation.
  6. Evaluate answers with the people who live the process every day.

The expected result is not automatic perfection. It is a more verifiable system: citable answers, errors that are easier to correct, and trust that grows because people can see where the information comes from.

FAQ

Can AI learn on its own to distinguish versions?
Not reliably without governance. You need metadata, ownership, and versioning rules. AI amplifies the order or disorder it finds.

Do you need a huge data-cleaning project?
No. Start from one process and a limited perimeter. Prove value and expand.

What is the risk if you do nothing?
Brilliant demo answers that fail in daily work, loss of trust, and a return to “better ask a colleague.”

Does an ordered knowledge base eliminate hallucinations?
No. It reduces errors linked to wrong or incomplete sources, but it does not remove all retrieval and generation limits.

Sources

Explore the series

If you want to reduce errors linked to obsolete versions and incomplete sources, we can run a targeted assessment on one process: duplicates, golden source, retrieval gaps, and verification criteria. Write to us at info@zendata.it or visit zendata.it.

Pietro Ciattaglia, CEO of Zendata AI, Rome