pub struct ExtractorConfig {
pub model_id: String,
pub prompt_version: u32,
pub registry_major: u32,
pub mechanism: ExtractMechanism,
pub max_tokens: u32,
pub model_digest: Option<String>,
}Expand description
Configuration for an extractor: model, prompt version, mechanism. Hashes to an ExtractorId (§7.5). Only the registry MAJOR version invalidates the cache (D8); adding a predicate is a minor bump and does not force re-extraction.
Fields§
§model_id: String§prompt_version: u32§registry_major: u32§mechanism: ExtractMechanism§max_tokens: u32§model_digest: Option<String>blake3 hex digest of the model weights. Changing weights must change the extractor id (§9.5) — a silent quality change would poison the extraction cache.
Implementations§
Trait Implementations§
Source§impl Clone for ExtractorConfig
impl Clone for ExtractorConfig
Source§fn clone(&self) -> ExtractorConfig
fn clone(&self) -> ExtractorConfig
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 ExtractorConfig
impl Debug for ExtractorConfig
Source§impl<'de> Deserialize<'de> for ExtractorConfig
impl<'de> Deserialize<'de> for ExtractorConfig
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 ExtractorConfig
impl RefUnwindSafe for ExtractorConfig
impl Send for ExtractorConfig
impl Sync for ExtractorConfig
impl Unpin for ExtractorConfig
impl UnsafeUnpin for ExtractorConfig
impl UnwindSafe for ExtractorConfig
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