InsertDocuments

Trait InsertDocuments 

Source
pub trait InsertDocuments: Send + Sync {
    // Required method
    fn insert_documents<Doc: Serialize + Embed + Send>(
        &self,
        documents: Vec<(Doc, OneOrMany<Embedding>)>,
    ) -> impl Future<Output = Result<(), VectorStoreError>> + Send;
}
Expand description

Trait for inserting documents into a vector store.

Required Methods§

Source

fn insert_documents<Doc: Serialize + Embed + Send>( &self, documents: Vec<(Doc, OneOrMany<Embedding>)>, ) -> impl Future<Output = Result<(), VectorStoreError>> + Send

Insert documents into the vector store.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§