---
title: "Inside OpenAI’s in-house data agent"
description: "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."
url: "https://swe.quest/articles/inside-openai-s-in-house-data-agent-55ba2e68b590558a"
canonical: "https://openai.com/index/inside-our-in-house-data-agent"
source: "OpenAI"
published: "2026-01-29"
difficulty: "medium"
kind: "Case study"
reading_minutes: 13
tags: ["ai-agents","rag","analytics","evals","llms"]
---

# Inside OpenAI’s in-house data agent

A post on [OpenAI](https://swe.quest/sources/openai.md), published 2026-01-29, 13 min read, Case study. Original: [https://openai.com/index/inside-our-in-house-data-agent](https://openai.com/index/inside-our-in-house-data-agent)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [RAG & retrieval](https://swe.quest/tags/rag.md) (AI & ML)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- SQL and data warehouses ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- LLM agents ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- retrieval-augmented generation

## Keywords

GPT-5.2, Codex, Evals API, Embeddings API, MCP, Slack, Airflow, Spark

## Related posts

- [Institutional knowledge doesn't scale: Building an agentic data analyst](https://swe.quest/articles/institutional-knowledge-doesn-t-scale-building-an-agentic-data-analyst-d1fa65e5edaa8194.md): incident.io · 2026-08-03 · Medium · 10 min read · AI agents, Analytics & OLAP, LLMs, Observability, SQL
  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.
- [Building a RAG pipeline for Google Analytics with ClickHouse and Amazon Bedrock](https://swe.quest/articles/building-a-rag-pipeline-for-google-analytics-with-clickhouse-and-amazon-bedrock-e2945701d51424da.md): ClickHouse · 2023-11-21 · Medium · 26 min read · RAG & retrieval, LLMs, Vector search, Analytics & OLAP, Cloud platforms
  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.
- [The Agentic Analytics Benchmark, round two: GPT-6, Claude Opus 5.5, Claude Sonnet 5.5](https://swe.quest/articles/the-agentic-analytics-benchmark-round-two-gpt-6-claude-opus-5-5-claude-sonnet-5-f67c49a44d812e12.md): ClickHouse · 2026-10-20 · Medium · 9 min read · Evaluation, AI agents, LLMs, Analytics & OLAP, SQL
  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.
- [The Agentic Analytics Benchmark: Measuring model accuracy and efficiency in analytical agents](https://swe.quest/articles/the-agentic-analytics-benchmark-measuring-model-accuracy-and-efficiency-in-bf2a6cccc514f79e.md): ClickHouse · 2026-09-01 · Medium · 19 min read · Evaluation, AI agents, LLMs, Analytics & OLAP, SQL
  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).
- [Unlocking dependable responses with Gemini Enterprise Agent Platform’s Agentic RAG](https://swe.quest/articles/unlocking-dependable-responses-with-gemini-enterprise-agent-platform-s-agentic-1fa2162940afaaba.md): Google Research · 2026-06-05 · Easy · 8 min read · RAG & retrieval, AI agents, LLMs, Evaluation
  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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
