← Provider Docs DagForge Docs
Airflow Summit 2026 is coming August 31 - September 2 in Austin, TX. Register now to secure your spot!

airflow.providers.common.ai.example_dags.example_langchain_hook

Example DAGs demonstrating LangChainHook usage patterns.

Each DAG covers a single pattern: chat-only, embedding-only, dual chat + embedding, and separate connections for chat and embeddings. For a richer end-to-end demo (ReAct agent, HITL review, vector retrieval), see example_langchain_tool_agent.py.

Functions

example_langchain_chat()

example_langchain_embedding()

example_langchain_chat_and_embedding()

One hook instance serves both chat and embeddings when both models are set.

example_langchain_different_conns()

Use separate connections when chat and embeddings live on different API keys.

Module Contents

airflow.providers.common.ai.example_dags.example_langchain_hook.example_langchain_chat()[source]
airflow.providers.common.ai.example_dags.example_langchain_hook.example_langchain_embedding()[source]
airflow.providers.common.ai.example_dags.example_langchain_hook.example_langchain_chat_and_embedding()[source]

One hook instance serves both chat and embeddings when both models are set.

airflow.providers.common.ai.example_dags.example_langchain_hook.example_langchain_different_conns()[source]

Use separate connections when chat and embeddings live on different API keys.

Was this entry helpful?