Skip to main content

InitOptions

Type Alias InitOptions 

Source
pub type InitOptions = InitOptionsWithLength<EmbeddingModel>;
Expand description

Options for initializing the TextEmbedding model

Aliased Type§

pub struct InitOptions {
    pub model_name: EmbeddingModel,
    pub execution_providers: Vec<ExecutionProviderDispatch>,
    pub cache_dir: PathBuf,
    pub show_download_progress: bool,
    pub max_length: usize,
}

Fields§

§model_name: EmbeddingModel§execution_providers: Vec<ExecutionProviderDispatch>§cache_dir: PathBuf§show_download_progress: bool§max_length: usize