Skip to main content

VectorStore

Trait VectorStore 

Source
pub trait VectorStore<V> {
    // Required method
    fn get(&self, id: usize) -> Option<&V>;
}
Expand description

Minimal vector store abstraction.

This matches typical kernel/runtime needs: fetch vectors by ID.

Required Methods§

Source

fn get(&self, id: usize) -> Option<&V>

Implementations on Foreign Types§

Source§

impl VectorStore<SparseVec> for HashMap<usize, SparseVec>

Source§

fn get(&self, id: usize) -> Option<&SparseVec>

Implementors§