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§
Sourcefn create(&self, config: &VectorStoreConfig) -> AppResult<Arc<dyn VectorStore>>
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".