airflow.providers.common.ai.example_dags.example_document_loader¶
Example DAGs demonstrating DocumentLoaderOperator usage patterns.
Each DAG covers a single pattern. The hook docs reference these via
.. exampleinclude:: so the runnable snippets stay in sync.
Functions¶
Parse a single local file -- the operator infers the format from the suffix. |
|
Walk a directory recursively, only picking up PDFs and Markdown. |
|
Feed raw bytes from an upstream hook (e.g. an S3 download) into the parser. |
|
Read an array of records, embedding only the |
|
Read PDFs directly from S3 -- no separate download step. |
Module Contents¶
- airflow.providers.common.ai.example_dags.example_document_loader.example_document_loader_basic()[source]¶
Parse a single local file – the operator infers the format from the suffix.
- airflow.providers.common.ai.example_dags.example_document_loader.example_document_loader_directory()[source]¶
Walk a directory recursively, only picking up PDFs and Markdown.
- airflow.providers.common.ai.example_dags.example_document_loader.example_document_loader_bytes()[source]¶
Feed raw bytes from an upstream hook (e.g. an S3 download) into the parser.