pub struct EmbedderConfig {
pub model_id: String,
pub revision: String,
pub model_path: Option<PathBuf>,
}Expand description
Configuration for CandleEmbedder::load.
Fields§
§model_id: StringHuggingFace model id. Default sentence-transformers/all-MiniLM-L6-v2.
revision: StringModel revision (branch, tag, or commit). Default main.
model_path: Option<PathBuf>If set, load model.safetensors/tokenizer.json/config.json from this
directory instead of downloading — fully offline.
Trait Implementations§
Source§impl Clone for EmbedderConfig
impl Clone for EmbedderConfig
Source§fn clone(&self) -> EmbedderConfig
fn clone(&self) -> EmbedderConfig
Returns a duplicate 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 EmbedderConfig
impl Debug for EmbedderConfig
Auto Trait Implementations§
impl Freeze for EmbedderConfig
impl RefUnwindSafe for EmbedderConfig
impl Send for EmbedderConfig
impl Sync for EmbedderConfig
impl Unpin for EmbedderConfig
impl UnsafeUnpin for EmbedderConfig
impl UnwindSafe for EmbedderConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more