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>),
}Variants§
Dense
Sparse
Hybrid
Fields
MultiVector
Multivector / ColBERT: text → bag of token vectors for a named multi slot.
Image
Image / CLIP vision: payload field holds a path or URL → dense vector.
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