Skip to content

Commit 9c6d5d4

Browse files
Merge pull request #4386 from diberry/diberry/update-dotnet-vector-search-docdb
DocDB update for .NET vector store - new samples repo
2 parents 4f3b884 + 6f4bfa1 commit 9c6d5d4

1 file changed

Lines changed: 25 additions & 25 deletions

File tree

articles/documentdb/quickstart-dotnet-vector-search.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.author: alexwolf
77
ms.reviewer: khelanmodi
88
ms.devlang: csharp
99
ms.topic: quickstart-sdk
10-
ms.date: 10/23/2025
10+
ms.date: 02/12/2026
1111
ms.custom:
1212
- devx-track-dotnet
1313
- devx-track-dotnet-ai
@@ -19,7 +19,7 @@ ms.custom:
1919

2020
Learn to use vector search in Azure DocumentDB with the .NET MongoDB driver to store and query vector data efficiently.
2121

22-
This quickstart provides a guided tour of key vector search techniques using a [.NET sample app](https://github.com/Azure-Samples/cosmos-db-vector-samples/tree/main/mongo-vcore-vector-search-dotnet) on GitHub.
22+
This quickstart provides a guided tour of key vector search techniques using a [.NET sample app](https://github.com/Azure-Samples/documentdb-samples/tree/main/ai/vector-search-dotnet) on GitHub.
2323

2424
The app uses a sample hotel dataset in a JSON file with pre-calculated vectors from the `text-embedding-ada-002` model, though you can also generate the vectors yourself. The hotel data includes hotel names, locations, descriptions, and vector embeddings.
2525

@@ -49,7 +49,7 @@ Complete the following steps to configure the app with your own values and run s
4949

5050
Update the `appsettings.json` placeholder values with your own:
5151

52-
:::code language="json" source="~/cosmos-db-vector-samples/mongo-vcore-vector-search-dotnet/appsettings.json" :::
52+
:::code language="json" source="~/documentdb-samples/ai/vector-search-dotnet/appsettings.json" :::
5353

5454
### Authenticate to Azure
5555

@@ -93,7 +93,7 @@ The sample app populates vectorized sample data in a MongoDB collection and lets
9393
The app prints a menu for you to select database and search options:
9494

9595
```output
96-
=== Cosmos DB Vector Samples Menu ===
96+
=== DocumentDB Vector Samples Menu ===
9797
Please enter your choice (0-5):
9898
1. Create embeddings for data
9999
2. Show all database indexes
@@ -124,11 +124,11 @@ The sample app populates vectorized sample data in a MongoDB collection and lets
124124
Executing DiskANN vector search for top 5 results
125125
126126
Search Results (5 found using DiskANN):
127-
1. Roach Motel (Similarity: 0.8399)
128-
2. Royal Cottage Resort (Similarity: 0.8385)
129-
3. Economy Universe Motel (Similarity: 0.8360)
130-
4. Foot Happy Suites (Similarity: 0.8354)
131-
5. Country Comfort Inn (Similarity: 0.8346)
127+
1. Royal Cottage Resort (Similarity: 0.4991)
128+
2. Country Comfort Inn (Similarity: 0.4786)
129+
3. Nordick's Valley Motel (Similarity: 0.4635)
130+
4. Economy Universe Motel (Similarity: 0.4461)
131+
5. Roach Motel (Similarity: 0.4388)
132132
```
133133
134134
#### [IVF](#tab/tab-ivf)
@@ -142,7 +142,7 @@ The sample app populates vectorized sample data in a MongoDB collection and lets
142142
The app prints a menu for you to select database and search options:
143143
144144
```output
145-
=== Cosmos DB Vector Samples Menu ===
145+
=== DocumentDB Vector Samples Menu ===
146146
Please enter your choice (0-5):
147147
1. Create embeddings for data
148148
2. Show all database indexes
@@ -173,11 +173,11 @@ The sample app populates vectorized sample data in a MongoDB collection and lets
173173
Executing IVF vector search for top 5 results
174174
175175
Search Results (5 found using IVF):
176-
1. Roach Motel (Similarity: 0.8399)
177-
2. Royal Cottage Resort (Similarity: 0.8385)
178-
3. Economy Universe Motel (Similarity: 0.8360)
179-
4. Foot Happy Suites (Similarity: 0.8354)
180-
5. Country Comfort Inn (Similarity: 0.8346)
176+
1. Royal Cottage Resort (Similarity: 0.4991)
177+
2. Country Comfort Inn (Similarity: 0.4786)
178+
3. Nordick's Valley Motel (Similarity: 0.4635)
179+
4. Economy Universe Motel (Similarity: 0.4461)
180+
5. Roach Motel (Similarity: 0.4388)
181181
```
182182

183183
#### [HNSW](#tab/tab-hnsw)
@@ -191,7 +191,7 @@ The sample app populates vectorized sample data in a MongoDB collection and lets
191191
The app prints a menu for you to select database and search options:
192192

193193
```output
194-
=== Cosmos DB Vector Samples Menu ===
194+
=== DocumentDB Vector Samples Menu ===
195195
Please enter your choice (0-5):
196196
1. Create embeddings for data
197197
2. Show all database indexes
@@ -222,24 +222,24 @@ The sample app populates vectorized sample data in a MongoDB collection and lets
222222
Executing HNSW vector search for top 5 results
223223
224224
Search Results (5 found using HNSW):
225-
1. Roach Motel (Similarity: 0.8399)
226-
2. Royal Cottage Resort (Similarity: 0.8385)
227-
3. Economy Universe Motel (Similarity: 0.8360)
228-
4. Foot Happy Suites (Similarity: 0.8354)
229-
5. Country Comfort Inn (Similarity: 0.8346)
225+
1. Royal Cottage Resort (Similarity: 0.4991)
226+
2. Country Comfort Inn (Similarity: 0.4786)
227+
3. Nordick's Valley Motel (Similarity: 0.4635)
228+
4. Economy Universe Motel (Similarity: 0.4461)
229+
5. Roach Motel (Similarity: 0.4388)
230230
```
231231
232-
----
232+
---
233233
234234
## Explore the app code
235235
236-
The following sections provide details about the most important services and code in the sample app. [Visit the GitHub repo](https://github.com/Azure-Samples/cosmos-db-vector-samples/tree/main/mongo-vcore-vector-search-dotnet) to explore the full app code.
236+
The following sections provide details about the most important services and code in the sample app. [Visit the GitHub repo](https://github.com/Azure-Samples/documentdb-samples/tree/main/ai/vector-search-dotnet) to explore the full app code.
237237
238238
### Explore the search service
239239
240240
The `VectorSearchService` orchestrates an end‑to‑end vector similarity search using IVF, HNSW, and DiskANN search techniques with Azure OpenAI embeddings.
241241
242-
:::code language="csharp" source="~/cosmos-db-vector-samples/mongo-vcore-vector-search-dotnet/services/vectorsearchservice.cs" :::
242+
:::code language="csharp" source="~/documentdb-samples/ai/vector-search-dotnet/services/vectorsearchservice.cs" :::
243243
244244
In the preceding code, the `VectorSearchService` performs the following tasks:
245245
@@ -254,7 +254,7 @@ In the preceding code, the `VectorSearchService` performs the following tasks:
254254
255255
The `MongoDbService` manages interactions with Azure DocumentDB to handle tasks like loading data, vector index creation, index listing, and bulk inserts for hotel vector search.
256256
257-
:::code language="csharp" source="~/cosmos-db-vector-samples/mongo-vcore-vector-search-dotnet/services/MongoDbService.cs" :::
257+
:::code language="csharp" source="~/documentdb-samples/ai/vector-search-dotnet/services/MongoDbService.cs" :::
258258
259259
In the preceding code, the `MongoDbService` performs the following tasks:
260260

0 commit comments

Comments
 (0)