pub struct EmbeddingConfig {
pub enabled: bool,
pub backend: String,
pub provider: String,
pub model: String,
pub api_key_env: String,
pub base_url: Option<String>,
pub dimension: usize,
pub timeout_secs: u64,
pub local_model_path: Option<String>,
pub local_tokenizer_path: Option<String>,
}Expand description
Embedding configuration
Fields§
§enabled: boolEnable embeddings
backend: StringEmbedding backend (local or openai-compatible)
provider: StringEmbedding provider/profile (inherit, openai, gemini, openrouter,
vllm, lmstudio, llamacpp, custom, etc.)
model: StringEmbedding model name
api_key_env: StringAPI key environment variable name for remote embedding providers
base_url: Option<String>Base URL override for remote or local OpenAI-compatible runtimes
dimension: usizeEmbedding dimension
timeout_secs: u64Request timeout for remote embedding providers
local_model_path: Option<String>Path to a local ONNX embedding model
local_tokenizer_path: Option<String>Path to the tokenizer directory for local ONNX embeddings
Trait Implementations§
Source§impl Clone for EmbeddingConfig
impl Clone for EmbeddingConfig
Source§fn clone(&self) -> EmbeddingConfig
fn clone(&self) -> EmbeddingConfig
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 EmbeddingConfig
impl Debug for EmbeddingConfig
Source§impl Default for EmbeddingConfig
impl Default for EmbeddingConfig
Source§impl<'de> Deserialize<'de> for EmbeddingConfig
impl<'de> Deserialize<'de> for EmbeddingConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EmbeddingConfig
impl RefUnwindSafe for EmbeddingConfig
impl Send for EmbeddingConfig
impl Sync for EmbeddingConfig
impl Unpin for EmbeddingConfig
impl UnsafeUnpin for EmbeddingConfig
impl UnwindSafe for EmbeddingConfig
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