Skip to content
Tiatra, LLCTiatra, LLC
Tiatra, LLC
Information Technology Solutions for Washington, DC Government Agencies
  • Home
  • About Us
  • Services
    • IT Engineering and Support
    • Software Development
    • Information Assurance and Testing
    • Project and Program Management
  • Clients & Partners
  • Careers
  • News
  • Contact
 
  • Home
  • About Us
  • Services
    • IT Engineering and Support
    • Software Development
    • Information Assurance and Testing
    • Project and Program Management
  • Clients & Partners
  • Careers
  • News
  • Contact

AI agents should retrieve facts, not define them

I have made this mistake before. The goal was to create an executive intelligence agent: an artificial intelligence (AI) engine where C-suite executives could self-serve their analytics and pull trusted numbers for the board.

The promise was strong: personalized dashboards, ad hoc analyses, automated tasks and board decks, all from a single interface. Much faster than the status quo, and without a single new hire.

So, I did the reasonable thing and connected the AI directly to the database. It could query the data, build beautiful charts and refresh dashboards daily.

It was also useless, because the numbers it pulled could not be trusted. Analysts had to step in; Jira ticket counts went up rather than down and adoption never hit the target.

AI agents reach into different systems to perform tasks in the real world. They query databases, call APIs and search documents. They resolve conflicts, interpret ambiguities and report a result. The most valuable agents do all this without human intervention.

That is also where the danger sits. Agents that work unsupervised must answer factual questions accurately. Whether in analytics, sales or customer service, facts are not subjective, and getting them right is where trust lives or dies.

This isn’t a hallucination problem. The agent isn’t fabricating an answer; it is making a decision about data that it never had the authority to make.

Stakes are higher when agents are unsupervised

Human-in-the-loop (HIL) is when an AI agent’s output is verified by a human before it can be dispatched or act in the real world. HIL has become a standard framing for AI applications and a common governance recommendation, particularly in regulated environments.

HIL applications are often internal. They make teams more efficient, reduce cost and increase speed. Coding is a classic example, where engineers review, test and validate code before shipping it.

But there is a class of applications where HIL is not an option, and where trust matters most: a customer service agent answering questions about a customer’s account; an embedded analytics chatbot reporting ARR to a client; an executive intelligence agent putting a number in a board deck. The consequences of getting it wrong are real: a support ticket, a lost customer or a loss of credibility with the board.

In all three, the person receiving the answer cannot check it. And adding a human in the loop would undercut the value of the application in the first place.

A supervised agent is allowed to be wrong because someone verifies the answer, corrects it and is accountable for it. An unsupervised agent is not.

When APIs disagree, your agent makes a choice

We built a four-agent system that could act on behalf of a vendor and answer customer questions in a marketplace setting. The agents needed data about the vendor and customer to provide personalized answers. The system was unsupervised.

But the data came from scattered, siloed APIs. Something as simple as a customer’s address could live in several places, and those systems often disagreed.

The agents had to query multiple APIs and decide which value was correct. The result was unreliable: the same question could produce a different answer across sessions. Personalization was the entire value proposition, and it had become a liability.

What fixed it was resolving the conflicts before the agents ever saw the data. We built business logic that reconciled the raw records and loaded the result into a feature store. The customer’s address, name and budget now had one value each. The agents stopped choosing, and the system became reliable.

That solution required real business decisions: reconciliation rules had to be encoded, and someone had to decide which system won for each field. No amount of prompting would have solved that. Logic that lives in a prompt is subject to interpretation, and there is no guarantee that the same inputs will produce the same outcome twice.

For a production system where trust matters, the answer has to be resolved once and reused, not regenerated on every request.

Choosing the right document before your agent does

The same problem appeared in the unstructured data. Reviews and past customer conversations were stored in a vector database and retrieved through Retrieval-Augmented Generation or RAG. The data was rich and often contained what a customer needed, but multiple sources could disagree.

Sometimes the information was stale: venues move, parking information changes, transportation schedules do too. Other times what was right for one customer wasn’t right for another: instructions for someone arriving by plane are not the instructions for someone arriving by bus, and both are correct.

Again, the agent had to choose.

So, we built a retrieval tool that resolved the conflict before the agent saw the results. We ranked sources by whether the conversation was with the same customer, then the same region, then any customer, with recency weighted throughout.

It wasn’t sophisticated or guaranteed to be perfectly current or correct. It did something more fundamental: it removed unnecessary variability. The same question returned the same answer.

The agent stopped choosing.

Why agents shouldn’t query the database

I ran an experiment to prove to myself I was right. The setup was simple: give LLMs increasingly complex business logic as context and see if they could accurately apply it to data. My hunch was that the more rules there were, the less likely they were to get it right.

The results were worse than I expected. Across nine models, from small to frontier LLMs, the top scores were 97% accuracy at five rules, 73% at fifteen and 43% at fifty. No single model dominated; bigger models did not always perform better, and the average was much lower than the top results.

I was convinced: query generation would never be reliable enough in an unsupervised setting. Context cannot be enforced; it is up for interpretation, and the bigger and more complex it becomes, the less likely the LLM is to follow it correctly.

I needed a different approach. Rather than querying the database directly, the executive intelligence agent would query a semantic layer with clean, unambiguous definitions. The backend engine would then translate the metric query into SQL.

We added a Model Context Protocol (MCP) tool that constrained how the agent could query the metrics: metric names, dimensions, time frame and not much else. By constraining the retrieval, we removed the opportunity for the model to guess beyond what was defined.

This did the trick. Repeated questions about a metric returned the same result, and that result was the one the business had agreed on. The numbers could be trusted. Token consumption and latency were also much lower because answering a question no longer involved SQL generation.

It worked because the semantic layer did the resolution, not the agent. More correctly, a human resolved the metric definition and encoded it into the semantic layer, so the agent didn’t have to guess.

Someone has to decide, and it shouldn’t be the agent

When the data supports multiple answers, but only one of them is valid, the agent is forced to choose. That decision cannot be trusted: the agent does not have the authority to make it, it cannot be held accountable for it, and it cannot be audited afterward because its reasoning leaves no durable trace. Even a perfectly deterministic LLM would produce a consistent answer that no one approved.

The easy answer is to supervise the agent with a human. This adds accountability, but also cost. Humans are slow and expensive, errors still pass through and the resolution logic remains in someone’s head rather than in the system. Worse, accountability often lands with the analyst, sales rep or revenue operator who reviewed the answer, rather than with the person who has the authority to define it.

The more durable answer is a resolution layer between the agent and the data that removes the need for a choice. A feature store reconciles conflicting systems into one value. A retrieval tool ranks sources according to rules someone wrote down. A semantic layer holds metric definitions behind a constrained set of tools the agent cannot route around.

The implementation varies. The principle does not: a human decides once, the system encodes the decision and the agent stops choosing.

This is hard not because of the infrastructure, but because it surfaces decisions someone with authority has to make. What counts as an active customer? Which system wins when two disagree? Which source takes precedence? Those answers belong to the business, not the agent.

There are decisions that can be safely delegated to an agent, others to a human and others that cannot be delegated at all. The skill is knowing which is which.


Read More from This Article: AI agents should retrieve facts, not define them
Source: News

Category: NewsSeptember 17, 2026
Tags: art

Post navigation

PreviousPrevious post:AI-smart, not AI-firstNextNext post:AI failures are inevitable. So is the CIO getting blamed.

Related posts

AI-smart, not AI-first
September 17, 2026
AI failures are inevitable. So is the CIO getting blamed.
September 17, 2026
The CIO-Legal partnership will define the future of enterprise AI
September 17, 2026
The 7 new Cs of IT leadership for the AI era
September 17, 2026
Digital transformation fails without this culture shift
September 17, 2026
Salesforce’s massive outage exposes the hidden risks of cloud dependencies
September 17, 2026
Recent Posts
  • AI-smart, not AI-first
  • AI agents should retrieve facts, not define them
  • AI failures are inevitable. So is the CIO getting blamed.
  • The CIO-Legal partnership will define the future of enterprise AI
  • The 7 new Cs of IT leadership for the AI era
Recent Comments
    Archives
    • September 2026
    • August 2026
    • July 2026
    • June 2026
    • May 2026
    • April 2026
    • March 2026
    • February 2026
    • January 2026
    • December 2025
    • November 2025
    • October 2025
    • September 2025
    • August 2025
    • July 2025
    • June 2025
    • May 2025
    • April 2025
    • March 2025
    • February 2025
    • January 2025
    • December 2024
    • November 2024
    • October 2024
    • September 2024
    • August 2024
    • July 2024
    • June 2024
    • May 2024
    • April 2024
    • March 2024
    • February 2024
    • January 2024
    • December 2023
    • November 2023
    • October 2023
    • September 2023
    • August 2023
    • July 2023
    • June 2023
    • May 2023
    • April 2023
    • March 2023
    • February 2023
    • January 2023
    • December 2022
    • November 2022
    • October 2022
    • September 2022
    • August 2022
    • July 2022
    • June 2022
    • May 2022
    • April 2022
    • March 2022
    • February 2022
    • January 2022
    • December 2021
    • November 2021
    • October 2021
    • September 2021
    • August 2021
    • July 2021
    • June 2021
    • May 2021
    • April 2021
    • March 2021
    • February 2021
    • January 2021
    • December 2020
    • November 2020
    • October 2020
    • September 2020
    • August 2020
    • July 2020
    • June 2020
    • May 2020
    • April 2020
    • January 2020
    • December 2019
    • November 2019
    • October 2019
    • September 2019
    • August 2019
    • July 2019
    • June 2019
    • May 2019
    • April 2019
    • March 2019
    • February 2019
    • January 2019
    • December 2018
    • November 2018
    • October 2018
    • September 2018
    • August 2018
    • July 2018
    • June 2018
    • May 2018
    • April 2018
    • March 2018
    • February 2018
    • January 2018
    • December 2017
    • November 2017
    • October 2017
    • September 2017
    • August 2017
    • July 2017
    • June 2017
    • May 2017
    • April 2017
    • March 2017
    • February 2017
    • January 2017
    Categories
    • News
    Meta
    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Tiatra LLC.

    Tiatra, LLC, based in the Washington, DC metropolitan area, proudly serves federal government agencies, organizations that work with the government and other commercial businesses and organizations. Tiatra specializes in a broad range of information technology (IT) development and management services incorporating solid engineering, attention to client needs, and meeting or exceeding any security parameters required. Our small yet innovative company is structured with a full complement of the necessary technical experts, working with hands-on management, to provide a high level of service and competitive pricing for your systems and engineering requirements.

    Find us on:

    FacebookTwitterLinkedin

    Submitclear

    Tiatra, LLC
    Copyright 2016. All rights reserved.