File Type Detection

File Type Detection Processor #

Detects the MIME type and content category of a document based on its file extension. Documents that already have this information set are skipped.

After processing, each document will carry:

FieldExample valueDescription
MIME typeimage/pngStandard MIME type
Content typeimageThe primary type portion of the MIME type
Content categoryimage, document, textA high-level category

Configuration #

ParameterTypeRequiredDefaultDescription
message_fieldstringNomessagesPipeline context key for the input messages
output_queueobjectNonullQueue to push processed documents to

Example #

- file_type_detection:
    output_queue:
      name: "documents_typed"
Edit Edit this page