Skip to content

Commit

Permalink
chore: add instruction to sift dataset (#1860)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyxu authored Jan 23, 2024
1 parent 4af4a1d commit 8d8472b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions benchmarks/sift/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,26 @@ tar -xzf sift.tar.gz

Generate Lance datasets using the `datagen.py` script:

Prepare a python virtual environment first.

```
python3 -m venv venv
. ./venv/bin/activate
pip install -r requirements.txt
```

#### Database vectors

```sh
./datagen.py ./sift/sift_base.fvecs ./.lancedb/sift1m.lance -d 128
```

#### Generate Ground Truth

```sh
./gt.py ./.lancedb/sift1m.lance -o ./.lancedb/ground_truth.lance
```

#### Query vectors

```sh
Expand Down
3 changes: 3 additions & 0 deletions benchmarks/sift/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
torch
tdqm
pylance

0 comments on commit 8d8472b

Please sign in to comment.