pub struct ModelsConfig {
pub embedding: String,
pub code_embedding: String,
pub cache_dir: Option<PathBuf>,
pub voyage_api_key: Option<String>,
pub voyage_output_dimension: u32,
pub voyage_output_dtype: String,
pub voyage_timeout_secs: u64,
}Expand description
[models] — ML model selection and Voyage API settings.
Fields§
§embedding: StringGeneral corpus embedding model name (e.g. “voyage-context-3”).
code_embedding: StringCode-specialised embedding model name (dual embeddings, D1).
cache_dir: Option<PathBuf>Override for the on-disk model cache directory. When None, the
discoverer resolves to $XDG_DATA_HOME/midnight-manual/models/.
voyage_api_key: Option<String>Voyage API key (BYOK). Resolved with flag > env > config precedence; this is the config-file fallback only.
voyage_output_dimension: u32Voyage output dimension (Matryoshka): 256/512/1024/2048.
voyage_output_dtype: StringVoyage output dtype: “float” | “int8” | “uint8” | “binary” | “ubinary”.
voyage_timeout_secs: u64Per-request timeout (seconds) for BYOK Voyage embedding calls. voyage-code-3
embedding of a few-hundred-chunk batch can take ~38s+, so the default sits
well above the old 30s ceiling. Resolved with flag > env > config precedence.
Trait Implementations§
Source§impl Clone for ModelsConfig
impl Clone for ModelsConfig
Source§fn clone(&self) -> ModelsConfig
fn clone(&self) -> ModelsConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ModelsConfig
impl Debug for ModelsConfig
Source§impl Default for ModelsConfig
impl Default for ModelsConfig
Source§impl<'de> Deserialize<'de> for ModelsConfig
impl<'de> Deserialize<'de> for ModelsConfig
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>,
impl Eq for ModelsConfig
Source§impl PartialEq for ModelsConfig
impl PartialEq for ModelsConfig
Source§fn eq(&self, other: &ModelsConfig) -> bool
fn eq(&self, other: &ModelsConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelsConfig
impl Serialize for ModelsConfig
impl StructuralPartialEq for ModelsConfig
Auto Trait Implementations§
impl Freeze for ModelsConfig
impl RefUnwindSafe for ModelsConfig
impl Send for ModelsConfig
impl Sync for ModelsConfig
impl Unpin for ModelsConfig
impl UnsafeUnpin for ModelsConfig
impl UnwindSafe for ModelsConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.