Registry /
llm-agents / apache-airflow-providers-cohere
Install & Compatibility
Where this runs
tested against v1.6.6 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 4.964s · 310.4MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 25.7s · import 4.608s · 293MB
303MB installed
● package 303MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
CohereHook
✓ from airflow.providers.cohere.hooks.cohere import CohereHook
✗ from airflow.providers.cohere.hooks.cohere_hook import CohereHook
Old import path had '_hook' suffix, deprecated in v1.0.0
CohereEmbeddingOperator
✓ from airflow.providers.cohere.operators.embedding import CohereEmbeddingOperator
✗ from airflow.providers.cohere.operators.cohere_embedding import CohereEmbeddingOperator
Operator module renamed; use 'embedding'
Create a DAG with a Cohere embedding operator. Requires a Cohere connection in Airflow.
from airflow import DAG
from airflow.providers.cohere.hooks.cohere import CohereHook
from airflow.providers.cohere.operators.embedding import CohereEmbeddingOperator
from datetime import datetime
with DAG('cohere_demo', start_date=datetime(2024,1,1), schedule=None) as dag:
embed = CohereEmbeddingOperator(
task_id='embed_text',
conn_id='cohere_default',
text='Hello, world!',
model='embed-english-v3.0',
input_type='search_document'
)
airflow --version
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'airflow.providers.cohere'
The provider package is not installed.
fixpip install apache-airflow-providers-cohere
ImportError: cannot import name 'CohereHook' from 'airflow.providers.cohere.hooks.cohere'
The hook class name changed or path is wrong. In older versions it was 'CohereHook' in 'cohere_hook' module.
fixUse correct import: from airflow.providers.cohere.hooks.cohere import CohereHook
AttributeError: 'CohereHook' object has no attribute 'get_conn'
The hook API changed; get_conn was removed in place of a 'conn' property.
fixUse hook.conn instead of hook.get_conn()
Upgrade
Version history
1.6.6latest on PyPI · released Jun 7, 2026
Audit
Dependencies
apache-airflowoptionalRequired: provider runs within Airflow
cohererequiredRequired: official Cohere Python SDK