← All research
03 / 05Semantic query processorsReDDReliable Text-to-SQL

Verity

Ask in plain language. Get answers with guarantees.

Natural language is becoming the query language — over databases, and over document collections that were never structured at all. Verity builds query processors that translate questions into relational plans, extract the tables a question needs from raw documents, and attach an explicit statement of accuracy to the result — or abstain and ask when they cannot.

“Which vendors were paid the most in 2025?” documents schema on demand sql vendoramountdatedoc SELECT vendor, SUM(amount)FROM paymentsGROUP BY vendor ✓ answer · error ≤ 5% low confidence → abstain and ask “Does ‘paid’ include refunds?”

Why it matters

Language models made it easy to produce an answer to a question about data. They did not make it easy to trust one.

A text-to-SQL model always returns a query, even when the question is ambiguous. A retrieval-augmented pipeline always returns a paragraph, even when the answer requires aggregating facts scattered across ten thousand documents. Outside of benchmarks, that is precisely where these systems fail — silently.

Verity brings the discipline of query processing to this setting. Over structured data, we build text-to-SQL engines that generate SQL only when confident and otherwise open a targeted exchange with a person. Over unstructured data, ReDD — Relational Deep Dive — discovers a schema tailored to the query, fills relational tables from the documents with error-aware extraction, and then runs ordinary SQL. Think deep research, but for analytical queries, with error guarantees.

Research threads

What we are building.

03.1

Schema on demand

ReDD: given a question and a pile of documents, discover the minimal, joinable schema that question requires and populate it — no ingestion pipeline designed in advance.

03.2

Error-aware extraction

Lightweight classifiers over a language model’s hidden states detect and correct extraction mistakes, giving provable bounds on the quality of the tables a query runs on.

03.3

Knowing when not to answer

Text-to-SQL that monitors its own generation, abstains at the point of doubt — beginning with schema linking — and asks a person one precise question instead of guessing.

03.4

Optimizing LLM-powered plans

Cost-based choices between extraction, code generation and reasoning models with bounded context, across documents where text, tables and images interact.