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

feat: stand alone test #448

Merged
merged 13 commits into from
Apr 1, 2024
Merged

Conversation

whateveraname
Copy link
Contributor

Test algorithms without pg. See demo test files in crates/stand-alone-test/src/bin.

Signed-off-by: whateveraname <[email protected]>
Signed-off-by: whateveraname <[email protected]>
Signed-off-by: whateveraname <[email protected]>
Signed-off-by: whateveraname <[email protected]>
Signed-off-by: whateveraname <[email protected]>
Signed-off-by: whateveraname <[email protected]>
@whateveraname whateveraname changed the title Feat/stand alone test feat: stand alone test Mar 27, 2024
Signed-off-by: whateveraname <[email protected]>
@VoVAllen VoVAllen requested a review from usamoi March 27, 2024 10:55

fn main() {
let dims = 128;
let path = Path::new("/home/yanqi/stand-alone-test/data/hnsw");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Where can we download files?

Copy link
Contributor Author

@whateveraname whateveraname Mar 28, 2024

Choose a reason for hiding this comment

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

The code currently uses the fvecs format that the sift and gist datasets use. You can refer to corpus-texmex.irisa.fr for information of the fvecs format and download the sift and gist datasets. To use dataset of other formats, you may need to write another function to read that format or convert it to fvecs format.

crates/hnsw/src/lib.rs Outdated Show resolved Hide resolved
crates/storage/src/vec.rs Show resolved Hide resolved
Signed-off-by: whateveraname <[email protected]>
Cargo.toml Outdated Show resolved Hide resolved
crates/stand-alone-test/src/bin/search_hnsw.rs Outdated Show resolved Hide resolved
crates/stand-alone-test/src/bin/make_hnsw.rs Outdated Show resolved Hide resolved
@usamoi usamoi added this pull request to the merge queue Apr 1, 2024
Merged via the queue into tensorchord:main with commit 97ce096 Apr 1, 2024
13 checks passed
JinweiOS pushed a commit to JinweiOS/pgvecto.rs that referenced this pull request May 21, 2024
* add stand alone test

Signed-off-by: whateveraname <[email protected]>

* update .gitignore

Signed-off-by: whateveraname <[email protected]>

* change data path

Signed-off-by: whateveraname <[email protected]>

* update data path

Signed-off-by: whateveraname <[email protected]>

* cargo fmt

Signed-off-by: whateveraname <[email protected]>

* clean code

Signed-off-by: whateveraname <[email protected]>

* taplo fmt

Signed-off-by: whateveraname <[email protected]>

* gate code with cargo feature

Signed-off-by: whateveraname <[email protected]>

* clean Cargo.toml and add CLI for stand-alone-test

Signed-off-by: whateveraname <[email protected]>

* remove feature from package stand-alone-test

Signed-off-by: whateveraname <[email protected]>

* cleanup

Signed-off-by: usamoi <[email protected]>

---------

Signed-off-by: whateveraname <[email protected]>
Signed-off-by: usamoi <[email protected]>
Co-authored-by: usamoi <[email protected]>
Signed-off-by: jinweios <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants