← All work

Safety

Text-to-SQL with guardrails

Read-only queries, row limits, schema-grounded columns and an entity map from business terms to columns.

The problem

Letting an LLM write SQL against a production database is risky: it can write unsafe queries, invent columns, or misread business words.

The approach

What I learned