pub struct EmbedModelInfo {
pub model: String,
pub dimension: u32,
pub template_version: u32,
pub revision: Option<String>,
pub max_tokens: Option<u32>,
pub images: bool,
}Expand description
The embedding model a bridge serves.
Fields§
§model: StringThe model’s name.
dimension: u32Its vector dimension.
template_version: u32The version of the text template applied before embedding.
revision: Option<String>The model’s pinned revision, when the bridge pins one.
max_tokens: Option<u32>Content tokens kept before embedding, when the bridge truncates (the local model).
images: boolWhether the model embeds images too (EMBED_IMAGES). Absent from bridges before
2.4: false.
Trait Implementations§
Source§impl Clone for EmbedModelInfo
impl Clone for EmbedModelInfo
Source§impl Debug for EmbedModelInfo
impl Debug for EmbedModelInfo
Source§impl<'de> Deserialize<'de> for EmbedModelInfo
impl<'de> Deserialize<'de> for EmbedModelInfo
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 Eq for EmbedModelInfo
Source§impl PartialEq for EmbedModelInfo
impl PartialEq for EmbedModelInfo
Source§impl Serialize for EmbedModelInfo
impl Serialize for EmbedModelInfo
impl StructuralPartialEq for EmbedModelInfo
Auto Trait Implementations§
impl Freeze for EmbedModelInfo
impl RefUnwindSafe for EmbedModelInfo
impl Send for EmbedModelInfo
impl Sync for EmbedModelInfo
impl Unpin for EmbedModelInfo
impl UnsafeUnpin for EmbedModelInfo
impl UnwindSafe for EmbedModelInfo
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