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]): which blob content is
extracted for embedding. 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.
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: boolDescribe images with a vision model (needs the image-vision feature).
audio: boolTranscribe spoken-word audio (needs the audio-transcribe feature).
Trait Implementations§
Source§impl Clone for IngestConfig
impl Clone for IngestConfig
Source§fn clone(&self) -> IngestConfig
fn clone(&self) -> IngestConfig
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 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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.