VectorLite
The SQLite of Vector Database in Rust.
Features
- Compact size
- Zero-copy de/serialization from/to disk
- Excellent search performance
- WASM support
- Minimal dependencies
Planned
- Concurrent insert/delete/search
- Support usage as external index for Parquet dataset.
Usage
use ;
// Create a new index with 4 trees and leaf size of 10
const DIM: usize = 3;
let mut index = new;
index.insert;
index.insert;
index.insert;
index.insert;
let query = .into;
let results = index.search;
for in results
index.delete_by_id;
// De/serialize from/to disk
let serialized = index.to_bytes;
let loaded_index = from_bytes;
Benchmark
WASM
Need to build with wasm_js backend for getrandom crate.
Notable users
VectorLite is the primary vector database used in Seen -- knowledge management for the impatient.
License
Apache-2.0