docs.rs failed to build vsag-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
vsag-0.1.1
VSAG Rust Binding
A Rust binding for the VSAG.
Usage
Then try the example:
use VsagIndex;
let index_type = "hnsw";
let con_params = r#"{
"dtype": "float32",
"metric_type": "l2",
"dim": 128,
"hnsw": {
"max_degree": 16,
"ef_construction": 100
}
}"#;
let search_params = r#"{
"hnsw": {
"ef_search": 100
}
}"#;
let index = new.unwrap;
let ids: = .collect;
let vectors =
.map
.;
let vectors_for_index: = vectors.iter.flat_map.collect;
let failed_ids = index
.build
.unwrap;
assert_eq!;
let query_vector: = .map.collect;
let k = 10;
let output = index.knn_search.unwrap;
assert_eq!;
assert_eq!;