Skip to main content

embedding_dim_from_env

Function embedding_dim_from_env 

Source
pub fn embedding_dim_from_env() -> Option<usize>
Expand description

Reads and validates the env-var override. Values outside [8, 4096] are rejected (returns None) so a typo cannot produce degenerate vectors or multi-MB embedding rows.