pub struct FastembedEmbedderOpts {
pub cache_dir: Option<PathBuf>,
pub show_download_progress: bool,
pub execution: ExecutionPreference,
}Expand description
Construction options for FastembedEmbedder.
Default resolves cache_dir in priority order:
$LUNARIS_FASTEMBED_CACHE_DIRif set (operator-controllable for CI / sandboxes);~/.cache/lunaris/models/fastembed/(shares parent with the candle cache);./lunaris/models/fastembed/as a last-ditch fallback whendirs::cache_dirreturnsNone(rare — only on platforms without a HOME concept).
show_download_progress defaults to false so server processes don’t
spew progress bars into structured logs. Set true for local CLI use.
Fields§
§cache_dir: Option<PathBuf>Filesystem path where fastembed stores auto-downloaded ONNX weights.
None means “resolve via the env-override → dirs::cache_dir() chain
at Default time”; once Default runs this is always Some(...).
show_download_progress: boolForwarded to fastembed::InitOptions::with_show_download_progress.
Default false to keep server logs clean.
execution: ExecutionPreferenceORT execution-provider preference (Phase 20 Plan 20-01). Default
reads $LUNARIS_FASTEMBED_EXECUTION; unknown values resolve to Cpu
with a tracing::warn. Set programmatically when callers want to
override the environment.
Trait Implementations§
Source§impl Clone for FastembedEmbedderOpts
impl Clone for FastembedEmbedderOpts
Source§fn clone(&self) -> FastembedEmbedderOpts
fn clone(&self) -> FastembedEmbedderOpts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FastembedEmbedderOpts
impl Debug for FastembedEmbedderOpts
Auto Trait Implementations§
impl Freeze for FastembedEmbedderOpts
impl RefUnwindSafe for FastembedEmbedderOpts
impl Send for FastembedEmbedderOpts
impl Sync for FastembedEmbedderOpts
impl Unpin for FastembedEmbedderOpts
impl UnsafeUnpin for FastembedEmbedderOpts
impl UnwindSafe for FastembedEmbedderOpts
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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