pub struct VectorExclusionOperator {
pub positive: Arc<dyn Operator>,
pub negative_op: VectorSimilarityOperator,
}Expand description
VE(V1, V2) = V1 AND NOT V2 — keeps documents from positive that are
dissimilar to negative_op’s query. The negative side is wired through a
VectorSimilarityOperator threshold so the caller decides what
counts as “too similar”.
Fields§
§positive: Arc<dyn Operator>§negative_op: VectorSimilarityOperatorImplementations§
Trait Implementations§
Source§impl Operator for VectorExclusionOperator
impl Operator for VectorExclusionOperator
fn execute(&self, ctx: &ExecutionContext) -> OperatorResult
fn cost_estimate(&self, stats: &IndexStats) -> f64
Auto Trait Implementations§
impl !RefUnwindSafe for VectorExclusionOperator
impl !UnwindSafe for VectorExclusionOperator
impl Freeze for VectorExclusionOperator
impl Send for VectorExclusionOperator
impl Sync for VectorExclusionOperator
impl Unpin for VectorExclusionOperator
impl UnsafeUnpin for VectorExclusionOperator
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