Skip to main content

extraction_for

Function extraction_for 

Source
pub fn extraction_for(content_type: &str, raw: bool) -> Extraction
Expand description

Which extraction path a content type takes.

Upstream leaves non-HTML handling undefined. Here a binary document is routed to the document extractor so a linked PDF becomes prompt text rather than bytes the model cannot read — the difference between fetch being useful for context building and merely fetching.