pub struct IngestConfig {
pub prose: bool,
pub pdf: bool,
pub ocr: bool,
pub vision: bool,
pub audio: bool,
}Expand description
Runtime ingestion toggles (ADR-0007 [ingest]). Every toggle defaults to
on, and a toggle only gates content within a build that supports it —
turning pdf on cannot extract PDF text in a binary built without the
pdf-text feature, but turning it off suppresses that content in a binary
that has it.
The five toggles split into two groups, and the split is the ADR-0015 boundary:
prose,pdfandocrgate extraction: what is decoded from the bytes intometa.contentas aderivedfact. They contribute to the extraction cache key, because turning one off changes what extraction produces.visionandaudiogate generation: whetherroteiro media buildmay invoke a model at all. They no longer touch extraction, so they contribute nothing to the cache key — a repository that setsaudio = falsegets exactly the derived facts it would get with it on.
Fields§
§prose: boolEmbed the UTF-8 body of prose files (Markdown, plain text).
pdf: boolExtract text from PDF documents (needs the pdf-text feature).
ocr: boolOCR literal text from images (needs the image-ocr feature).
vision: boolAllow roteiro media build to describe images with a vision model (needs
the image-vision feature). Since ADR-0015 this gates generation, not
extraction: a description is never written to meta.content.
audio: boolAllow roteiro media build to transcribe spoken-word audio (needs the
audio-transcribe feature). Gates generation, as vision does.
Implementations§
Trait Implementations§
Source§impl Clone for IngestConfig
impl Clone for IngestConfig
Source§fn clone(&self) -> IngestConfig
fn clone(&self) -> IngestConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for IngestConfig
Source§impl Debug for IngestConfig
impl Debug for IngestConfig
Source§impl Default for IngestConfig
impl Default for IngestConfig
impl Eq for IngestConfig
Source§impl PartialEq for IngestConfig
impl PartialEq for IngestConfig
impl StructuralPartialEq for IngestConfig
Auto Trait Implementations§
impl Freeze for IngestConfig
impl RefUnwindSafe for IngestConfig
impl Send for IngestConfig
impl Sync for IngestConfig
impl Unpin for IngestConfig
impl UnsafeUnpin for IngestConfig
impl UnwindSafe for IngestConfig
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,
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.