Skip to main content

StoreFactory

Type Alias StoreFactory 

Source
pub type StoreFactory = Box<dyn Fn(&Path) -> Result<Arc<dyn VectorStore>, Box<dyn Error + Send + Sync>> + Send + Sync>;
Expand description

Factory closure that creates a VectorStore for a given cache directory.

Receives the path to the per-index cache directory. The factory is responsible for opening or creating the store at that location.

Aliased Typeยง

pub struct StoreFactory(/* private fields */);