AI & Data2 January 20277 min read

Ontology Before Autonomy — Part 3 of 10

RAG supplies evidence, not missing concepts

Retrieval can bring the right service instruction, glossary entry or policy passage into context. It cannot tell the system which application a person means, or give it authority to act. Part 3 of Ontology Before Autonomy divides the work three ways: retrieval for approved evidence, the ontology for meaning and relationships, and policy for authority.

#Ontology#RAG#AI Agents#AI Governance#Knowledge Management

At an illustrative civil-registration counter, an applicant says they want to "renew" their identity document. The assistant's retrieval step does its job well. It finds the approved glossary entry for "renewal", the current service instruction on renewals, and the paragraph listing the supporting documents required. The reply that follows is accurate, well sourced and beside the point.

The applicant's document was lost. In the service, a lost document follows a different path from a renewal, with a different form, different supporting documents and, often, a declaration. The applicant used the word "renew" because, to them, they were getting the same document again. Retrieval matched the word. It had no way to know that the word pointed at the wrong concept.

Retrieval supplies approved evidence at the moment of answering; it does not supply the concepts, relationships or authority the system is missing, so use retrieval for knowledge, the ontology for meaning and policy controls for what may be done.

Part 2 separated language accuracy from service meaning. This part looks at the next temptation: assuming that if the right documents are retrieved, the right meaning will follow.

What retrieval is good at

Retrieval-augmented generation, usually shortened to RAG, finds passages relevant to a question and gives them to the model as context for its answer. In a service setting it is the right tool for a specific job: bringing approved, current, sourced knowledge into the conversation.

  • The current service instruction for a process.
  • The approved glossary entry for a term, in each language.
  • The policy passage that states a requirement.
  • The office hours and contact details for a location.
  • A worked example the language specialists have approved.

Each of these is evidence. It has a source, a version and an owner, and the answer can point to it. Without retrieval, the model answers from whatever it learned in training, which may be out of date, general or wrong for this service. With it, the answer can be grounded in what the organisation has actually approved.

RAG retrieves similar text. Enterprises need trusted meaning shows how a retrieval pilot can find passages that look right and still answer wrongly. Fix the information gap before adding RAG covers what to do when the approved knowledge does not exist yet.

What retrieval cannot supply

Three things are not in any passage the system can retrieve.

Which concept the person means. "Renew" might mean a renewal, a replacement after loss, a correction of details or a collection of a document already applied for. Each is a different entity or process in the service. Retrieval finds text that matches the word. Deciding which concept the word refers to, for this person, needs the map of the service world and, often, a question.

How the person's case relates to that concept. Even when the concept is right, the system needs to know whether this person has an existing application, what its status is, whether there is an appointment, and whether the person is the applicant or acting for someone. Those are relationships and states. They come from systems of record and from the ontology that says how they connect, not from documents about the process.

Authority to act. A retrieved policy passage can say that an official may waive a requirement in defined circumstances. It does not give the agent that power. Whether an action is allowed, and who may take it, is a policy and authority question, and it must be answered by a control the system enforces rather than a paragraph the model has read.

Companion reading: RAG cannot teach a model a language, in Series 23, makes the same kind of boundary argument for linguistic competence. That article is about whether the model can understand and produce the language. This one is about whether the system knows what the words refer to in the service, and who may act on it.

Evidence, meaning, authority

The decision tool for this part is an allocation table. For each question the agent must answer, decide which layer answers it. If the answer is "the model will work it out from the retrieved text", the design has a gap.

Question the agent must answerLayer that answers itSource of truthFailure if left to retrieval
What does the approved guidance say?Evidence (retrieval)Approved content with version and ownerNone; this is retrieval's job
What does this term mean, in this language?Evidence (glossary retrieval)Approved glossaryNone, if the glossary is maintained
Which concept does the person mean?Meaning (ontology mapping, with clarification)Ontology and the person's confirmationMatches the word, not the concept
Does this person have an existing case, and in what state?Meaning (ontology plus system of record)Case or application systemGuesses state from the wording
Which requirements apply to this case?Meaning selects; evidence suppliesOntology relationship, then the instruction for that typeLists requirements for the wrong process
Is this action allowed now?Authority (policy check)Executable rulesFollows a passage as if it were permission
Who may decide?Authority (role model)Role and delegation recordsImplies the agent can decide
Evidence, meaning and authority, in order. A translated statement says: I want to renew my document. Step 1, meaning, uses the ontology to decide which concept is meant, renewal, replacement or correction, and which case and state apply; if it is ambiguous, the system asks one question. Its sources are the ontology, the system of record and the person. Step 2, evidence, uses retrieval to fetch the instruction and requirements for the confirmed concept, with source and version, from approved content and the glossary. Step 3, authority, uses policy to decide that explaining and offering a booking are allowed while accepting a declaration belongs to an official, from executable rules and the role model. The answer explains, offers an appointment, cites its source and hands the declaration to an official.Translated statement: “I want to renew my document.”ambiguous: ask one question1 MEANING: ONTOLOGYWhich concept: renewal,replacement or correction?Which case, in which state?SOURCE OF TRUTHOntology, system of recordand the person2 EVIDENCE: RETRIEVALInstruction and requirementsfor the confirmed concept,with source and versionSOURCE OF TRUTHApproved contentand glossary3 AUTHORITY: POLICYExplain and offer a booking:allowed. Accept a declaration:an official decidesSOURCE OF TRUTHExecutable rulesand role modelAnswer: explain, offer an appointment, cite the source, hand the declaration to an officialRetrieving first lets the most similar text choose the concept. Mapping first lets retrieval be filtered by meaning.
Retrieval supplies approved evidence. The ontology decides what the words refer to, and policy decides who may act. Map first, then retrieve. CloudNala analysis; illustrative process names.

The order matters. Map first, then retrieve. Once the system knows that the person means "replacement after loss", retrieval can be filtered to the instruction and requirements for that process. Retrieving first and mapping afterwards lets the most similar text decide the concept, which is how the renewal reply happened.

How the three work together

Replay the counter with the layers separated.

  1. The language route produces the translation: the applicant wants to "renew" their document.
  2. The ontology mapping finds that "renew" is ambiguous between Renewal, Replacement and Correction, all of which are Application types in the map. It also checks the system of record: there is no open application for this person.
  3. Because the concept is ambiguous and the next action depends on it, the workflow asks one question: "Do you still have your current document, or was it lost or damaged?"
  4. The applicant says it was lost. The mapping now resolves to Replacement.
  5. Retrieval is filtered to the Replacement instruction and its requirements, and the answer cites them.
  6. The policy check confirms that explaining requirements and offering an appointment are allowed. Accepting a loss declaration is not; that belongs to an official.

Each step has its own record. If the outcome is wrong, the record shows whether the cause was the translation, the mapping, the retrieved content or the rule.

What this means for the knowledge base

Separating the layers also changes how the knowledge base is built. Content should be tagged with the ontology concepts it applies to, so that retrieval can be filtered by the mapped concept rather than by text similarity alone. Glossary entries should point to concepts as well as words, so that "renew" in each language links to the several concepts it might mean. And content owners should be able to see which concepts have no approved content at all, because those are the places where the model will fill the gap itself.

Context is the product covers the wider choice between retrieval patterns, graphs, ontologies and structured lookups. The principle here is narrower: retrieval answers "what does the approved source say?", and it should be asked that question only after the system knows what it is asking about.

How NalaTolika applies the split

NalaTolika is a CloudNala concept and reference architecture for governed language interpretation. It has no customers, deployments, pilots, data or results. In its reference design, the glossary links each approved term to an ontology concept per language, retrieval is filtered by the concept the mapping step has confirmed, and every answer that states a requirement carries the source and version of the instruction it used. Actions such as accepting a declaration or changing a status are outside the agent's authority in every configuration, whatever the retrieved text says.

Next in the series: An ontology is not a database diagram. All parts are on the series page.

Sources and limits: this article is CloudNala analysis. The allocation table and the map-then-retrieve sequence are CloudNala recommendations. The renewal scenario and the process names (renewal, replacement, correction) are illustrative and do not describe the rules of any department or organisation. NalaTolika is a concept with no deployments, customers or data. Retrieval quality, the ontology and policy controls each reduce different errors; none of them eliminates model errors.

How CloudNala can help

CloudNala maps the questions your agent must answer to evidence, meaning and authority. We find the questions currently left to retrieved text, tag your approved content with the concepts it serves, link glossary terms to concepts per language, and design the map-then-retrieve sequence with the clarifying questions that resolve the common ambiguities.


Work with CloudNala

CloudNala helps organisations move from technology ambition to practical execution across cloud, AI, data, platform engineering and digital services.

Whether you are exploring AI, modernising your cloud environment, building a public-sector digital service, or turning an idea into a working MVP, we can help you shape the roadmap and deliver the next step.

Book an Ontology and Agent Governance Assessment or write to us at consult@cloudnala.co.za

Found this useful?

Share