compass.pipeline.extraction.DocumentExtraction#
- class DocumentExtraction(workflow)[source]#
Bases:
objectWorkflow object that follows a fixed extraction pipeline
Methods
extract_from_docs(docs)Filter and extract data from a set of docs
- async extract_from_docs(docs)[source]#
Filter and extract data from a set of docs
- Parameters:
docs (
Iterable) – The documents to filter and extract structured data from.- Returns:
compass.extraction.context.ExtractionContextorNone– The context containing extracted structured data and other relevant information, orNoneif no data was extracted.