Sign inSign up

thedatacarpenter/airflow-copilot

By thedatacarpenter

โ€ขUpdated about 1 year ago

Run, monitor, and debug DAGs straight from Microsoftย Teams using natural language.

Image
Machine learning & AI
Developer tools
Data science
0

661

thedatacarpenter/airflow-copilot repository overview

โ ๐Ÿณ Airflow-Copilot Docker Usage Guide

This guide explains how to run the Airflow Copilot using Docker.

The Airflow Copilot is a GenAI-powered assistant that interacts with Apache Airflow environments. You can run it easily using Docker, either locally or in the cloud.

For in-depth configuration and deployment instructions, refer to:


โ ๐Ÿ“ฆ Pull the Docker Image

docker pull thedatacarpenter/airflow-copilot:<version>
docker pull thedatacarpenter/airflow-copilot:latest

โ ๐Ÿš€ Run the Copilot

docker run --rm -p 3978:3978 thedatacarpenter/airflow-copilot:latest

โ โš™๏ธ Required Environment Configuration

The container requires several environment variables, categorized below:

โ ๐Ÿ”ฎ LLM Provider (pick one)
LLM_MODEL_PROVIDER_NAME=OpenAI
LLM_MODEL_NAME=gpt-4o
OPENAI_API_KEY=your-openai-api-key

Other providers:

GOOGLE_GENAI_API_KEY=ai-...
ANTHROPIC_API_KEY=ai-...
GROQ_API_KEY=ai-...
โ ๐Ÿค– Azure Bot + Service Principal
MICROSOFT_APP_ID=your-bot-id
MICROSOFT_APP_PASSWORD=bot-secret
AZURE_CLIENT_ID=your-client-id
AZURE_CLIENT_SECRET=your-spn-secret
AZURE_TENANT_ID=your-tenant-id
RESOURCE_GROUP=your-resource-group
โ ๐ŸŒ Airflow REST API
AIRFLOW_BASE_URL=http://localhost:8080/
AIRFLOW_AUTH_STRATEGY=per_user
โ ๐Ÿ˜ Postgres DB
DB_URI=postgresql://<user>:<password>@<host>:<port>/<database>
โ ๐Ÿ” Security
FERNET_SECRET_KEY=your-fernet-secret-key

Generate with:

python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
โ ๐Ÿ’ฌ Conversation Summarization
MIN_MSG_TO_RETAIN=10
MIN_MSG_TO_SUMMARIZE=10
SUMMARIZATION_LLM_MODEL_PROVIDER_NAME=OpenAI
SUMMARIZATION_LLM_MODEL_NAME=gpt-4o
โ ๐ŸŒ Optional: Ngrok for Local Development
NGROK_AUTHTOKEN=your-ngrok-authtoken

โ ๐Ÿงช Example: Run with Environment

docker run -p 3978:3978   -e LLM_MODEL_PROVIDER_NAME=OpenAI   -e LLM_MODEL_NAME=gpt-4o   -e OPENAI_API_KEY=your-key   -e AIRFLOW_BASE_URL=http://localhost:8080   -e FERNET_SECRET_KEY=your-secret   thedatacarpenter/airflow-copilot:latest

โ ๐Ÿ“ Docs

๐Ÿ‘‰ Airflow Copilotโ 


โ โœ… Next Steps

Tag summary

Content type

Image

Digest

sha256:384602684โ€ฆ

Size

287.6 MB

Last updated

about 1 year ago

docker pull thedatacarpenter/airflow-copilot