Skip to main content

SemanticIndexStore

Trait SemanticIndexStore 

Source
pub trait SemanticIndexStore: Send + Sync {
    // Required methods
    fn sync_node_tags_async<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        node_ref: SemanticTagNodeRef,
        tags: &'life1 [String],
        embeddings: Option<&'life2 HashMap<String, TagEmbedding>>,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn delete_node_tags_async<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        tenant_id: &'life1 str,
        sync_key: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn find_sync_keys_by_tags_async<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        tenant_id: &'life1 str,
        tags: &'life2 [String],
        match_all: bool,
        session_id: Option<&'life3 str>,
        limit: usize,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn find_tags_async<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        tenant_id: &'life1 str,
        prefix: Option<&'life2 str>,
        limit: usize,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn query_tag_records_async<'life0, 'async_trait>(
        &'life0 self,
        filter: SemanticTagQueryFilter,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<SemanticTagRecord>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Storage for per-tag vocabulary rows and optional tag embeddings.

Required Methods§

Source

fn sync_node_tags_async<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, node_ref: SemanticTagNodeRef, tags: &'life1 [String], embeddings: Option<&'life2 HashMap<String, TagEmbedding>>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn delete_node_tags_async<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, tenant_id: &'life1 str, sync_key: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn find_sync_keys_by_tags_async<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, tenant_id: &'life1 str, tags: &'life2 [String], match_all: bool, session_id: Option<&'life3 str>, limit: usize, ) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn find_tags_async<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, tenant_id: &'life1 str, prefix: Option<&'life2 str>, limit: usize, ) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn query_tag_records_async<'life0, 'async_trait>( &'life0 self, filter: SemanticTagQueryFilter, ) -> Pin<Box<dyn Future<Output = Result<Vec<SemanticTagRecord>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§