← All drills

Build a Text-to-SQL Agent

What you'll be able to do

Turn business questions into SQL automatically, and measure how often the answer is right — the engine behind "ask your data" analytics copilots.

⌁ Powers Snowflake Cortex Analyst, Databricks Genie, BigQuery (Gemini), and Vanna.AI.
Start this internship
Create an account to unlock the 5 sections, the workbench, and askThili.
Begin

Sections

1. Build a Text-to-SQL Agent
🔒 locked
2. The database and the test set
🔒 locked
3. A baseline agent, measured
🔒 locked
4. Teach it your company: retrieval and rules
🔒 locked
5. When the SQL does not run: a repair loop
🔒 locked

Dig deeper

📄Spider: A Large-Scale Dataset for Text-to-SQL (Yu et al., 2018)
paper
📄Retrieval-Augmented Generation for Knowledge-Intensive NLP (Lewis et al., 2020)
paper
🔗Groq documentation (the API used in this drill)
docs
🔗Chroma documentation (the vector store used in lesson 3)
docs

Part of these learning paths

I'm a student and I want to get my first AI/ML job
View path →
I want to build my first AI agent
View path →
I want to build an app that answers from my own documents
View path →