Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add raft-ann-bench script to generate synthetic dataset #2023

Open
wants to merge 3 commits into
base: branch-24.02
Choose a base branch
from

Conversation

tfeher
Copy link
Contributor

@tfeher tfeher commented Nov 23, 2023

This PR adds a Python script to generate synthetic dataset.

@tfeher
Copy link
Contributor Author

tfeher commented Nov 23, 2023

python -m raft-ann-bench.generate_dataset --rows 1000000 --cols 128 --dtype float32 dataset/base.fbin

 # After the dataset is generated, you can create query and ground truth files

python -m raft-ann-bench.generate_groundtruth dataset/base.fbin --output=dataset --queries=random --n_queries=10000

@tfeher tfeher added non-breaking Non-breaking change Vector Search labels Nov 23, 2023
import math
import sys

import cuml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No package of RAFT should depend on cuML, it's a circular dependency otherwise.

@cjnolet
Copy link
Member

cjnolet commented May 21, 2024

@tfeher this is still a really valuable feature to have. I'm going to push to 24.08, given the looming code freeze. Also cc @dantegd since you are refactoring the Python APIs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

None yet

3 participants