Why can't you tell a wrong AI answer just by reading it?
A wrong AI answer about your data can look exactly like a right one. The query runs, the number has the right shape, and nothing signals a problem. So you check what went into the answer, not the answer alone.
Take "How many customers do we have?" on the storefront demo that ships with the open-source Malloy Publisher. The data holds three real counts: 1,000 people in the customer file, 974 with an order, and 943 with a delivered order. The demo's business rule says a customer is someone the company has delivered to, so the right answer is 943. In an eval run described in Your Data Model Is Part of Your AI System, the agent led with 1,000. Nothing about 1,000 looks wrong.
If you have a dashboard figure to compare with, Why don't AI answers match our dashboards? covers why they may differ.
How do you check an AI answer yourself?
A person reviewing an answer catches what no test does, as long as the answer gives them something to check:
- Set an expectation first. Before you read the answer, decide roughly what a right one looks like: its size, its trend, which group should come out on top. An answer far from that is the one to dig into.
- Read the assumptions it states. A checkable answer names the definition it used, the dates it covered and the filter values it applied. Ask for them if it doesn't. In How an agent turns a question into a trustworthy answer, an agent said revenue was up 32% through October, and that it used net revenue rather than gross and stopped at October because the data ends on November 14. If your finance team counts revenue gross, you can see the mismatch and push back.
- Match a figure you trust. Use a finance report or a dashboard your team relies on, with the same definition and dates. When bars.com moved its campaign reporting to a new system, it reproduced a full month against the old pipeline to the cent.
- Check what it's built on. See whether the answer uses a definition from the checked-in, reviewed model, or a formula the agent wrote itself. A reviewed definition is one less thing to check. When you need to be sure of a number, ask the agent to work it out a second way from the underlying pieces, such as the raw line items instead of the named measure, and compare.
- Look at the breakdown. A single number hides a lot. The same number split by month or region shows whether the parts add up, whether the last month is complete, and where an outlier sits. Ask the agent for a data app or notebook over the model, and you can click through the breakdowns yourself.
How do layered definitions make an answer easier to check?
An answer is easier to check when it's built from definitions someone has already checked. In Malloy, each definition builds on the ones before it:
source: orders is duckdb.table('orders.parquet') extend {
dimension: is_delivered is status = 'delivered'
measure: customer_count is count(customer_id) { where: is_delivered }
measure: delivered_revenue is sum(sale_price) { where: is_delivered }
view: top_customers is {
group_by: customer_id
aggregate: delivered_revenue
order_by: delivered_revenue desc
limit: 10
}
}You may not know enough Malloy to write this, but you can read it. A delivered order is defined in one line. The customer count and revenue reuse it, and the top-customers view reuses the revenue. A person checks each line one time. After that, an agent's answer that uses customer_count reuses a checked definition, and the reviewer reads only the part the agent added, such as a new grouping or filter.
SQL doesn't build up this way. Each query restates its joins, filters and formulas, so checking an answer means reading the whole query, often dozens of lines, and spotting the one condition that's off. Few reviewers can do that reliably. Malloy vs. SQL shows three errors a Malloy model won't let you write.
Which answers should a person review?
Review the numbers people act on, and any new definition. Leave the questions that come up again and again to an eval.
- A new definition needs judgment. Asked for the best customers, the agent in the same eval run said the model doesn't define "best", then ranked by spend without cancelled and returned lines. That puts customer 395 first. Total spend, order count, margin and delivered spend all put customer 884 first. Only someone who knew how the team ranks customers could say which was right. When they decide, the definition goes in the model, and the question stops needing review.
- An important number needs a second look before it goes in a deck. Match it to a trusted figure, or look at the breakdown.
- A repeated question needs a test, not a person. Reviewing the same question every week doesn't scale.
How do you know an AI system gives right answers?
Test it with an eval: a list of real questions your team asks, each paired with an answer someone has verified, re-run on every change. Start with the five numbers people ask about most, each with its written definition and a figure finance already trusts. Build two things in from the start:
- A right answer can be a refusal. Include questions the data can't answer. Before launch, VideoAmp asked its AI for data its report doesn't carry, and the AI said the data wasn't there instead of making up a number.
- Accuracy drifts as the data changes. Anthropic's data team reports that its agent's accuracy on its own evals fell from about 95% to about 65% over a month, because the documents the agent read fell behind the data.
How to measure text-to-SQL accuracy covers building the question list, judging answers and finding why one failed.
What tools help make AI answers checkable?
The tools are open source. Malloy and Malloy Publisher are MIT-licensed, and Publisher serves a data model to AI agents over MCP. The same repository has the analysis skill an agent follows to check its answer before it reports it, and the eval skills that score it on your questions. The tutorial gets an agent answering questions over your own files in a few minutes.
Credible runs the same models and skills as a managed service. Its chat shows the query behind each answer, and every publish creates a version that can't change and rolls back as a whole. See pricing, or read the docs.
Frequently asked questions
Can I trust an AI answer if it shows the SQL?
Not by itself. The SQL shows how the number was computed, not whether that is how your team defines it. Check five things: which table it read (the clean one, not a raw copy), whether a join repeats rows and inflates a total, the filter values, the date range, and what it counted or summed (rows or distinct orders, gross or net). A query that names a defined metric, such as net revenue, is easier to check, because you can look the definition up.
Why might an AI give a different answer to the same data question?
Often because the question can be read two ways and nothing tells the AI which reading your team means, so it picks one each time. Two runs that disagree point to the word that changed meaning, such as "revenue" or "customer". Write that word's definition down where the AI reads it.
What is an eval for an AI data agent?
An eval is a list of real questions your team asks, each paired with an answer someone has verified. The agent answers every question without seeing the verified answers, and each answer is scored against them. Re-running the list after every change to the definitions, the agent's instructions or the AI model shows whether anything broke before people see it.
What should I compare an AI answer against?
Compare it against a number someone already certified: a finance report, a board deck, or a dashboard your team relies on. Match the definition and the date range first, so you compare like with like. A gap of a dollar can be rounding. A larger gap points to a different definition, a join that counted rows twice, or a filter that dropped rows.