Examples¶
Every operator, decorator, and integration in this provider has a runnable Dag under example_dags. This page groups them by scenario. Guides embed the same Dags inline where a step-by-step walkthrough exists; the rest are linked directly to source below.
New to the provider? Start with Common AI Operators to pick an operator, then come back here for a worked example of the pattern you need.
Single-prompt tasks¶
Guide |
What it shows |
|---|---|
|
|
|
|
|
|
|
|
|
Agents & tools¶
Guide |
What it shows |
|---|---|
|
|
Loading |
|
Connecting an agent to an MCP server through an Airflow connection. |
|
Adding a human-in-the-loop review gate to agent output. |
|
A LangChain ReAct agent that decides its own tool calls, composed with |
Retrieval & document processing¶
Guide |
What it shows |
|---|---|
Parsing PDF, DOCX, CSV, and JSON into |
|
Calling |
|
|
|
|
End-to-end scenarios¶
Production-shaped Dags that combine several of the patterns above into one pipeline. See End-to-End Pipelines for the architecture behind each one.
Example |
What it shows |
|---|---|
Three RAG shapes with LlamaIndex: a single load-embed-retrieve-answer Dag, a production-shaped split into scheduled indexing plus on-demand query Dags, and multi-source RAG. |
|
SEC 10-K financial analysis against live EDGAR filings: one Dag indexes filings on a schedule, the other decomposes a comparison question at runtime and fans out retrieval with Dynamic Task Mapping. One variant per RAG library. |
|
Natural-language querying of a CSV via |
|
The same survey data, analyzed by fanning a multi-dimensional research question into an agentic multi-query synthesis pipeline. |
|
The same use case – tracking Airflow Improvement Proposal progress – solved two ways, a deterministic pipeline and an autonomous agent, to compare the tradeoff. |
Reliability¶
Guide |
What it shows |
|---|---|
Classifying task failures with an LLM to decide retry, fail, or delay. Source: example_llm_retry_policy.py. |