OptionalcollectWhether to read document-level properties (title/author/dates) from the source container and
return them as documentMetadata. Off by default: container parsing has a real per-file cost
(zip/PDF re-parse), so callers opt in only when the owning knowledge base declares metadata fields.
Honored only by file-based extraction (which owns the original buffer for every format);
URL-based extraction ignores it and never returns documentMetadata.
OptionaldiscardWhether Squid keeps or discards the original file.
Keeping the original file allows reprocessing and the ability for the user to download it later.
Defaults to false.
OptionalextractWhether to extract embedded images from the document.
OptionalimageMinimum width/height (in pixels) of images to extract. Smaller images will be ignored.
OptionalpageSpecific page indexes to extract from the document (0-based). If omitted, all pages are extracted.
OptionalpreferredThe preferred method for extracting data from the document.
OptionaltextFormat hint for text-based extraction (markdown / HTML). When omitted, the format is detected from the content. Only consulted by extractors that handle text input.
Options for customizing how data is extracted from a document.