Skip to main content

VectorStoreFactory

Trait VectorStoreFactory 

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

向量存储工厂 trait

Required Methods§

Source

fn create( &self, config: VectorStoreConfig, ) -> Layer3Result<Box<dyn VectorStore>>

创建向量存储

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§