Skip to content

Commit 6db871e

Browse files
committed
Minor fixes
1 parent 5515dab commit 6db871e

14 files changed

Lines changed: 30 additions & 29 deletions

learn-pr/wwl-data-ai/build-rag-applications-azure-database-postgresql/2-understand-rag-patterns-azure-database-postgresql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
### YamlMime:ModuleUnit
22
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
3+
title: Understand RAG pattern with Azure Database for PostgreSQL
44
metadata:
5-
title: Understand RAG Pattern with Azure Database for PostgreSQL
5+
title: Understand RAG pattern with Azure Database for PostgreSQL
66
description: "Learn what the Retrieval-Augmented Generation (RAG) pattern is and how its stages map to Azure Database for PostgreSQL features and extensions."
77
ms.date: 08/08/2025
88
author: wwlpublish

learn-pr/wwl-data-ai/build-rag-applications-azure-database-postgresql/3-explore-scale-accuracy-problem.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
### YamlMime:ModuleUnit
22
uid: learn.wwl.build-rag-applications-azure-database-postgresql.explore-scale-accuracy-problem
3-
title: Explore Information retrieval challenges - scale and accuracy
3+
title: Explore information retrieval challenges - scale and accuracy
44
metadata:
5-
title: Explore Information retrieval challenges - scale and accuracy
5+
title: Explore information retrieval challenges - scale and accuracy
66
description: "Explore how information retrieval balances scale and accuracy, then set a baseline to measure and improve search performance."
77
ms.date: 08/08/2025
88
author: wwlpublish

learn-pr/wwl-data-ai/build-rag-applications-azure-database-postgresql/6-exercise-build-rag-application-postgresql-python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
### YamlMime:ModuleUnit
22
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"
3+
title: "Exercise: Build RAG applications with Azure Database for PostgreSQL and Python"
44
metadata:
5-
title: "Exercise: Build RAG Applications with Azure Database for PostgreSQL and Python"
5+
title: "Exercise: Build RAG applications with Azure Database for PostgreSQL and Python"
66
description: "Build a RAG application in Azure Database for PostgreSQL."
77
ms.date: 08/08/2025
88
author: wwlpublish

learn-pr/wwl-data-ai/build-rag-applications-azure-database-postgresql/7-improve-accuracy-advanced-rag-architecture.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
### YamlMime:ModuleUnit
22
uid: learn.wwl.build-rag-applications-azure-database-postgresql.improve-accuracy-advanced-rag-architecture
3-
title: Improve Accuracy with Advanced RAG Architectures
3+
title: Improve accuracy with advanced RAG architectures
44
metadata:
5-
title: Improve Accuracy with Advanced RAG Architectures
6-
description: "Improve Accuracy with Advanced RAG Architectures."
5+
title: Improve accuracy with advanced RAG architectures
6+
description: "Improve accuracy with advanced RAG architectures."
77
ms.date: 08/08/2025
88
author: wwlpublish
99
ms.author: calopez

learn-pr/wwl-data-ai/build-rag-applications-azure-database-postgresql/8-explore-graph-rag.yml renamed to learn-pr/wwl-data-ai/build-rag-applications-azure-database-postgresql/8-explore-graphrag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ metadata:
1010
ms.topic: unit
1111
durationInMinutes: 5
1212
content: |
13-
[!include[](includes/8-explore-graph-rag.md)]
13+
[!include[](includes/8-explore-graphrag.md)]

learn-pr/wwl-data-ai/build-rag-applications-azure-database-postgresql/9-exercise-implement-graph-rag.yml renamed to learn-pr/wwl-data-ai/build-rag-applications-azure-database-postgresql/9-exercise-implement-graphrag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ metadata:
1010
ms.topic: unit
1111
durationInMinutes: 30
1212
content: |
13-
[!include[](includes/9-exercise-implement-graph-rag.md)]
13+
[!include[](includes/9-exercise-implement-graphrag.md)]

learn-pr/wwl-data-ai/build-rag-applications-azure-database-postgresql/includes/1-introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Retrieval Augmented Generation (RAG) applications combine information retrieval and generative AI to provide accurate, context-aware answers by using large datasets and advanced search techniques.
22

3-
Imagine you're a solution architect at a mid-sized enterprise tasked with building an internal knowledge assistant for employees to query company policies. The current system struggles with slow response times and often retrieves irrelevant or outdated information, frustrating users. Your team decides to implement a Retrieval Augmented Generation (RAG) application using *Azure Database for PostgreSQL* and *Azure OpenAI*. However, as the dataset grows to millions of rows, challenges like ensuring fast retrieval, maintaining accuracy, and avoiding hallucinated responses arise. Additionally, complex queries involving multiple concepts, such as 'What are the vacation policies for HR in Europe?' require precise filtering and ranking. To address these issues, you need to optimize retrieval speed, improve accuracy through advanced indexing and chunking strategies, and explore innovative solutions like lightweight knowledge graphs. This module guides you through building and refining a scalable RAG pipeline tailored to such real world challenges.
3+
Imagine you're a solution architect at a mid-sized enterprise tasked with building an internal knowledge assistant for employees to query company policies. The current system struggles with slow response times and often retrieves irrelevant or outdated information, frustrating users. Your team decides to implement a Retrieval Augmented Generation (RAG) application using *Azure Database for PostgreSQL* and *Azure OpenAI*. However, as the dataset grows to millions of rows, challenges like ensuring fast retrieval, maintaining accuracy, and avoiding AI-generated responses that might be incorrect. Additionally, complex queries involving multiple concepts, such as 'What are the vacation policies for HR in Europe?' require precise filtering and ranking. To address these issues, you need to optimize retrieval speed, improve accuracy through advanced indexing and chunking strategies, and explore innovative solutions like lightweight knowledge graphs. This module guides you through building and refining a scalable RAG pipeline tailored to such real world challenges.
44

55
After completing this module, you can:
66

learn-pr/wwl-data-ai/build-rag-applications-azure-database-postgresql/includes/11-summary.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ After completing this module, you learn:
1212

1313
Additional Reading:
1414

15-
1. [Azure Database for PostgreSQL Documentation](/azure/postgresql/)
16-
1. [pgvector Extension for PostgreSQL](https://github.com/pgvector/pgvector)
17-
1. [LangChain Documentation](https://python.langchain.com/en/latest/)
18-
1. [Azure OpenAI Service Overview](/azure/cognitive-services/openai/)
19-
1. [Tutorial: Create a recommendation system with Azure Database for PostgreSQL and Azure OpenAI](/azure/postgresql/flexible-server/generative-ai-semantic-search)
20-
1. [Introducing the GraphRAG Solution for Azure Database for PostgreSQL](https://techcommunity.microsoft.com/blog/adforpostgresql/introducing-the-graphrag-solution-for-azure-database-for-postgresql/4299871)
21-
1. [New Generative AI Features in Azure Database for PostgreSQL](https://techcommunity.microsoft.com/blog/adforpostgresql/new-generative-ai-features-in-azure-database-for-postgresql/4414858)
22-
1. [AGE extension with Azure Database for PostgreSQL](/azure/postgresql/flexible-server/generative-ai-age-overview)
23-
1. [Large language model end-to-end evaluation](/azure/architecture/ai-ml/guide/rag/rag-llm-evaluation-phase)
24-
1. [GraphRAG Solution Accelerator for Azure Database for PostgreSQL](https://github.com/Azure-Samples/graphrag-legalcases-postgres/)
15+
- [Azure Database for PostgreSQL Documentation](/azure/postgresql/)
16+
- [pgvector Extension for PostgreSQL](https://github.com/pgvector/pgvector)
17+
- [LangChain Documentation](https://python.langchain.com/en/latest/)
18+
- [Azure OpenAI Service Overview](/azure/cognitive-services/openai/)
19+
- [Tutorial: Create a recommendation system with Azure Database for PostgreSQL and Azure OpenAI](/azure/postgresql/flexible-server/generative-ai-semantic-search)
20+
- [Introducing the GraphRAG Solution for Azure Database for PostgreSQL](https://techcommunity.microsoft.com/blog/adforpostgresql/introducing-the-graphrag-solution-for-azure-database-for-postgresql/4299871)
21+
- [New Generative AI Features in Azure Database for PostgreSQL](https://techcommunity.microsoft.com/blog/adforpostgresql/new-generative-ai-features-in-azure-database-for-postgresql/4414858)
22+
- [AGE extension with Azure Database for PostgreSQL](/azure/postgresql/flexible-server/generative-ai-age-overview)
23+
- [Large language model end-to-end evaluation](/azure/architecture/ai-ml/guide/rag/rag-llm-evaluation-phase)
24+
- [GraphRAG Solution Accelerator for Azure Database for PostgreSQL](https://github.com/Azure-Samples/graphrag-legalcases-postgres/)

learn-pr/wwl-data-ai/build-rag-applications-azure-database-postgresql/includes/2-understand-rag-patterns-azure-database-postgresql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Imagine you’re building an internal assistant that answers employee questions
22

33
## Why RAG matters
44

5-
LLMs are trained on vast quantities of text but don’t know your organization’s data or proprietary content. To address this problem, RAG retrieves relevant information from trusted sources you provide, grounding the LLM model’s response. This approach improves accuracy, reduces hallucinations, and ensures answers are based on facts you control.
5+
LLMs are trained on vast quantities of text but don’t know your organization’s data or proprietary content. To address this problem, RAG retrieves relevant information from trusted sources you provide, grounding the LLM model’s response. This approach improves accuracy, reduces AI-generated responses that might be incorrect, and ensures answers are based on facts you control.
66

77
## How the RAG pipeline works
88

learn-pr/wwl-data-ai/build-rag-applications-azure-database-postgresql/includes/3-explore-scale-accuracy-problem.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ While measuring *accuracy* isn't as straightforward as measuring for *scale*, yo
5050

5151
As your application grows, reevaluate your application's performance and adjust your RAG pipeline as needed. It's important to monitor both retrieval speed and accuracy over time.
5252

53-
## Key Takeaways
53+
## Key takeaways
5454

5555
For a Postgres RAG path, you keep the retrieval in the database, start with `pgvector`, and move to the appropriate index as the data set and traffic grows. Add a *Semantic Ranking* pass in SQL if ordering needs to be tighter. Bring in *GraphRAG* to add a short graph step when relationships carry meaning. Evaluate regularly and monitor in production so the system stays both fast and correct as data and usage change.

0 commit comments

Comments
 (0)