---
title: "How we made our internal data warehouse AI-first"
description: "ClickHouse rebuilt its internal data warehouse (300+ users, 2.1 PB compressed) around DWAINE, a natural-language assistant that now handles roughly 70% of internal analytics."
url: "https://swe.quest/articles/how-we-made-our-internal-data-warehouse-ai-first-f87bdab3102b1d25"
canonical: "https://clickhouse.com/blog/ai-first-data-warehouse"
source: "ClickHouse"
published: "2025-11-12"
difficulty: "easy"
kind: "Case study"
reading_minutes: 10
tags: ["analytics","ai-agents","llms"]
---

# How we made our internal data warehouse AI-first

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2025-11-12, 10 min read, Case study. Original: [https://clickhouse.com/blog/ai-first-data-warehouse](https://clickhouse.com/blog/ai-first-data-warehouse)

## Summary

ClickHouse rebuilt its internal data warehouse (300+ users, 2.1 PB compressed) around DWAINE, a natural-language assistant that now handles roughly 70% of internal analytics. DWAINE runs LibreChat as the UI and Claude 4.0 via AWS Bedrock as the model. It uses MCP servers to query ClickHouse Cloud directly and to read the dbt models, the MDBook business glossary and a column dictionary from GitHub and the filesystem. Access is restricted to anonymized data marts with no PII. Thorough field documentation and dbt-based data quality checks were the main levers against hallucination. Repeatable dashboards, certified financial metrics and SRE monitoring stay in Superset, and important decisions require users to verify DWAINE's SQL by hand.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

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

## Prerequisites

- data warehouse basics ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- LLM tool use ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

ClickHouse, DWAINE, Model Context Protocol, LibreChat, Claude, Superset, dbt, AWS Bedrock

## Related posts

- [How Suprema Gaming made its data platform agent-ready with ClickHouse Cloud](https://swe.quest/articles/how-suprema-gaming-made-its-data-platform-agent-ready-with-clickhouse-cloud-456ba316ef057ccc.md): ClickHouse · 2026-08-25 · Medium · 11 min read · Analytics & OLAP, Data pipelines, AI agents, Games
  Suprema Gaming moved its analytics warehouse from Snowflake to ClickHouse Cloud so that AI agents could query fresh, governed data directly.
- [Building an agentic app with ClickHouse MCP and CopilotKit](https://swe.quest/articles/building-an-agentic-app-with-clickhouse-mcp-and-copilotkit-8a892e5035cf8b12.md): ClickHouse · 2025-06-12 · Medium · 9 min read · AI agents, Analytics & OLAP, React, LLMs
  A natural-language analytics dashboard for UK property prices can be built by combining an LLM (Claude Sonnet 3.7), the ClickHouse MCP Server and CopilotKit in a Next.js app.
- [How Fetch built its flexible agentic analytics tool on ClickHouse Cloud](https://swe.quest/articles/how-fetch-built-its-flexible-agentic-analytics-tool-on-clickhouse-cloud-284f56cdf33d7d26.md): ClickHouse · 2026-07-28 · Easy · 6 min read · Analytics & OLAP, AI agents, Data pipelines, LLMs
  Fetch built FAST, a conversational BI agent that lets non-technical sales teams query receipt purchase data in plain language, on ClickHouse Cloud ingesting 150 billion rows (6.5 TB compressed) a day.
- [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).
- [Agent-Facing Analytics](https://swe.quest/articles/agent-facing-analytics-abbe75281484a032.md): ClickHouse · 2025-02-13 · Easy · 13 min read · AI agents, Analytics & OLAP, Databases, LLMs
  AI agents are emerging as a new user persona for real-time analytics databases, generating high volumes of concurrent, iterative exploratory SQL queries on behalf of users.

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)
