-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
I'm using Ubuntu 24.04.4 LTS.
uv is a fast Python package manager, written in Rust. Installation instructions in detail are available here. It enables you to fetch dependencies (libraries) from their official distribution sources faster than when using pip alone.
curl -LsSf https://astral.sh/uv/install.sh | sh
mkdir airflow
uv venv --python=3.12
source .venv/bin/activate
uv pip install "apache-airflow[celery]==3.2.2" --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-3.2.2/constraints-3.12.txt"
uv pip install apache-airflow-providers-openai
uv pip install apache-airflow-providers-common-ai
airflow standalone
Note: On first run, the admin password will be echoed to terminal. After the first run, you can find it in the file simple_auth_manager_passwords.json.generated in the directory
9. Create Pydantic AI connection to your OpenAI model compliant LLM via the Apache Airflow UI at http://localhost:8080 (do not use "standalone" for production), using the following:
- Connection Type: Pydantic AI
- Connection ID: openai_default
- Description: [optional]
- Host: http://127.0.0.1:11434/v1
- API Key: [not required but apparently cannot be left blank]
- Extra JSON:
{ "extra": { "model": "openai:nemotron-3-nano:4b" } }
Note: "model" in extra JSON must be prefixed with "openai:", but you can use whatever model is desired, as long as it supports "thinking"
Note: The default path for directed acyclic graphs (DAG) is "./dags/".