Skip to content

Commit ac0b1ab

Browse files
Merge pull request #4705 from diberry/squad/quickstart-vector-store-ts-update
Azure Cosmos DB | quickstart-sdk | Apply doc-review corrections to TypeScript vector store quickstart
2 parents 884c97c + deb5076 commit ac0b1ab

File tree

1 file changed

+40
-3
lines changed

1 file changed

+40
-3
lines changed

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)