pub struct EmbeddingTower {
pub model_id: String,
pub model_version: String,
pub weights_digest: Vec<u8>,
pub dims: u32,
pub normalization: Normalization,
pub prompt_prefix: String,
pub max_tokens: u32,
pub runtime: EmbeddingRuntime,
pub compute_units: ComputeUnits,
pub os_build: Option<String>,
}Expand description
Complete immutable identity of one encoder tower.
Every field changes the meaning of produced vectors. Mutable store state such as generations, row counts, timestamps, and document counts is deliberately absent.
Fields§
§model_id: StringHost-selected model identifier.
model_version: StringHost-selected model version.
weights_digest: Vec<u8>Opaque digest of the exact model weights.
dims: u32Output vector dimensions.
normalization: NormalizationOutput normalization behaviour.
prompt_prefix: StringExact prompt or prefix applied before inference, empty for none.
max_tokens: u32Maximum input token count.
runtime: EmbeddingRuntimeInference runtime.
compute_units: ComputeUnitsCompute-unit selection.
os_build: Option<String>Optional operating-system build that affects inference behaviour.
Implementations§
Source§impl EmbeddingTower
impl EmbeddingTower
Sourcepub fn model_label(&self) -> String
pub fn model_label(&self) -> String
Returns a human-readable model label for diagnostics.
Trait Implementations§
Source§impl Clone for EmbeddingTower
impl Clone for EmbeddingTower
Source§impl Debug for EmbeddingTower
impl Debug for EmbeddingTower
impl Eq for EmbeddingTower
Source§impl PartialEq for EmbeddingTower
impl PartialEq for EmbeddingTower
impl StructuralPartialEq for EmbeddingTower
Auto Trait Implementations§
impl Freeze for EmbeddingTower
impl RefUnwindSafe for EmbeddingTower
impl Send for EmbeddingTower
impl Sync for EmbeddingTower
impl Unpin for EmbeddingTower
impl UnsafeUnpin for EmbeddingTower
impl UnwindSafe for EmbeddingTower
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