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 <12011319@mail.sustech.edu.cn>
Signed-off-by: whateveraname <12011319@mail.sustech.edu.cn>
Signed-off-by: whateveraname <12011319@mail.sustech.edu.cn>
Signed-off-by: whateveraname <12011319@mail.sustech.edu.cn>
Signed-off-by: whateveraname <12011319@mail.sustech.edu.cn>
Signed-off-by: whateveraname <12011319@mail.sustech.edu.cn>
Signed-off-by: whateveraname <12011319@mail.sustech.edu.cn>
@whateveraname whateveraname changed the title Feat/stand alone test feat: stand alone test Mar 27, 2024
Signed-off-by: whateveraname <12011319@mail.sustech.edu.cn>
@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 <12011319@mail.sustech.edu.cn>
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
whateveraname and others added 4 commits April 1, 2024 10:01
Signed-off-by: whateveraname <12011319@mail.sustech.edu.cn>
Signed-off-by: whateveraname <12011319@mail.sustech.edu.cn>
Signed-off-by: usamoi <usamoi@outlook.com>
@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 <12011319@mail.sustech.edu.cn>

* update .gitignore

Signed-off-by: whateveraname <12011319@mail.sustech.edu.cn>

* change data path

Signed-off-by: whateveraname <12011319@mail.sustech.edu.cn>

* update data path

Signed-off-by: whateveraname <12011319@mail.sustech.edu.cn>

* cargo fmt

Signed-off-by: whateveraname <12011319@mail.sustech.edu.cn>

* clean code

Signed-off-by: whateveraname <12011319@mail.sustech.edu.cn>

* taplo fmt

Signed-off-by: whateveraname <12011319@mail.sustech.edu.cn>

* gate code with cargo feature

Signed-off-by: whateveraname <12011319@mail.sustech.edu.cn>

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

Signed-off-by: whateveraname <12011319@mail.sustech.edu.cn>

* remove feature from package stand-alone-test

Signed-off-by: whateveraname <12011319@mail.sustech.edu.cn>

* cleanup

Signed-off-by: usamoi <usamoi@outlook.com>

---------

Signed-off-by: whateveraname <12011319@mail.sustech.edu.cn>
Signed-off-by: usamoi <usamoi@outlook.com>
Co-authored-by: usamoi <usamoi@outlook.com>
Signed-off-by: jinweios <jinwei.peng@beingthink.com>
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