Introduction to Retrieval-Augmented Generation in SQL
When to use RAG, preparing retrieved rows as JSON, calling a language model with sp_invoke_external_rest_endpoint and extracting its response.
- 4 lessons
- Module quiz
Retrieval-augmented generation grounds a language model's answers in data retrieved from the database at question time, and the whole pipeline can run in T-SQL.
What the exam expects
Questions test RAG use cases, converting rows to JSON, building prompts and calling models with sp_invoke_external_rest_endpoint, and extracting answers and structured output.
How this module is organized
RAG Use Cases and Architecture covers when and how. Converting Retrieved Data to JSON for Models, Calling a Language Model with sp_invoke_external_rest_endpoint and Extracting Language Model Responses cover each step.
- RAG Use Cases and Architecture Lesson 1
- Converting Retrieved Data to JSON for Models Lesson 2
- Calling a Language Model with sp_invoke_external_rest_endpoint Lesson 3
- Extracting Language Model Responses Lesson 4
- Practise and review
- Checkpoint Practice activities across the module
- Test your knowledge 5 questions