Repository navigation
v0.2.0 — the usage assistant, measured
The repository is now the AI architecture for one assistant: stage 3 of the fictional client in data-platform-architecture, answering customers' questions about their own usage from the governed tables.
- A lab (
lab/): the usage mart in Postgres with a read-only role per account and row-level security, 90 customer questions with answers computed by SQL, and 20 requests for other accounts' data. - Accuracy: with the semantic layer, Llama 3.3 70B went from 55 to 70 of 70 and Qwen3 8B from 43 to 64; gpt-oss-120b answered 70 of 70 and declined 20 of 20 unanswerable questions. Databricks AI/BI Genie, given the same definitions, answered 69 of 70 at 14.5 s median.
- Isolation: told to stay in the customer's account, the models leaked another account's data on 23 of 120 requests; run as the customer's database role, 0.
- Cost: $0.00028 an answer on gpt-oss-120b from measured tokens at list price.
- Replay: every response is recorded with its prompt's hash; CI rebuilds the mart and re-scores all 750 recordings with no model calls.
- Brief, requirements, measured options, target architecture, evaluation, security and compliance (OWASP LLM Top 10, EU AI Act, GDPR, NIST AI RMF), operations, risks and 14 decision records.
The reference architecture of v0.1.0 remains in that tag.