pub struct VectorStoreBuilder { /* private fields */ }Expand description
Builder for creating kernel vector stores.
Implementations§
Source§impl VectorStoreBuilder
impl VectorStoreBuilder
Sourcepub fn with_hnsw_config(self, config: HnswConfig) -> Self
pub fn with_hnsw_config(self, config: HnswConfig) -> Self
Sets the HNSW configuration.
Sourcepub fn with_coherence_config(self, config: CoherenceConfig) -> Self
pub fn with_coherence_config(self, config: CoherenceConfig) -> Self
Sets the coherence configuration.
Sourcepub fn with_proof_policy(self, policy: ProofPolicy) -> Self
pub fn with_proof_policy(self, policy: ProofPolicy) -> Self
Sets the proof policy.
Sourcepub fn build<B: MemoryBacking>(
self,
data_backing: B,
hnsw_backing: B,
witness_backing: B,
data_handle: RegionHandle,
hnsw_handle: RegionHandle,
witness_handle: RegionHandle,
store_id: u32,
) -> Result<KernelVectorStore<B>>
pub fn build<B: MemoryBacking>( self, data_backing: B, hnsw_backing: B, witness_backing: B, data_handle: RegionHandle, hnsw_handle: RegionHandle, witness_handle: RegionHandle, store_id: u32, ) -> Result<KernelVectorStore<B>>
Builds the kernel vector store.
§Type Parameters
B- The memory backing type
§Arguments
data_backing- Memory backing for vector data slabhnsw_backing- Memory backing for HNSW node slabwitness_backing- Memory backing for witness logdata_handle- Region handle for data regionhnsw_handle- Region handle for HNSW regionwitness_handle- Region handle for witness regionstore_id- Unique store identifier
Auto Trait Implementations§
impl Freeze for VectorStoreBuilder
impl RefUnwindSafe for VectorStoreBuilder
impl Send for VectorStoreBuilder
impl Sync for VectorStoreBuilder
impl Unpin for VectorStoreBuilder
impl UnsafeUnpin for VectorStoreBuilder
impl UnwindSafe for VectorStoreBuilder
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