pub struct VectorStoreRegistry { /* private fields */ }Expand description
Explicit vector store backend registry.
Implementations§
Source§impl VectorStoreRegistry
impl VectorStoreRegistry
Sourcepub fn register(
&mut self,
name: impl Into<String>,
factory: Arc<dyn VectorFactory>,
) -> AppResult<()>
pub fn register( &mut self, name: impl Into<String>, factory: Arc<dyn VectorFactory>, ) -> AppResult<()>
Register a backend factory under name.
Sourcepub fn build(
&self,
config: &VectorStoreConfig,
) -> AppResult<Arc<dyn VectorStore>>
pub fn build( &self, config: &VectorStoreConfig, ) -> AppResult<Arc<dyn VectorStore>>
Build the backend selected by VectorStoreConfig::backend.
Trait Implementations§
Source§impl Default for VectorStoreRegistry
impl Default for VectorStoreRegistry
Source§fn default() -> VectorStoreRegistry
fn default() -> VectorStoreRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for VectorStoreRegistry
impl !UnwindSafe for VectorStoreRegistry
impl Freeze for VectorStoreRegistry
impl Send for VectorStoreRegistry
impl Sync for VectorStoreRegistry
impl Unpin for VectorStoreRegistry
impl UnsafeUnpin for VectorStoreRegistry
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