Trait PgVectorClient
Source pub trait PgVectorClient: Send + Sync {
// Required methods
fn upsert<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
document: &'life1 Document,
embedding: &'life2 [f32],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn query<'life0, 'life1, 'async_trait>(
&'life0 self,
embedding: &'life1 [f32],
params: SearchParams,
) -> Pin<Box<dyn Future<Output = Result<Vec<ScoredDocument>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}