pub struct VectorUpdateManager { /* private fields */ }Expand description
Vector update manager
Implementations§
Source§impl VectorUpdateManager
impl VectorUpdateManager
Sourcepub async fn new(config: VectorUpdateConfig) -> RragResult<Self>
pub async fn new(config: VectorUpdateConfig) -> RragResult<Self>
Create new vector update manager
Sourcepub async fn submit_operation(
&self,
operation: VectorOperation,
) -> RragResult<String>
pub async fn submit_operation( &self, operation: VectorOperation, ) -> RragResult<String>
Submit vector operation for processing
Sourcepub async fn process_embedding_updates(
&self,
updates: Vec<EmbeddingUpdate>,
index_name: &str,
) -> RragResult<VectorOperationResult>
pub async fn process_embedding_updates( &self, updates: Vec<EmbeddingUpdate>, index_name: &str, ) -> RragResult<VectorOperationResult>
Process embedding updates
Sourcepub async fn optimize_index(
&self,
index_name: &str,
optimization_type: OptimizationType,
) -> RragResult<VectorOperationResult>
pub async fn optimize_index( &self, index_name: &str, optimization_type: OptimizationType, ) -> RragResult<VectorOperationResult>
Optimize vector index
Sourcepub async fn get_index_stats(
&self,
index_name: &str,
) -> RragResult<Option<IndexStats>>
pub async fn get_index_stats( &self, index_name: &str, ) -> RragResult<Option<IndexStats>>
Get index statistics
Sourcepub async fn get_all_index_stats(
&self,
) -> RragResult<HashMap<String, IndexStats>>
pub async fn get_all_index_stats( &self, ) -> RragResult<HashMap<String, IndexStats>>
Get all index statistics
Sourcepub async fn get_metrics(&self) -> VectorUpdateMetrics
pub async fn get_metrics(&self) -> VectorUpdateMetrics
Get system metrics
Sourcepub async fn get_operation_history(
&self,
limit: Option<usize>,
) -> RragResult<Vec<VectorOperationResult>>
pub async fn get_operation_history( &self, limit: Option<usize>, ) -> RragResult<Vec<VectorOperationResult>>
Get operation history
Sourcepub async fn health_check(&self) -> RragResult<bool>
pub async fn health_check(&self) -> RragResult<bool>
Health check
Auto Trait Implementations§
impl Freeze for VectorUpdateManager
impl !RefUnwindSafe for VectorUpdateManager
impl Send for VectorUpdateManager
impl Sync for VectorUpdateManager
impl Unpin for VectorUpdateManager
impl !UnwindSafe for VectorUpdateManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more