oasysdb 0.4.4

Fast embedded vector database with incremental HNSW indexing.
Documentation
1
2
3
4
5
6
7
8
9
10
use oasysdb::prelude::*;

/// Creates a collection with random vector records.
/// * `dimension`: Dimensionality of the vector embeddings
/// * `len`: Number of records in the database
pub fn build_test_collection(dimension: usize, len: usize) -> Collection {
    let records = Record::many_random(dimension, len);
    let config = Config::default();
    Collection::build(&config, &records).unwrap()
}