Request a demo
← All articles How it works

Computed, quoted or refused: where an InsightAsk answer comes from

The three planes behind every answer (facts, documents and catalogue), why the database and not a model does the arithmetic, how quotes are checked, and why refusing is a correct answer.

Ask a general-purpose chatbot "what is our total reserve on open fire claims?" and you will get a confident number. Whether it came from your data is another matter. InsightAsk is built on a stricter rule: an answer is either computed from your data, quoted from your documents, or refused. This article explains how it decides which.

In short

Every answer comes from one of three planes. Facts: typed tables queried with SQL, which is the only place arithmetic can be trusted. Documents: retrieved passages, with every number in the answer required to appear in the passage it cites. Catalogue: what is in scope. A model may help write a query, but never does the arithmetic; a question the documents cannot support is refused.

Facts: computed, by the database

Aggregates, comparisons, rankings and anything with a denominator belong to the facts plane. Tables are profiled and typed when a Space is built: which columns are identifiers, dates, measures and dimensions, what values they hold. A question is turned into SQL against those tables, validated and run, and the answer carries its query. The model may help write the SQL, but it does not do the sums. A sum is the database's sum.

The Explore screen's Profile tab for a fictional claim table, listing each column with type, filled percentage, distinct count, minimum, maximum and most common values.
Profiling a made-up claim table: type, fill, distinct values, range and most common values for every column.

Documents: quoted, and checked

Questions about what a document says (a policy wording, a guideline, an adjuster's note) are answered from passages found by a hybrid search over the text InsightAsk has extracted. The model writes the sentence, and then the sentence is checked against the passage it cites: every number in a composed answer must appear verbatim in the grounding material, and rounding counts as altering. An answer that fails the check is not shown as an answer.

Catalogue: what is in scope

"What is in this folder?", "how many submissions came in last month?", "which files couldn't be read?" are questions about the scope itself. The catalogue plane answers them from the list of files, their classes and counts, and what was skipped and why, without reading any document.

Data, documents or both: how a Space routes a question

Which plane is tried depends partly on the Space. A data Space always answers with SQL over its tables. A documents Space answers from its passages. A hybrid Space holds both, and its Answer from setting decides: Data only, Documents only, or Documents and data. With the last, a short model call reads the question and the Space's table names and says whether it needs the tables, the documents or both; if that call cannot decide, both are asked.

When both run, they run side by side, and one final step writes a single answer under fixed rules: lead with the figures from the query, add what the documents contribute with their citation markers kept, take every figure from the query results and every statement from a cited passage, and say so plainly if the two disagree. If the tables cannot answer but the documents can, the document answer stands on its own.

Refusal is an answer

When the facts plane cannot serve a question it is not forced through; it moves to documents. When the documents do not contain the answer, InsightAsk says it cannot answer from the sources in scope. That outcome is treated as correct, and InsightAsk's own evaluation scores refusals as such.

Why this matters. A made-up number in an internal answer is worse than no answer: it gets copied into an email, a deck or a decision. A refusal tells the person to look elsewhere, or to add the missing source to the Space.

Why not let the model do it all?

Language models are good at reading and phrasing and unreliable at arithmetic over many rows, especially when the rows have to be filtered by who is asking. Splitting the work keeps each part where it is strongest: the database adds, the passage supplies the words, and the model connects the question to the right one. It also makes answers cheaper: a question the catalogue can answer reads nothing at all.

What the reader sees

Answer fromShown withHow to check it
FactsThe SQL that ran, and the denominator: how many items the figure is overRun the query yourself in Explore
DocumentsCitations to the passages usedOpen the cited passage; the numbers are there verbatim
CatalogueThe listing it countedBrowse the same scope in Explore
RefusalThat the sources in scope do not answer itWiden the scope, or add a source

Where a question covers many folders, the answer states its denominator and the reader's entitlement, for example that two of forty-four folders state something and that you can see all forty-four, so a figure cannot quietly cover less than it seems to.

The SQL engine screen for the Claims desk space with indexed tables claim and policy classified as dimensions, with row and column counts, and counters for SQL runs, right-first-time rate, time to rows, verified examples and vector index.
The SQL engine for a made-up Space: two indexed tables, ready for questions about the facts.

Three questions, traced

An illustration with made-up data: a hybrid Space for a fictional insurer's claims team, holding a claim table and a folder of claims-handling guidelines.

QuestionRouteWhat comes back
"Total reserve on open fire claims?"DataA figure, the SQL that produced it and the row count it covers
"When must a large loss be escalated?"DocumentsThe guideline's rule in a sentence, with a citation to the passage
"Which open fire claims are above the escalation threshold?"BothThe list from the query, the threshold quoted from the guideline, both cited

The third question is where most assistants go wrong: the threshold is in a document and the claims are in a table. Here the threshold must appear in the cited passage, the list must come from the query, and if the guideline were silent the answer would say so rather than assume a number. A fourth question, "will this claim go to litigation?", has no grounding in either source and is refused.

Questions people ask about this

Is a refusal a failure?

No. It is the correct outcome when the sources do not contain the answer, and InsightAsk's own evaluation counts it as such. A refusal that should have been an answer is a signal to add a source, an example or a glossary term.

Can someone check a figure without trusting the tool?

Yes. A data answer carries its SQL, which can be run by hand in Explore against the same connection; a document answer carries its passages. Both can be checked by someone who never used the Space.

How do I tune the routing?

If a hybrid Space keeps sending a kind of question to the wrong side, set Answer from explicitly, or split the content into a data Space and a documents Space. Verified examples and a clear Space description also help people ask the right Space.

Next: inside the SQL engine.

See it on your own sources

Bring one folder and one table

We'll set up a Space on your own sources and show how each answer is computed or quoted, with the access rules your sources already have, as a hosted trial or inside your own cloud.

Request a demo