pub struct EmbedConfig {
pub backend: EmbedBackend,
pub model_path: Option<PathBuf>,
pub api_key: Option<String>,
pub api_url: Option<String>,
pub api_model: Option<String>,
}Expand description
Configuration for the embedding system.
Fields§
§backend: EmbedBackendWhich backend(s) to use.
model_path: Option<PathBuf>Path to a local model directory (e.g. downloaded all-MiniLM-L6-v2).
api_key: Option<String>API key for the fallback embedding API.
api_url: Option<String>API endpoint URL (default: OpenAI-compatible).
api_model: Option<String>Model name for the API (e.g. “text-embedding-3-small”).
Implementations§
Source§impl EmbedConfig
impl EmbedConfig
Trait Implementations§
Source§impl Clone for EmbedConfig
impl Clone for EmbedConfig
Source§fn clone(&self) -> EmbedConfig
fn clone(&self) -> EmbedConfig
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 moreAuto Trait Implementations§
impl Freeze for EmbedConfig
impl RefUnwindSafe for EmbedConfig
impl Send for EmbedConfig
impl Sync for EmbedConfig
impl Unpin for EmbedConfig
impl UnsafeUnpin for EmbedConfig
impl UnwindSafe for EmbedConfig
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