Structured data · Agent
Ask a question in plain language; get a validated, logged SQL answer. The model interprets — deterministic code executes.
Natural-language querying is compelling, but in regulated finance you cannot ship a black box that writes and runs its own SQL against production data. Every answer has to be explainable, reproducible, and logged. The interesting question isn’t “can an LLM write SQL” — it’s “how do you let it help without handing it the keys.”
The core stance is a division of labour: the model interprets, deterministic code executes. The LLM classifies intent and drafts a candidate query. From there, ordinary Python and SQL take over — the parts you can test, prove, and audit.
A thin orchestration layer routes each request through interpret → validate → execute → log. The model never runs anything directly; it proposes, and the deterministic pipeline disposes. That boundary is the whole design, and it’s what makes the system defensible in a regulated setting.
This is the atomic unit the rest of my work is built on. It shows LLM flexibility without surrendering auditability — the exact trade a bank’s controls function needs met before natural-language tooling can go near real data. The same pattern scales up into the multi-agent AML assistant.