Skip to content

Commit 7cb73f4

Browse files
committed
Merge remote-tracking branch 'upstream/main' into squad/quickstart-vector-store-java
# Conflicts: # articles/cosmos-db/TOC.yml
2 parents 8d887b3 + 256d5cb commit 7cb73f4

File tree

44 files changed

+1306
-340
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1306
-340
lines changed

articles/cosmos-db/TOC.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
- name: Query a vector store with a .NET app
4444
displayName: Quickstart, vector search, vector database, dotnet
4545
href: quickstart-vector-store-dotnet.md
46+
- name: Query a vector store with a Python app
47+
displayName: Quickstart, vector search, vector database, Python
48+
href: quickstart-vector-store-python.md
4649
- name: Query a vector store with a Java app
4750
displayName: Quickstart, vector search, vector database, Java
4851
href: quickstart-vector-store-java.md
242 KB
Loading

articles/cosmos-db/quickstart-vector-store-dotnet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ To provision resources:
8484
git clone https://github.com/Azure-Samples/cosmos-db-vector-samples.git
8585
```
8686

87-
1. Navigate to the root folder of the cloned repository (where `azure.yml` is located), for example:
87+
1. Navigate to the root folder of the cloned repository (where `azure.yaml` is located), for example:
8888

8989
```bash
9090
cd cosmos-db-vector-samples
@@ -103,7 +103,7 @@ Follow the prompts to select your Azure subscription and environment.
103103
* **Azure Cosmos DB**: Serverless account with the `Hotels` database and containers
104104
* **Azure OpenAI**: Resource with deployments for:
105105
* Embedding model: `text-embedding-3-small`
106-
* Chat model: `gpt-4o-mini`
106+
* Chat model: `gpt-4.1-mini`
107107
* **Managed Identity**: User-assigned identity for secure access.
108108
* Azure RBAC role assignments that enable Microsoft Entra ID (passwordless) access for the managed identity to Azure Cosmos DB and Azure OpenAI.
109109

articles/cosmos-db/quickstart-vector-store-nodejs.md

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ ms.author: diberry
77
ms.reviewer: jcodella
88
ms.devlang: typescript
99
ms.service: azure-cosmos-db
10+
ms.subservice: nosql
1011
ms.topic: quickstart-sdk
1112
ms.date: 02/11/2026
1213
ai-usage: ai-assisted
@@ -58,11 +59,35 @@ Find the sample code with resource provisioning on [GitHub](https://github.com/A
5859

5960
1. Create a new data directory for the hotels data file:
6061

62+
### [Linux/macOS](#tab/tab-data-linux)
63+
6164
```bash
6265
mkdir data
6366
```
6467

65-
1. Copy the [raw data file with vectors](https://raw.githubusercontent.com/Azure-Samples/cosmos-db-vector-samples/refs/heads/main/data/HotelsData_toCosmosDB_Vector.json) to your `data` directory.
68+
### [Windows](#tab/tab-data-windows)
69+
70+
```powershell
71+
New-Item -ItemType Directory -Force -Path data
72+
```
73+
74+
---
75+
76+
1. Download the [raw data file with vectors](https://raw.githubusercontent.com/Azure-Samples/cosmos-db-vector-samples/refs/heads/main/data/HotelsData_toCosmosDB_Vector.json) to your `data` directory:
77+
78+
### [Linux/macOS](#tab/tab-curl-linux)
79+
80+
```bash
81+
curl -o data/HotelsData_toCosmosDB_Vector.json https://raw.githubusercontent.com/Azure-Samples/cosmos-db-vector-samples/refs/heads/main/data/HotelsData_toCosmosDB_Vector.json
82+
```
83+
84+
### [Windows](#tab/tab-curl-windows)
85+
86+
```powershell
87+
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/Azure-Samples/cosmos-db-vector-samples/refs/heads/main/data/HotelsData_toCosmosDB_Vector.json" -OutFile "data/HotelsData_toCosmosDB_Vector.json"
88+
```
89+
90+
---
6691

6792
## Create a Node.js project
6893

@@ -190,12 +215,24 @@ Use these scripts to compile TypeScript files and run the Quantized flat index i
190215
191216
Create a `src` directory for your TypeScript files. Add two files: `vector-search.ts` and `utils.ts` for your vector search implementation:
192217
218+
### [Linux/macOS](#tab/tab-touch-linux)
219+
193220
```bash
194-
mkdir src
221+
mkdir src
195222
touch src/vector-search.ts
196223
touch src/utils.ts
197224
```
198225
226+
### [Windows](#tab/tab-touch-windows)
227+
228+
```powershell
229+
New-Item -ItemType Directory -Force -Path src | Out-Null
230+
New-Item -ItemType File -Path src/vector-search.ts | Out-Null
231+
New-Item -ItemType File -Path src/utils.ts | Out-Null
232+
```
233+
234+
---
235+
199236
## Create code for vector search
200237
201238
@@ -282,7 +319,7 @@ This utility module provides these **key** functions:
282319
283320
Sign in to Azure CLI before you run the application so the app can access Azure resources securely.
284321
285-
```bash
322+
```azurecli
286323
az login
287324
```
288325

0 commit comments

Comments
 (0)