A JA Timee·Practitioner post·

Building an eval base and reference routes for an in-house data-analysis AI (知識を増やしても迷わせない ── 社内データ分析AIを育てる評価基盤と参照経路の設計)

A · Strong evidence Timee's AI and data strategy team documents per-stage evaluation of its in-house BigQuery analysis agent with defined metrics (EX, pass^3, Soft-F1), a failure taxonomy and a full cost table; self-reported but the method is laid out and the numbers are checkable.

Summary based on the full text·Original: about 12 minutes to read

One of the Library's top reads

In short

A Timee engineering post (17 November 2026) on "bq-analysis", a Claude Code skill distributed as a plugin that several departments use to answer questions from BigQuery. Once use spread, the question changed from "can it write SQL" to "does it return the business-correct result every time". The team built per-stage evaluations, found that most wrong answers came from stale or ambiguous definitions and unwritten output rules, fixed those first, and added new knowledge only where fixing definitions did not help. A second experiment split the always-read glossary and business logic into a table of contents plus separate files, which cut time and cost while keeping the larger knowledge base.

Key numbers

  • just under 40% to just over 70%execution accuracy (result table matches the answer table) on main-KPI cases, before vs after fixing definitions
  • just over 20% to just under 50%pass^3: share of cases correct on all three runs, before vs after
  • 40.9% and 12.2%cut in run time and model cost of the table-of-contents layout vs the original layout (question to dry run)
  • $10.35 vs $9.08model cost for the whole evaluation set, original layout vs table-of-contents layout

As reported by the source.

Read the original on tech.timee.co.jp

Japanese·Web page·opens tech.timee.co.jp

What it reports

  • Main evaluation on main-KPI cases with fixed periods, built from real usage logs, Claude Sonnet 5, three runs per case. Execution accuracy (EX) rose from just under 40% to just over 70%; pass^3 from just over 20% to just under 50%; average Soft-F1 from just under 0.5 to just over 0.8.
  • Valid (SQL runs without error) fell from 100% to 97.4% after the changes; failed runs were scored as wrong.
  • Mismatch causes: metric definition, period, granularity, scope, ignoring existing flags, old labels, output format. On the main cases, stale descriptions, ambiguous wording and undefined rules outnumbered missing knowledge.
  • Five fixes: delete or correct old labels and ambiguous default rules; write output conventions into a dedicated file ("one row for a single metric and period", "no finer breakdown than asked", "unit conversion only on request"); a decision table for date anchors and own-data exclusions; reference SQL rewritten to use the platform's existing flags; definitions added for themes the knowledge did not cover.
  • Reference layout: files grouped as always-read, read-for-this-theme and read-if-needed. This made the knowledge 33.3% larger, cut run time 40.6% and non-cached tokens 18.8%, but raised cache-write tokens 50.2% and cost 18.1%.
  • Table of contents plus split files (version 0.3.1): run time 5,330.5 s to 3,148.2 s and cost $10.3475 to $9.0839 against the original layout; 25.6% cheaper than the reorganised layout at about the same time. Turns rose to 538.

How they got it

Answer SQL was written for each case and checked against dbt, Looker and app definitions; the AI's final SQL was re-run and compared with the answer table, with exact match on key columns, tolerance on numbers and per-case column aliases. Cost was measured separately on Claude Sonnet 5.5 from question input to BigQuery dry run, one run per case per layout.

Limits

  • Self-reported; the main evaluation covers only some main-KPI cases, and the authors say questions not used for improvement still need testing for gains and regressions.
  • The table-of-contents layout was not in the quality comparison and was not in production at the time of writing.
  • Stability is still weak: under half of cases are right on all three runs.
  • Exact before and after percentages are given only as ranges ("just under 40%").

Why it matters for companies

Teams that give staff a natural-language data agent tend to respond to errors by adding more documents. This post shows the opposite order worked: measure per stage, then remove stale and ambiguous definitions and write down output conventions before adding knowledge. It also shows that how the model is told to read the knowledge changes cost as much as how much knowledge there is. The pass^3 metric is a useful habit for anyone who reports a single accuracy number from one run.

Key passages in translation

Japanese original

主評価では知識の不足よりも、古い記述や曖昧な記述、未定義のルールによる不一致が多く見られました。

English translation

In the main evaluation, mismatches came more often from old descriptions, ambiguous descriptions and undefined rules than from missing knowledge.

Japanese original

新しい知識の追加は、1〜4で定義と規約を整えても解決しない領域に限りました。

English translation

We limited new knowledge to areas that fixing definitions and conventions in steps 1 to 4 did not solve.

Japanese original

「目次+分割」構成は品質比較に含めておらず、執筆時点では、まだ本番環境に反映していません。

English translation

The "table of contents plus split" layout was not included in the quality comparison and, at the time of writing, is not yet in production.

Summary based on the full text. Read the original for the full argument and data.Read the original on tech.timee.co.jp

Tags

Same week

All of Week 47