pub struct BatchAdapter;Expand description
Adapter for batch operations
Implementations§
Source§impl BatchAdapter
impl BatchAdapter
Sourcepub fn batch_encode(
data_chunks: &[&[u8]],
config: &ReversibleVSAConfig,
) -> Vec<SparseVec>
pub fn batch_encode( data_chunks: &[&[u8]], config: &ReversibleVSAConfig, ) -> Vec<SparseVec>
Batch encode multiple data chunks
Sourcepub fn batch_decode(
vectors: &[SparseVec],
config: &ReversibleVSAConfig,
expected_size: usize,
) -> Vec<Vec<u8>>
pub fn batch_decode( vectors: &[SparseVec], config: &ReversibleVSAConfig, expected_size: usize, ) -> Vec<Vec<u8>>
Batch decode multiple vectors
Sourcepub fn batch_similarity(query: &SparseVec, vectors: &[SparseVec]) -> Vec<f64>
pub fn batch_similarity(query: &SparseVec, vectors: &[SparseVec]) -> Vec<f64>
Batch compute similarities
Sourcepub fn batch_bundle(vectors: &[SparseVec]) -> Option<SparseVec>
pub fn batch_bundle(vectors: &[SparseVec]) -> Option<SparseVec>
Batch bundle vectors
Auto Trait Implementations§
impl Freeze for BatchAdapter
impl RefUnwindSafe for BatchAdapter
impl Send for BatchAdapter
impl Sync for BatchAdapter
impl Unpin for BatchAdapter
impl UnwindSafe for BatchAdapter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more