How we built a high quality Q&A assistant

Ruoni Wang20 Aug 2025

Problem

Airtable's assistant Omni answers questions about a user's base: customer feedback, campaign data. A base can hold thousands of records, far more than an LLM can read, and the schema alone can fill most of the context window. LLMs also jump to conclusions, compound early mistakes and invent answers. The authors state that an assistant that is right half the time is unusable.

Example from the article: asked "Is the Cloud Integration Team working on anything that is off track?", the agent filters the Projects table by Team and Health, retries with the team hierarchy, then checks the Key results table.

Solution in brief

Keep the context small at every step: separate schema and data tools, a trimmed schema, a plan revised after new findings, and filtered hybrid search with a wider-scope retry. Compact citation tags and shortened record IDs keep answers verifiable and cheap.

Questions this case answers
  • How to let an LLM agent answer questions over structured data when the schema and records are far larger than the context window
  • How to reduce the cost and latency of an LLM pipeline that must reference thousands of opaque identifiers in each call
  • How to build an LLM agent that answers questions over a large relational database whose schema does not fit into the context window?
  • How to make an agent recover when its first filter or query misses the right table or column?

Tools and methods

  • Schema exploration tool and data query tool — separate tools, so the agent reads only the schema it needs
  • Planning and replanning — plan first, revise when new data appears
  • Hybrid search — filters narrow the scope, keyword and semantic search rank results
  • Inline citation tags — mark the source record by each derived fact
  • Token-efficient ID encoding with a checksum — short codes instead of 17-character IDs
  • Eval suite with deterministic and LLM-as-a-judge scorers — scores quality per change
Continue reading — it's free

Google or a one-time email code. No password.