Skip to content

Commit 6394c97

Browse files
diberryCopilot
andcommitted
Fix Python README: run from sample root (consistent with other languages)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 2cfa69d commit 6394c97

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

ai/select-algorithm-python/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ Compare IVF, HNSW, and DiskANN vector index algorithms in Azure DocumentDB. Each
4848

4949
2. Install dependencies:
5050
```bash
51-
cd src
52-
pip install -r ../requirements.txt
51+
pip install -r requirements.txt
5352
```
5453

5554
3. Copy the shared data file into the local `data/` directory:
@@ -68,8 +67,7 @@ Compare IVF, HNSW, and DiskANN vector index algorithms in Azure DocumentDB. Each
6867
Compare all 9 combinations (3 algorithms × 3 similarity metrics) in a single invocation:
6968

7069
```bash
71-
cd src
72-
python compare_all.py
70+
python src/compare_all.py
7371
```
7472

7573
The script creates a single `hotels` collection, loads data once, then for each of the 9 algorithm/metric combinations: creates the index → searches → drops the index. DocumentDB only allows one vector index per kind per field, so indexes are created sequentially.

0 commit comments

Comments
 (0)