Skip to main content

VectorStore

Trait VectorStore 

Source
pub trait VectorStore: Send + Sync {
    // Required methods
    fn upsert<'life0, 'async_trait>(
        &'life0 self,
        chunks: Vec<EmbeddedChunk>,
    ) -> Pin<Box<dyn Future<Output = Result<(), VectorStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_by_doc<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        tenant_id: &'life1 str,
        workspace_id: &'life2 str,
        source_id: &'life3 str,
        doc_id: &'life4 str,
    ) -> Pin<Box<dyn Future<Output = Result<(), VectorStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
    fn query<'life0, 'async_trait>(
        &'life0 self,
        request: VectorQuery,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<VectorSearchResult>, VectorStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn upsert<'life0, 'async_trait>( &'life0 self, chunks: Vec<EmbeddedChunk>, ) -> Pin<Box<dyn Future<Output = Result<(), VectorStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn delete_by_doc<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, tenant_id: &'life1 str, workspace_id: &'life2 str, source_id: &'life3 str, doc_id: &'life4 str, ) -> Pin<Box<dyn Future<Output = Result<(), VectorStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Source

fn query<'life0, 'async_trait>( &'life0 self, request: VectorQuery, ) -> Pin<Box<dyn Future<Output = Result<Vec<VectorSearchResult>, VectorStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§