Build and own a SQL Generation Specialist Model.
Given a natural-language question and a database schema, what is the correct SQL query to answer it?
Overview
Lets non-technical business users ask questions in plain language and get correct, executable SQL against the actual production schema.
Who owns this decision
Head of Data, VP Analytics
Why owned AI may fit
Table names, join keys, and metric definitions are unique to each organization's schema and cannot be inferred from general SQL knowledge alone.
What this Specialist Model actually does
Decision: Given a natural-language question and a database schema, what is the correct SQL query to answer it?
This is a larger system with 1 specialist model candidate and 4 supporting or external components.
Who uses this Specialist Model
- Head of Data
- VP Analytics
- Head of BI
- VP Engineering
Where the specialist model sits
This is a larger system with 1 specialist model candidate and 4 supporting or external components.
Fine-tuned text-to-SQL generation model
Specialist Model
Schema retrieval and semantic-layer grounding
Supporting component
Read the Semantic Layer guide →
Query validation layer (syntax check, dry-run execution, permission check)
Supporting component
Read the Query Validation guide →
Ambiguity-detection step
Supporting component
Ambiguity-detection step that asks clarifying questions when underspecified
Human analyst review
Supporting component
Human analyst review for high-stakes or first-time query patterns
How Oumi connects to your stack →
How to evaluate and improve it
Evaluation
- Execution accuracy (query runs without error)
- Result-set correctness against a validated ground-truth query
- Exact-match and logical-equivalence rate on held-out question sets
Feedback signals
- User edits to the generated query before running IT
- Query execution errors requiring correction
- Analyst confirmation that results answered the original question
- Query results that were later found to be incorrect (wrong join, wrong aggregation)
- Repeated similar questions revealing schema/vocabulary gaps in the model's understanding
Model candidates to evaluate
- Qwen3.5-9B (Apache 2.0)
- DeepSeek V4-Flash (MIT)
- NuExtract 3 (Apache 2.0)
These are candidates, not performance claims. Run them against your evaluation set.


