Skip to content

Commit 70a9b8b

Browse files
Merge pull request #53121 from MScalopez/postgresql-ai-final
Add RAG module to AI-3019 LP
2 parents c79b564 + 3a741f3 commit 70a9b8b

24 files changed

Lines changed: 780 additions & 0 deletions
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.build-rag-applications-azure-database-postgresql.introduction
3+
title: Introduction
4+
metadata:
5+
title: Introduction
6+
description: "Introduction to RAG applications with Azure Database for PostgreSQL."
7+
ms.date: 08/08/2025
8+
author: wwlpublish
9+
ms.author: calopez
10+
ms.topic: unit
11+
durationInMinutes: 1
12+
content: |
13+
[!include[](includes/1-introduction.md)]
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.build-rag-applications-azure-database-postgresql.knowledge-check
3+
title: Module assessment
4+
metadata:
5+
title: Module assessment
6+
description: "Knowledge check"
7+
ms.date: 08/15/2025
8+
author: wwlpublish
9+
ms.author: calopez
10+
ms.topic: unit
11+
durationInMinutes: 5
12+
quiz:
13+
title: Check your knowledge
14+
questions:
15+
- content: What does GraphRAG add to a standard RAG pipeline?
16+
choices:
17+
- content: A replacement for vector search that removes embeddings
18+
isCorrect: false
19+
explanation: Incorrect. GraphRAG complements vectors; it doesn't remove them.
20+
- content: A knowledge graph so retrieval can follow relationships before ranking with embeddings
21+
isCorrect: true
22+
explanation: Correct. Graph structure guides what to retrieve.
23+
- content: A new fine-tuned model trained on policies
24+
isCorrect: false
25+
explanation: Incorrect. GraphRAG changes retrieval, not model training.
26+
- content: When results are combined from vector and keyword searches, what simple method helps merge rankings?
27+
choices:
28+
- content: L2 normalization of all vectors
29+
isCorrect: false
30+
explanation: Incorrect. That's a vector scaling step, not a rank merger.
31+
- content: Cross join of both result sets
32+
isCorrect: false
33+
explanation: Incorrect. A cross join doesn't merge rankings meaningfully.
34+
- content: Reciprocal Rank Fusion
35+
isCorrect: true
36+
explanation: Correct. It blends lists without heavy tuning.
37+
- content: What SQL statement is useful to check timing and confirm a vector index is used?
38+
choices:
39+
- content: DESCRIBE TABLE on the target relation
40+
isCorrect: false
41+
explanation: Incorrect. That only shows schema details.
42+
- content: EXPLAIN (ANALYZE, BUFFERS) followed by the query
43+
isCorrect: true
44+
explanation: Correct. It shows the plan and actual work done.
45+
- content: VACUUM ANALYZE on the database
46+
isCorrect: false
47+
explanation: Incorrect. It updates stats but doesn't display a plan.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.build-rag-applications-azure-database-postgresql.summary
3+
title: Summary
4+
metadata:
5+
title: Summary
6+
description: "Summary to RAG applications with Azure Database for PostgreSQL."
7+
ms.date: 08/08/2025
8+
author: wwlpublish
9+
ms.author: calopez
10+
ms.topic: unit
11+
durationInMinutes: 1
12+
content: |
13+
[!include[](includes/11-summary.md)]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.build-rag-applications-azure-database-postgresql.understand-rag-patterns-azure-database-postgresql
3+
title: Understand RAG pattern with Azure Database for PostgreSQL
4+
metadata:
5+
title: Understand RAG pattern with Azure Database for PostgreSQL
6+
description: "Learn what the Retrieval-Augmented Generation (RAG) pattern is and how its stages map to Azure Database for PostgreSQL features and extensions."
7+
ms.date: 08/08/2025
8+
author: wwlpublish
9+
ms.author: calopez
10+
ms.topic: unit
11+
durationInMinutes: 5
12+
content: |
13+
[!include[](includes/2-understand-rag-patterns-azure-database-postgresql.md)]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.build-rag-applications-azure-database-postgresql.explore-scale-accuracy-problem
3+
title: Explore information retrieval challenges - scale and accuracy
4+
metadata:
5+
title: Explore information retrieval challenges - scale and accuracy
6+
description: "Explore how information retrieval balances scale and accuracy, then set a baseline to measure and improve search performance."
7+
ms.date: 08/08/2025
8+
author: wwlpublish
9+
ms.author: calopez
10+
ms.topic: unit
11+
durationInMinutes: 5
12+
content: |
13+
[!include[](includes/3-explore-scale-accuracy-problem.md)]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.build-rag-applications-azure-database-postgresql.enhance-scale-vector-index
3+
title: Enhance scale with vector indexes
4+
metadata:
5+
title: Enhance scale with vector indexes
6+
description: "Explore how vector indexing keeps retrieval fast at scale by choosing index types that balance speed, memory, and relevance."
7+
ms.date: 08/08/2025
8+
author: wwlpublish
9+
ms.author: calopez
10+
ms.topic: unit
11+
durationInMinutes: 8
12+
content: |
13+
[!include[](includes/4-enhance-scale-vector-index.md)]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.build-rag-applications-azure-database-postgresql.build-rag-application-postgresql-python
3+
title: Build RAG Applications with Azure Database for PostgreSQL and Python
4+
metadata:
5+
title: Build RAG Applications with Azure Database for PostgreSQL and Python
6+
description: "Learn how to build a RAG application with Azure Database for PostgreSQL and Python that retrieves the right data and produces clear, grounded answers."
7+
ms.date: 08/08/2025
8+
author: wwlpublish
9+
ms.author: calopez
10+
ms.topic: unit
11+
durationInMinutes: 7
12+
content: |
13+
[!include[](includes/5-build-rag-application-postgresql-python.md)]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.build-rag-applications-azure-database-postgresql.exercise-build-rag-application-postgresql-python
3+
title: "Exercise: Build RAG applications with Azure Database for PostgreSQL and Python"
4+
metadata:
5+
title: "Exercise: Build RAG applications with Azure Database for PostgreSQL and Python"
6+
description: "Build a RAG application in Azure Database for PostgreSQL."
7+
ms.date: 08/08/2025
8+
author: wwlpublish
9+
ms.author: calopez
10+
ms.topic: unit
11+
durationInMinutes: 30
12+
content: |
13+
[!include[](includes/6-exercise-build-rag-application-postgresql-python.md)]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.build-rag-applications-azure-database-postgresql.improve-accuracy-advanced-rag-architecture
3+
title: Improve accuracy with advanced RAG architectures
4+
metadata:
5+
title: Improve accuracy with advanced RAG architectures
6+
description: "Improve accuracy with advanced RAG architectures."
7+
ms.date: 08/08/2025
8+
author: wwlpublish
9+
ms.author: calopez
10+
ms.topic: unit
11+
durationInMinutes: 4
12+
content: |
13+
[!include[](includes/7-improve-accuracy-advanced-rag-architecture.md)]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.build-rag-applications-azure-database-postgresql.explore-graphrag
3+
title: Explore GraphRAG with Azure Database for PostgreSQL
4+
metadata:
5+
title: Explore GraphRAG with Azure Database for PostgreSQL
6+
description: "Explore GraphRAG on PostgreSQL. Retrieve by meaning and relationships, then sort by embedding similarity."
7+
ms.date: 08/08/2025
8+
author: wwlpublish
9+
ms.author: calopez
10+
ms.topic: unit
11+
durationInMinutes: 5
12+
content: |
13+
[!include[](includes/8-explore-graph-rag.md)]

0 commit comments

Comments
 (0)