pub struct Embedding {
pub embedder: String,
pub dimension: usize,
pub vectors: Vec<Vec<f32>>,
pub sparse: Vec<SparseVector>,
}Expand description
What Client::vector_embed produced.
Fields§
§embedder: StringThe embedder’s name. hash-v1 is deterministic feature hashing:
lexical, with no model behind it.
dimension: usizeThe dimension asked for.
vectors: Vec<Vec<f32>>One dense vector per text, in the order given.
sparse: Vec<SparseVector>One sparse vector per text, in the order given.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Embedding
impl<'de> Deserialize<'de> for Embedding
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
impl StructuralPartialEq for Embedding
Auto Trait Implementations§
impl Freeze for Embedding
impl RefUnwindSafe for Embedding
impl Send for Embedding
impl Sync for Embedding
impl Unpin for Embedding
impl UnsafeUnpin for Embedding
impl UnwindSafe for Embedding
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