Skip to main content

VectorFactory

Trait VectorFactory 

Source
pub trait VectorFactory: Send + Sync {
    // Required method
    fn create(
        &self,
        config: &VectorStoreConfig,
    ) -> AppResult<Arc<dyn VectorStore>>;
}
Expand description

Factory for a named vector store backend.

Required Methods§

Source

fn create(&self, config: &VectorStoreConfig) -> AppResult<Arc<dyn VectorStore>>

Create a vector store backend instance.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§