Skip to content

Commit 9208916

Browse files
Merge pull request #49469 from MicrosoftDocs/NEW-DP-420-AI-Module
New dp 420 ai module
2 parents 8e02960 + 69defa4 commit 9208916

File tree

34 files changed

+912
-7
lines changed

34 files changed

+912
-7
lines changed

learn-pr/paths/execute-queries-azure-cosmos-db-sql-api/index.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ subjects:
2424
modules:
2525
- learn.wwl.query-azure-cosmos-db-sql-api
2626
- learn.wwl.author-complex-queries-azure-cosmos-db-sql-api
27+
- learn.wwl.build-generative-ai-applications-with-azure-cosmos-db-nosql
2728
trophy:
2829
uid: learn.wwl.execute-queries-azure-cosmos-db-sql-api.trophy
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.build-generative-ai-applications-with-azure-cosmos-db-nosql.introduction
3+
title: Introduction
4+
metadata:
5+
title: Introduction
6+
description: "Introduction to building Generative AI applications with Python and Azure Cosmos DB for NoSQL."
7+
ms.date: 03/10/2025
8+
author: wwlpublish
9+
ms.author: calopez
10+
ms.topic: unit
11+
azureSandbox: false
12+
labModal: false
13+
durationInMinutes: 3
14+
content: |
15+
[!include[](includes/1-introduction.md)]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.build-generative-ai-applications-with-azure-cosmos-db-nosql.exercise-implement-rag-with-langchain
3+
title: Exercise - Implement RAG with LangChain and Azure Cosmos DB for NoSQL Vector Search
4+
metadata:
5+
title: Exercise - Implement RAG with LangChain and Azure Cosmos DB for NoSQL Vector Search
6+
description: "Exercise - Implement RAG with LangChain and Azure Cosmos DB for NoSQL Vector Search."
7+
ms.date: 03/10/2025
8+
author: wwlpublish
9+
ms.author: calopez
10+
ms.topic: unit
11+
azureSandbox: false
12+
labModal: false
13+
durationInMinutes: 20
14+
content: |
15+
[!include[](includes/10-exercise-implement-rag-with-langchain.md)]
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.build-generative-ai-applications-with-azure-cosmos-db-nosql.knowledge-check
3+
title: Knowledge check
4+
metadata:
5+
title: Knowledge check
6+
description: "Knowledge check"
7+
ms.date: 03/10/2025
8+
author: wwlpublish
9+
ms.author: calopez
10+
ms.topic: unit
11+
azureSandbox: false
12+
labModal: false
13+
durationInMinutes: 5
14+
quiz:
15+
questions:
16+
- content: "What is the name of the system function that can be used to conduct a vector search in Azure Cosmos DB for NoSQL?"
17+
choices:
18+
- content: "``VectorSearch``"
19+
isCorrect: false
20+
explanation: "Incorrect. Although the name ``VectorSearch`` implies a function related to vector searches, it isn't a system function in Azure Cosmos DB."
21+
- content: "``SimilaritySearch``"
22+
isCorrect: false
23+
explanation: "Incorrect. Although the name ``SimilaritySearch`` implies a function related to vector similarity searches, it isn't a system function in Azure Cosmos DB."
24+
- content: "``VectorDistance``"
25+
isCorrect: true
26+
explanation: "Correct. The ``VectorDistance()`` system function is used to conduct a vector search in Azure Cosmos DB for NoSQL. It calculates the distance between two vectors, which helps determine how similar two vectors are based on their spatial characteristics."
27+
- content: "Which component of the container vector policy specifies the technique used to compute the similarity between vectors?"
28+
choices:
29+
- content: "``datatype``"
30+
isCorrect: false
31+
explanation: "Incorrect. The ``datatype`` component specifies the type of elements in the vector, such as `Float32`, and doesn't relate to the technique for computing vector distances or similarities."
32+
- content: "``distanceFunction``"
33+
isCorrect: true
34+
explanation: "Correct. The ``distanceFunction`` property of the container vector policy specifies the technique used to compute the distance or similarity between vectors. In vector search, distance functions determine how similar or different vectors are within a multidimensional space. Popular methods include Euclidean distance, cosine similarity, and Manhattan distance, each offering unique ways to compare the vectors."
35+
- content: "path"
36+
isCorrect: false
37+
explanation: "Incorrect. The ``path`` component indicates the property containing the vector embeddings, not the method for computing distances or similarities between vectors."
38+
- content: "Which type of vector index policy in Azure Cosmos DB for NoSQL is designed for fast and efficient approximate searches?"
39+
choices:
40+
- content: "``diskANN``"
41+
isCorrect: true
42+
explanation: "Correct. The ``diskANN`` index policy creates an index based on DiskANN, which is designed for fast and efficient approximate searches. It specializes for high-dimensional data and supports up to 4,096 dimensions, making it ideal for scenarios requiring quick retrieval of semantically similar vectors."
43+
- content: "``flat``"
44+
isCorrect: false
45+
explanation: "Incorrect. The ``flat`` index policy stores vectors on the same index as other indexed properties without additional optimizations for fast searches. It supports up to 505 dimensions but doesn't provide the efficiency improvements of ``diskANN``."
46+
- content: "``quantizedFlat``"
47+
isCorrect: false
48+
explanation: "Incorrect. The ``quantizedFlat`` index policy quantizes (compresses) vectors before storing them on the index, improving latency and throughput at the cost of a small amount of accuracy. It also supports up to 4,096 dimensions but focuses on compression rather than approximate search efficiency."
49+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.build-generative-ai-applications-with-azure-cosmos-db-nosql.summary
3+
title: Summary
4+
metadata:
5+
title: Summary
6+
description: "Summary"
7+
ms.date: 03/10/2025
8+
author: wwlpublish
9+
ms.author: calopez
10+
ms.topic: unit
11+
azureSandbox: false
12+
labModal: false
13+
durationInMinutes: 2
14+
content: |
15+
[!include[](includes/12-summary.md)]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.build-generative-ai-applications-with-azure-cosmos-db-nosql.configure-vector-search-storage-for-azure-cosmos-db-nosql
3+
title: Configure the Vector Search and storage feature of Azure Cosmos DB NoSQL
4+
metadata:
5+
title: Configure the Vector Search and storage feature of Azure Cosmos DB NoSQL
6+
description: "Explore the Vector Search and storage feature of Azure Cosmos DB for NoSQL and how to enable it."
7+
ms.date: 03/10/2025
8+
author: wwlpublish
9+
ms.author: calopez
10+
ms.topic: unit
11+
azureSandbox: false
12+
labModal: false
13+
durationInMinutes: 4
14+
content: |
15+
[!include[](includes/2-configure-vector-search-storage-for-azure-cosmos-db-nosql.md)]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.build-generative-ai-applications-with-azure-cosmos-db-nosql.exercise-enable-azure-cosmos-db-nosql-vector-search
3+
title: Exercise - Enable the Azure Cosmos DB for NoSQL Vector Search feature
4+
metadata:
5+
title: Exercise - Enable the Azure Cosmos DB for NoSQL Vector Search feature
6+
description: "Exercise: Enable the Azure Cosmos DB for NoSQL Vector Search feature in your Azure Cosmos DB account."
7+
ms.date: 03/10/2025
8+
author: wwlpublish
9+
ms.author: calopez
10+
ms.topic: unit
11+
azureSandbox: false
12+
labModal: false
13+
durationInMinutes: 10
14+
content: |
15+
[!include[](includes/3-exercise-enable-azure-cosmos-db-nosql-vector-search.md)]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.build-generative-ai-applications-with-azure-cosmos-db-nosql.generate-embeddings
3+
title: Generate embeddings using Azure OpenAI Service
4+
metadata:
5+
title: Generate embeddings using Azure OpenAI Service
6+
description: "Review how to use Azure OpenAI Service to generate vector embeddings."
7+
ms.date: 03/10/2025
8+
author: wwlpublish
9+
ms.author: calopez
10+
ms.topic: unit
11+
azureSandbox: false
12+
labModal: false
13+
durationInMinutes: 5
14+
content: |
15+
[!include[](includes/4-generate-embeddings.md)]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.build-generative-ai-applications-with-azure-cosmos-db-nosql.exercise-generate-and-store-vectors
3+
title: Exercise - Generate vector embeddings with Azure OpenAI and store them in Azure Cosmos DB for NoSQL
4+
metadata:
5+
title: Exercise - Generate vector embeddings with Azure OpenAI and store them in Azure Cosmos DB for NoSQL
6+
description: "Exercise - Generate vector embeddings with Azure OpenAI and store them in Azure Cosmos DB for NoSQL."
7+
ms.date: 03/10/2025
8+
author: wwlpublish
9+
ms.author: calopez
10+
ms.topic: unit
11+
azureSandbox: false
12+
labModal: false
13+
durationInMinutes: 20
14+
content: |
15+
[!include[](includes/5-exercise-generate-and-store-vectors.md)]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.build-generative-ai-applications-with-azure-cosmos-db-nosql.build-generative-ai-applications
3+
title: Build Generative AI applications with Azure Cosmos DB NoSQL and Python
4+
metadata:
5+
title: Build Generative AI applications with Azure Cosmos DB NoSQL and Python
6+
description: "Learn how to build Generative AI applications with Python and Azure Cosmos DB for NoSQL."
7+
ms.date: 03/10/2025
8+
author: wwlpublish
9+
ms.author: calopez
10+
ms.topic: unit
11+
azureSandbox: false
12+
labModal: false
13+
durationInMinutes: 10
14+
content: |
15+
[!include[](includes/6-build-generative-ai-applications.md)]

0 commit comments

Comments
 (0)