| Crates.io | small-world-rs |
| lib.rs | small-world-rs |
| version | 1.1.1 |
| created_at | 2024-12-07 03:28:27.175698+00 |
| updated_at | 2024-12-08 01:48:18.021793+00 |
| description | The easiest HNSW vector index you'll ever use |
| homepage | |
| repository | https://github.com/httpjamesm/small-world-rs |
| max_upload_size | |
| id | 1475094 |
| size | 29,311 |
small-world-rs is an HNSW vector index written in Rust.
See the text-embeddings example for a simple example of how to use small-world-rs to perform semantic search over a set of text embeddings.
Basically, it works like this:
World with World::new or World::new_from_dumpworld.insert_vectorworld.searchworld.dump to save for laterKey Parameters:
m: Connections per layer
ef_construction: Construction-time exploration factor
ef_searchef_search: Query-time exploration factor