pub enum VectorOperation {
Add {
embeddings: Vec<Embedding>,
index_name: String,
},
Update {
embedding_updates: Vec<EmbeddingUpdate>,
index_name: String,
},
Remove {
embedding_ids: Vec<String>,
index_name: String,
},
Optimize {
index_name: String,
optimization_type: OptimizationType,
},
Rebuild {
index_name: String,
embeddings: Vec<Embedding>,
},
UpdateThresholds {
index_name: String,
new_threshold: f32,
},
}Expand description
Types of vector operations
Variants§
Add
Add new embeddings to index
Update
Update existing embeddings
Remove
Remove embeddings from index
Optimize
Optimize index structure
Rebuild
Rebuild index from scratch
UpdateThresholds
Update similarity thresholds
Trait Implementations§
Source§impl Clone for VectorOperation
impl Clone for VectorOperation
Source§fn clone(&self) -> VectorOperation
fn clone(&self) -> VectorOperation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VectorOperation
impl Debug for VectorOperation
Source§impl<'de> Deserialize<'de> for VectorOperation
impl<'de> Deserialize<'de> for VectorOperation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VectorOperation
impl RefUnwindSafe for VectorOperation
impl Send for VectorOperation
impl Sync for VectorOperation
impl Unpin for VectorOperation
impl UnwindSafe for VectorOperation
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