Skip to content

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

ClickHouse 10 min read Case study easyNovice

How we made our internal data warehouse AI-first

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.

Related posts

  • How Suprema Gaming made its data platform agent-ready with ClickHouse Cloud

    ClickHouse mediumAdept

    Suprema Gaming moved its analytics warehouse from Snowflake to ClickHouse Cloud so that AI agents could query fresh, governed data directly. Ingestion now uses ClickPipes CDC and Debezium/Kafka in place of S3/Snowpipe batches, and dbt deployed via GitHub Actions defines layered transformations with no external orchestrator. Data freshness went from four hours to a p95 lag of about one minute, mart reads got 27x faster, and warehouse spend fell roughly 62%. Metrics were validated to the cent through an agent-assisted loop that captures each rule as a dbt test, and a fleet of 10 specialized agents with version-controlled skills, traced in Langfuse, serves business users.

  • Building an agentic app with ClickHouse MCP and CopilotKit

    ClickHouse mediumAdept

    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. The LLM turns a prompt into SQL, CopilotKit's MCP client runs it against ClickHouse over SSE, and the model then calls a `generateChart` action defined with `useCopilotAction` to render the result via ECharts. The walkthrough covers swapping in the Anthropic adapter, running the MCP server with fastmcp, and sharing chart state with `useCopilotReadable`. It recommends a read-only ClickHouse user with restricted databases, quotas and a limited settings profile so the model cannot reach data or run queries beyond what is intended.

  • How Fetch built its flexible agentic analytics tool on ClickHouse Cloud

    ClickHouse easyNovice

    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. Ad hoc queries such as same-receipt basket intersections scan hundreds of millions of rows in under a second, and median agent response time is 1.9 seconds across about 500 daily queries. The team picked ClickHouse for its ad hoc query speed, compute isolation between concurrent queries and simple scaling. A nightly pipeline copies data from Snowflake to S3, loads it via ClickPipes into a new versioned wide table, then repoints a view at it. That keeps LLM-generated queries stable and makes rollback trivial, at the cost of skipping incremental loads.

  • 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.

  • Agent-Facing Analytics

    ClickHouse easyNovice

    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. Real-time OLAP systems suit these workloads because of fresh data, fast aggregations, high concurrency and consolidated domain data, but could adapt further through templated query endpoints, LLM-oriented SQL extensions for data discovery, LLMs.txt documentation, server-side agent memory and caching, and short-lived task-scoped access tokens. The ClickHouse MCP server demonstrates the idea today, exposing tools to list databases, list tables and run SELECT queries for models like Claude.

The quest for software engineering knowledge.

Look:
Layout: