Struct langchain_rust::embedding::InitOptions
source · pub struct InitOptions {
pub model_name: EmbeddingModel,
pub execution_providers: Vec<ExecutionProviderDispatch>,
pub max_length: usize,
pub cache_dir: PathBuf,
pub show_download_progress: bool,
}
Expand description
Options for initializing the TextEmbedding model
Fields§
§model_name: EmbeddingModel
§execution_providers: Vec<ExecutionProviderDispatch>
§max_length: usize
§cache_dir: PathBuf
§show_download_progress: bool
Trait Implementations§
source§impl Clone for InitOptions
impl Clone for InitOptions
source§fn clone(&self) -> InitOptions
fn clone(&self) -> InitOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InitOptions
impl Debug for InitOptions
source§impl Default for InitOptions
impl Default for InitOptions
source§fn default() -> InitOptions
fn default() -> InitOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InitOptions
impl RefUnwindSafe for InitOptions
impl Send for InitOptions
impl Sync for InitOptions
impl Unpin for InitOptions
impl UnwindSafe for InitOptions
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