Machines / AN-03
MODEL AN-03

Analytics desk

A question in. The SQL, a chart and the answer out.

Plain-English questions turned into SQL, run read-only against your database, and returned with a chart and the query so anyone can check it. Runs on a self-hosted open-source model when data can't leave your servers.

In plain words: Ask your database questions in plain English.

INPUTA plain-English question about your data
OUTPUTThe SQL, a chart and the answer
RUNS ONYour database (read-only) · self-hosted or hosted model
OPERATORAn analyst reviews the question set and schema notes

Operating manual

Rev. 1 · AN-03
§1

What it does

Maps the question to your schema, writes and checks the SQL, runs it against a read-only replica with row limits, and returns the result with a chart and the query itself. Ambiguous questions come back as a clarifying question, not a wrong number.

§2

Install when

  • People wait days for simple numbers
  • The data is in a database but nobody can query it
  • Data must stay on your own infrastructure
§3

Do not install when

  • The data isn't clean enough to trust
  • Questions need modelling, not lookup
  • There's no read-only replica and no appetite to make one

§4 · The line

Each station is a separate step with one job and its own check. A failure is caught where it happens, not at the end.

01QuestionTyped or spoken
02ParseSchema linking, intent
03Write SQLValidated, row-limited
04RunRead-only replica
05Chart + answerQuery shown for checking
↺ Ambiguous question → asks back · failed validation → rewrites, limited retries

§5 · Safety features

Read-only, alwaysA separate replica user with no write grants.
Row and time limitsNo runaway queries on production.
Query shownEvery answer carries the SQL so it can be checked.
Eval setKnown questions with known answers, run on every change.

§6 · Gauges

What's watched on every install. Calibrated per team.
Query accuracyOn the known-answer set
LatencyQuestion to chart
Clarification rateHow often it asks back
Cost per questionCompute per answer

§7 · Parts bin

Open model — Qwen / Llama
Schema notes + examples
SQL validator
Read-only replica
Charting layer
WORK ORDERWant one on your floor? →Clock in with the role or the problem — get back a suggested setup.NEXT MACHINE · DP-04Data pipeline →