pub enum EmbeddingSpec {
Dense {
model: Option<String>,
vector: Option<String>,
field: Option<String>,
},
Sparse {
model: Option<String>,
vector: Option<String>,
field: Option<String>,
},
Hybrid {
dense_model: Option<String>,
dense_vector: Option<String>,
dense_field: Option<String>,
sparse_model: Option<String>,
sparse_vector: Option<String>,
sparse_field: Option<String>,
},
MultiVector {
model: Option<String>,
vector: Option<String>,
field: Option<String>,
},
Image {
model: Option<String>,
vector: Option<String>,
field: Option<String>,
},
Multi(Vec<EmbeddingSpec>),
}Expand description
Upsert-level USING embedding clause.
Variants§
Dense
USING DENSE / USING MODEL / USING VECTOR — dense embedding.
Fields
Sparse
USING SPARSE — sparse embedding.
Fields
Hybrid
USING HYBRID — parallel dense + sparse embedding.
Fields
MultiVector
Multivector / ColBERT: text → bag of token vectors for a named multi slot.
Fields
Image
Image / CLIP vision: payload field holds a path or URL → dense vector.
Fields
Multi(Vec<EmbeddingSpec>)
Combined specs (e.g. DENSE + SPARSE + MULTI VECTOR colbert).
Trait Implementations§
Source§impl Clone for EmbeddingSpec
impl Clone for EmbeddingSpec
Source§fn clone(&self) -> EmbeddingSpec
fn clone(&self) -> EmbeddingSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EmbeddingSpec
impl Debug for EmbeddingSpec
Source§impl PartialEq for EmbeddingSpec
impl PartialEq for EmbeddingSpec
impl StructuralPartialEq for EmbeddingSpec
Auto Trait Implementations§
impl Freeze for EmbeddingSpec
impl RefUnwindSafe for EmbeddingSpec
impl Send for EmbeddingSpec
impl Sync for EmbeddingSpec
impl Unpin for EmbeddingSpec
impl UnsafeUnpin for EmbeddingSpec
impl UnwindSafe for EmbeddingSpec
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