Skip to main content

RetrievalStore

Trait RetrievalStore 

Source
pub trait RetrievalStore: Send + Sync {
    // Required methods
    fn exact_replay<'life0, 'life1, 'async_trait>(
        &'life0 self,
        session_id: &'life1 str,
        limit: usize,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<SessionRecord>, RetrievalError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn semantic_search<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        session_id: &'life1 str,
        query: &'life2 str,
        limit: usize,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<RetrievedItem>, RetrievalError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn graph_neighbors<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        session_id: &'life1 str,
        resource_id: &'life2 str,
        max_hops: usize,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<RelationshipEdge>, RetrievalError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn recent_working_set<'life0, 'life1, 'async_trait>(
        &'life0 self,
        session_id: &'life1 str,
        limit: usize,
    ) -> Pin<Box<dyn Future<Output = Result<WorkingSet, RetrievalError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn exact_replay<'life0, 'life1, 'async_trait>( &'life0 self, session_id: &'life1 str, limit: usize, ) -> Pin<Box<dyn Future<Output = Result<Vec<SessionRecord>, RetrievalError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn graph_neighbors<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, session_id: &'life1 str, resource_id: &'life2 str, max_hops: usize, ) -> Pin<Box<dyn Future<Output = Result<Vec<RelationshipEdge>, RetrievalError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn recent_working_set<'life0, 'life1, 'async_trait>( &'life0 self, session_id: &'life1 str, limit: usize, ) -> Pin<Box<dyn Future<Output = Result<WorkingSet, RetrievalError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§