Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

OpenAI 13 min read Case study mediumAdept

Inside OpenAI’s in-house data agent

OpenAI built an internal GPT-5.2-powered data agent that answers natural-language analytics questions over a platform of 600+ PB and 70k datasets, available via Slack, web, IDEs, Codex CLI and ChatGPT through MCP. Its accuracy rests on six layers of context: table usage and lineage, human annotations, Codex-derived code-level table definitions, institutional knowledge from Slack/Docs/Notion, a user-correctable memory, and live warehouse queries. A daily offline pipeline normalizes and embeds this context for RAG retrieval, keeping latency predictable across tens of thousands of tables. Quality is protected with Evals API test sets that compare generated SQL output against golden queries.

Assumes: SQL and data warehousesLLM agentsretrieval-augmented generation

Related posts

  • Institutional knowledge doesn't scale: Building an agentic data analyst

    incident.io mediumAdept

    incident.io built an internal "data brain" agent that answers business questions against BigQuery by encoding institutional analyst knowledge rather than relying on raw text-to-SQL. A query skill routes the agent through per-domain themes, vetted SQL examples and schema subsets hydrated at compile time by a Go CLI from the semantic layer, dbt manifest and BigQuery metadata. A guarded data_query tool dry-runs SQL, enforces table allow-lists and scan limits, and logs every call with the guidance consulted. Examples are bootstrapped from certified dashboard SQL, and a theme-audit routine catches guidance rot such as stale examples, missing coverage and trigger-phrase collisions. Over half the company uses it weekly, with near 60% week-on-week retention.

  • Building a RAG pipeline for Google Analytics with ClickHouse and Amazon Bedrock

    ClickHouse mediumAdept

    A natural language interface over raw Google Analytics data stored in ClickHouse is built as a multi-step RAG pipeline that generates SQL from user questions using Amazon Bedrock models. Drawing on text-to-SQL research such as DAIL-SQL from the Spider benchmark, the design retrieves similar example questions and their SQL via vector embeddings, because concepts like "returning users" cannot be inferred from the schema alone. Embeddings come from a Python executable-pool UDF calling Titan embeddings, with retries and backoff for Bedrock quotas, and are invoked at query or insert time. ClickHouse serves as both the vector store and the analytics database, and specific settings are given to parallelize embedding generation on small tables.

  • The Agentic Analytics Benchmark, round two: GPT-6, Claude Opus 5.5, Claude Sonnet 5.5

    ClickHouse mediumAdept

    Five new models (GPT-6 Astra, Luna, Sol, Claude Opus 5.5 and Claude Sonnet 5.5) were added to a frozen 201-question agentic text-to-SQL benchmark over a synthetic ClickHouse warehouse. All five land in a statistically tied 68.7–69.7% band, below leader Claude Fable 5.1 (76.6%), and no GPT-6 variant beats GPT-5.5 at default reasoning effort. Sonnet 5.5 is the standout: +6.5 points over Sonnet 5, concentrated on multi-hop dimensional-layer questions, with zero turn-limited runs (vs 16), 3.5 mean turns vs 9.1, and about 5 cents per question. Wrong planning remains the dominant failure mode and runtime SQL errors have disappeared. Harness changes include engine/timezone pinning, credential preflight, configurable numeric tolerance and a Rasch model for judge uncertainty, and the advice stands to run the open-source harness on your own warehouse.

  • The Agentic Analytics Benchmark: Measuring model accuracy and efficiency in analytical agents

    ClickHouse mediumAdept

    data-agent-mnist is an open harness for benchmarking agentic analytics, built from 201 real questions from ClickHouse's internal agent DWAINE and replayed against a deterministically seeded, anonymized synthetic reconstruction of their dbt warehouse (18 tables, 865 columns). Ground truth comes from a three-provider model committee with column-linked result matching, and answers are scored by a cross-provider LLM jury that was audited for self-bias. Contamination probes show no memorization, against Spider as a positive control. Across 29 models, Claude Fable 5.1 leads at 76.6% correctness, and open-weight models take 5 of the top 10 spots. DeepSeek v4 Flash runs the full suite for $1 versus $52 for Fable 5 while losing only 6.9 points.

  • Unlocking dependable responses with Gemini Enterprise Agent Platform’s Agentic RAG

    Google Research easyNovice

    Google's agentic RAG framework, now in public preview on Gemini Enterprise Agent Platform, extends multi-agent retrieval (orchestrator, planner, query rewriter, search fanout) with a Sufficient Context Agent. That agent inspects retrieved snippets and a draft answer, identifies exactly which parts of the query lack supporting evidence, and feeds targeted gaps back to the query rewriter for further retrieval rounds before final synthesis. On the FRAMES-based FramesQA benchmark (824 multi-hop queries, 2,676 PDFs), it improves accuracy by up to 34% over a vanilla RAG Engine baseline. In a cross-corpus setting with three distractor corpora it reaches 90.1% accuracy, nearly matching single-corpus results with latency within about 3%.

The quest for software engineering knowledge.

Look:
Layout: