An Autonomous AI Data Engineering Agent that transforms natural-language requests into validated data engineering artifacts.
The AI Data Pipeline Generator is an AI-powered data engineering platform that interprets natural-language objectives, determines the skills required to complete the task, retrieves relevant dataset metadata, generates engineering artifacts, validates the results, and optionally commits them to GitHub.
- Overview
- Problem Statement
- Features
- Architecture
- Agent Execution Pipeline
- System Workflow
- Tech Stack
- Design Decisions
- Installation
- Configuration
- Running the Application
- API Reference
- Example Usage
- Project Structure
- Security
- Validation
- Deployment
- Continuous Integration & Continuous Deployment (CI/CD)
- Roadmap
- License
AI Data Pipeline Generator is an autonomous AI Data Engineering Agent that transforms natural-language engineering requests into validated data engineering artifacts.
Instead of manually selecting tools and executing individual generation steps, users describe their objective and allow the agent to determine the workflow required to complete it.
The agent follows a structured execution model:
Natural-Language Request
β
βΌ
βββββββββββββββββββββββ
β Planning Agent β
β β
β Determine required β
β skills β
ββββββββββββ¬βββββββββββ
β
βΌ
βββββββββββββββββββββββ
β Skill Execution β
β β
β Metadata β
β Generation β
β Validation β
β Git β
ββββββββββββ¬βββββββββββ
β
βΌ
βββββββββββββββββββββββ
β Artifact Delivery β
β β
β Generated artifact β
β Validation results β
β Optional Git commit β
βββββββββββββββββββββββ
### Key Capabilities
- π€ Interpret natural-language data engineering requests.
- π§ Automatically construct an execution plan.
- π Retrieve dataset metadata from DataHub.
- ποΈ Generate SQL artifacts.
- π¬οΈ Generate Apache Airflow DAGs.
- π§© Generate dbt artifacts.
- π Generate YAML configuration.
- π Generate README/project documentation.
- ποΈ Generate Terraform infrastructure.
- π Generate IAM security policies.
- π‘οΈ Validate generated artifacts before successful completion.
- π Optionally commit generated artifacts to Git.
- π¦ Provide generated artifacts for download.
## Problem Statement
Modern data engineering involves building and maintaining a wide variety of pipeline components, including workflow orchestration, SQL transformations, configuration files, security policies, documentation, and deployment assets. Although these artifacts often follow established patterns, they are still created manually, resulting in repetitive work, inconsistent implementations, and slower development cycles.
At the same time, organizations increasingly rely on metadata platforms such as DataHub to maintain accurate information about datasets, schemas, ownership, lineage, and governance. However, this valuable metadata is rarely integrated into the software development process, forcing engineers to manually reference schemas while writing pipelines.
Recent advances in Large Language Models (LLMs) have demonstrated their ability to generate code from natural language. However, generic AI-generated code often lacks awareness of an organization's actual metadata, governance requirements, and production standards, making the generated output unreliable without additional context and validation.
The AI Data Pipeline Generator addresses these challenges by combining enterprise metadata with AI-assisted code generation. Instead of generating generic templates, the platform enriches AI prompts using metadata retrieved from DataHub, validates the generated artifacts, produces supporting security policies, packages the results for delivery, and optionally commits the generated assets directly to GitHub.
By reducing repetitive engineering work while leveraging trusted metadata, the platform enables engineers to prototype, validate, and deliver production-oriented data pipeline components significantly faster.
## Features
The AI Data Pipeline Generator combines enterprise metadata, artificial intelligence, and cloud-native tooling to automate the generation of production-ready data engineering artifacts.
### π§ Autonomous Skill Orchestration
The system uses an autonomous planning layer to determine which engineering skills are required for a user's request.
Rather than requiring the user to manually select a sequence of operations, the planner produces an execution plan.
For example:
```text
User:
"Generate an Airflow DAG for the fct_users_created table."
β
βΌ
Execution Plan:
1. Metadata Lookup
2. Generate Airflow DAG
3. Validate Artifact
User:
"Generate Terraform infrastructure for fct_users_created
and commit it to Git."
β
βΌ
Execution Plan:
1. Metadata Lookup
2. Generate Terraform
3. Validate Artifact
4. Git CommitThe AI Data Pipeline Generator uses a modular agent architecture in which a planning layer determines the skills required to execute a natural-language engineering request.
flowchart LR
A["π€ User"] --> B["π₯ Streamlit UI"]
B --> C["β‘ FastAPI Backend"]
C --> D["π§ Planning Agent"]
D --> E["π Metadata Lookup"]
D --> F["ποΈ SQL Generation"]
D --> G["π¬οΈ Airflow Generation"]
D --> H["π§© dbt Generation"]
D --> I["π YAML Generation"]
D --> J["π README Generation"]
D --> K["ποΈ Terraform Generation"]
D --> L["π IAM Generation"]
D --> M["π‘οΈ Validation"]
D --> N["π Git Commit"]
E --> O["π DataHub"]
E --> P["π¦ Execution Context"]
F --> P
G --> P
H --> P
I --> P
J --> P
K --> P
L --> P
P --> Q["π§ Groq LLM"]
Q --> M
M --> R["π¦ Generated Artifact"]
M --> S["π Validation Result"]
N --> T["π Git"]
R --> B
S --> B
T --> B
| Component | Responsibility |
|---|---|
| Streamlit Frontend | Provides the interactive interface for metadata exploration and agent execution. |
| FastAPI Backend | Exposes the API and coordinates the agent execution workflow. |
| Planning Agent | Interprets the user's request and determines the required execution steps. |
| Skill System | Contains modular engineering capabilities such as metadata lookup, generation, validation, and Git operations. |
| DataHub | Provides dataset metadata used as context during generation. |
| Groq LLM | Provides LLM inference for planning and artifact generation. |
| Validation Engine | Checks generated artifacts against artifact-specific validation rules. |
| IAM Generator | Generates security policies associated with generated artifacts. |
| Git Integration | Optionally commits generated artifacts to Git. |
| Generated Artifact Store | Stores generated artifacts under the generated/ directory. |
Every generation request follows the same high-level process:
Natural-Language Request
β
βΌ
ββββββββββββββββββββββ
β Planning Agent β
βββββββββββ¬βββββββββββ
β
βΌ
Execution Plan
β
βΌ
ββββββββββββββββββββββ
β Skill Executor β
βββββββββββ¬βββββββββββ
β
ββββββ΄ββββββ
βΌ βΌ
Metadata Generation
Lookup Skill
β β
ββββββ¬ββββββ
βΌ
Validation
β
βΌ
Delivery / Git
The key architectural principle is that the LLM does not directly control the entire application workflow. The planning layer produces a structured execution plan, while the application executes the corresponding skills.
This separation provides clearer control over:
- Which operations are executed
- The order in which they execute
- Validation requirements
- Git operations
- Error handling
- Future skill expansion
The workflow is dynamically determined by the planning agent.
sequenceDiagram
actor User
participant UI as Streamlit
participant API as FastAPI
participant Planner as Planning Agent
participant Skills as Skill Executor
participant DH as DataHub
participant LLM as Groq LLM
participant VAL as Validator
participant Git as Git
User->>UI: Submit natural-language request
UI->>API: POST /generate
API->>Planner: Generate execution plan
Planner-->>API: Structured skill plan
API->>Skills: Execute planned skills
Skills->>DH: Retrieve metadata
DH-->>Skills: Table metadata
Skills->>LLM: Generate artifact using context
LLM-->>Skills: Generated artifact
Skills->>VAL: Validate artifact
VAL-->>Skills: Validation result
alt Git commit requested
Skills->>Git: Commit generated artifact
Git-->>Skills: Commit identifier
end
Skills-->>API: Execution results
API-->>UI: Artifact + validation + commit
UI-->>User: Display results
The AI Data Pipeline Generator is built using a modern, cloud-native technology stack designed for rapid AI development, modularity, scalability, and maintainability.
| Category | Technology | Purpose |
|---|---|---|
| Programming Language | Python | Primary language for backend services and AI orchestration. |
| Backend Framework | FastAPI | High-performance REST API framework used to orchestrate pipeline generation. |
| Frontend | Streamlit | Interactive web interface for metadata exploration and pipeline generation. |
| AI / LLM | Groq API | Generates production-ready data engineering artifacts using metadata-aware prompts. |
| Metadata Platform | DataHub | Supplies dataset metadata, schemas, lineage, ownership, and governance information. |
| Version Control | Git & GitHub | Source control and collaborative software development. |
| GitHub Integration | GitHub Contents API | Uploads generated artifacts directly into repository commits. |
| Deployment | Render | Cloud platform hosting the FastAPI backend. |
| Frontend Hosting | Streamlit Community Cloud / Local | Hosts the user interface for interacting with the platform. |
| Validation | Custom Validation Engine | Verifies generated artifacts before delivery. |
| Security | IAM Policy Generator | Produces least-privilege AWS IAM policies alongside generated pipelines. |
| Packaging | Python ZipFile | Bundles multiple generated artifacts into downloadable ZIP archives. |
| Environment Management | python-dotenv | Secure loading of environment variables and API credentials. |
| HTTP Client | Requests | Communicates with external APIs including DataHub, GitHub, and Groq. |
| Continuous Integration | GitHub Actions | Executes automated tests and validates code changes before merging. |
The project intentionally combines technologies commonly used in modern data engineering and cloud-native software development.
- FastAPI was selected for its asynchronous performance, automatic OpenAPI documentation, and clean dependency injection model.
- Streamlit enables rapid development of an intuitive frontend without requiring a dedicated JavaScript framework.
- DataHub provides enterprise metadata that improves the accuracy and relevance of AI-generated artifacts.
- Groq offers low-latency inference, enabling fast generation of production-ready pipeline components.
- GitHub Contents API enables generated artifacts to be version-controlled immediately after creation.
- Render provides a lightweight cloud deployment platform suitable for containerized Python applications.
The architecture of the AI Data Pipeline Generator was guided by principles of modularity, maintainability, and production-inspired software engineering. Rather than optimizing solely for rapid prototyping, the project was designed to demonstrate how AI, metadata platforms, cloud-native services, and modern APIs can be integrated into a cohesive data engineering workflow.
FastAPI was selected as the backend framework because it provides:
- High-performance asynchronous request handling.
- Automatic OpenAPI documentation.
- Strong type validation using Pydantic.
- Modern dependency injection patterns.
- Excellent support for REST API development.
These capabilities make FastAPI well-suited for orchestrating multiple external services, including DataHub, Groq, and the GitHub API.
Rather than introducing a dedicated frontend framework such as React or Vue, Streamlit was chosen to prioritize rapid development and experimentation.
Benefits include:
- Minimal frontend boilerplate.
- Native Python development.
- Fast iteration during AI workflow development.
- Easy deployment for demonstration and portfolio purposes.
This decision allows development effort to focus on backend architecture and AI orchestration rather than frontend complexity.
Large Language Models perform significantly better when provided with structured context.
Instead of relying solely on user prompts, the platform retrieves metadata from DataHub, including:
- Dataset schemas
- Column definitions
- Ownership information
- Tags
- Lineage
This metadata is incorporated into prompt construction, enabling the AI to generate artifacts that more closely reflect the underlying data model.
Generated artifacts are not automatically considered successful simply because the LLM returned code.
The agent can include an artifact validation step in the execution plan. The validator applies artifact-specific checks before the workflow is considered successful.
For example, Terraform validation checks for meaningful Terraform configuration blocks such as:
resourcemoduledata
This provides a deterministic validation layer between AI generation and artifact delivery.
Generated artifacts can be committed directly to GitHub using the GitHub Contents API.
This approach provides:
- Version history
- Auditability
- Traceability
- Collaboration
- Repository-backed artifact storage
Rather than existing only temporarily within the application, generated outputs become part of a version-controlled software development workflow.
The application is organized into independent modules responsible for:
- Metadata retrieval
- Prompt engineering
- AI generation
- Validation
- Security policy generation
- GitHub integration
- Artifact packaging
This separation of concerns improves maintainability and simplifies future feature development.
Security considerations were incorporated throughout the project.
Examples include:
- Least-privilege IAM policy generation.
- Environment variable management using
.env. - GitHub Personal Access Token authentication.
- Validation before artifact delivery.
- Repository-based version control for generated assets.
The application was designed around independently deployable components.
- FastAPI serves backend APIs.
- Streamlit provides the frontend.
- Render hosts backend services.
- GitHub Actions automates continuous integration.
- GitHub serves as the artifact repository.
This modular architecture allows components to evolve independently while remaining loosely coupled.
Before installing the project, ensure the following software is available on your system.
| Requirement | Recommended Version |
|---|---|
| Python | 3.11+ |
| Git | Latest |
| pip | Latest |
| Virtual Environment | venv |
| DataHub (Optional) | Latest |
| GitHub Account | Required for GitHub integration |
git clone https://github.com/pmman-sudo/AI-Data-Pipeline-Generator.git
cd AI-Data-Pipeline-GeneratorLinux / macOS
python3 -m venv venv
source venv/bin/activateWindows
python -m venv venv
venv\Scripts\activatepip install -r requirements.txtConfirm that the backend dependencies were installed correctly.
python -c "import fastapi; print('FastAPI Installed')"Confirm the frontend dependencies.
python -c "import streamlit; print('Streamlit Installed')"Once these steps have completed successfully, continue to the Configuration section to configure API keys and environment variables.
The AI Data Pipeline Generator uses environment variables to securely manage API keys, service endpoints, and application configuration.
Create a file named .env in the project root.
AI-Data-Pipeline-Generator/
βββ app/
βββ generated/
βββ tests/
βββ docs/
βββ examples/
βββ scripts/
βββ streamlit_app.py
βββ requirements.txt
βββ pytest.ini
βββ .gitignore
βββ .env
# ==============================
# Groq API
# ==============================
GROQ_API_KEY=your_groq_api_key
# ==============================
# GitHub Integration
# ==============================
GITHUB_TOKEN=your_github_personal_access_token
# ==============================
# DataHub
# ==============================
DATAHUB_GMS=http://localhost:8080
# ==============================
# Application
# ==============================
ENVIRONMENT=development| Variable | Required | Description |
|---|---|---|
GROQ_API_KEY |
β | API key used to generate AI-powered pipeline artifacts. |
GITHUB_TOKEN |
β | Personal Access Token used to upload generated artifacts to GitHub. |
DATAHUB_GMS |
Optional | URL of the DataHub Metadata Service (GMS). If omitted, metadata write-back is skipped. |
ENVIRONMENT |
Optional | Application environment (e.g., development, production). |
To enable automatic commits of generated artifacts:
- Log in to GitHub.
- Open Settings β Developer settings β Personal access tokens.
- Generate a new token.
- Grant the required repository permissions.
- Copy the generated token.
- Set the token as the value of
GITHUB_TOKENin your.envfile.
- Create a Groq account.
- Generate an API key from the Groq dashboard.
- Add the key to the
.envfile as:
GROQ_API_KEY=your_api_keyIf a DataHub instance is available, configure the Metadata Service endpoint:
DATAHUB_GMS=http://localhost:8080If no DataHub instance is configured, the application continues to function, but metadata write-back features will be disabled.
- Never commit
.envfiles to version control. - Rotate API keys if they are accidentally exposed.
- Use repository secrets for CI/CD pipelines.
- Grant GitHub Personal Access Tokens only the minimum permissions required.
- Store production credentials using your deployment platform's secret management system rather than directly in source code.
Once the project has been installed and configured, start the backend and frontend services.
From the project root, run:
uvicorn app.main:app --reloadThe backend will be available at:
http://localhost:8000
Interactive API documentation can be accessed at:
http://localhost:8000/docs
Alternative OpenAPI documentation:
http://localhost:8000/redoc
Open a second terminal window.
Activate the virtual environment if it is not already active.
Run:
streamlit run streamlit_app.pyThe frontend will be available at:
http://localhost:8501
When the Streamlit application loads, it automatically checks the backend health endpoint.
A successful connection displays:
β
Backend Connected
If the backend is unavailable, the application displays:
β Cannot connect to FastAPI backend
Ensure the FastAPI server is running before using the frontend.
- Enter the target DataHub table name.
Example:
fct_users_created or leave it as the default customer_orders
- Describe the pipeline to generate.
Example:
Generate a production-ready Apache Airflow DAG for the
fct_users_created table using the available DataHub metadata.
Include appropriate load, transformation, and validation stages. Validate the generated artifact, commit it to GitHub if validation passes, and prepare it for download.
- Click Execute AI Agent.
After generation completes, the application displays:
- Generated artifact(s)
- Validation results
- Generated IAM security policy
- GitHub commit hash (if enabled)
- Download link for generated files
For complete pipeline generation, a downloadable ZIP archive containing all generated artifacts is provided.
π€ USER
β
β Natural-language request
βΌ
βββββββββββββββββββββββ
β STREAMLIT FRONTEND β
β Port 8501 β
β β
β β’ Metadata Explorer β
β β’ Agent Interface β
β β’ Results / Downloadβ
ββββββββββββ¬βββββββββββ
β
β HTTP / JSON
βΌ
βββββββββββββββββββββββ
β FASTAPI BACKEND β
β Port 8000 β
β β
β /generate β
β /health β
β /schema/{table} β
ββββββββββββ¬βββββββββββ
β
βΌ
ββββββββββββββββββββββββββββββββ
β π§ AI AGENT CORE β
β β
β ββββββββββββββββββββββββββ β
β β AI PLANNER β β
β β β β
β β Natural Language β Plan β β
β βββββββββββββ¬βββββββββββββ β
β β β
β βΌ β
β ββββββββββββββββββββββββββ β
β β EXECUTOR β β
β β β β
β β Executes skills in β β
β β dependency order β β
β βββββββββββββ¬βββββββββββββ β
ββββββββββββββββΌββββββββββββββββ
β
βββββββββββββββββΌβββββββββββββββββ
β β β
βΌ βΌ βΌ
ββββββββββββββ ββββββββββββββ ββββββββββββββ
β DATAHUB β β GROQ LLM β β SKILLS β
β β β β β β
β Metadata β β AI β β SQL β
β Schema β β Generation β β Airflow β
β Lineage β β Planning β β dbt β
β Owners β β β β YAML β
β Tags β β β β Terraform β
ββββββββββββββ ββββββββββββββ β IAM β
β README β
βββββββ¬βββββββ
β
βΌ
ββββββββββββββββββββββ
β π‘οΈ VALIDATION β
β β
β Artifact validationβ
β Security checks β
β Generation checks β
βββββββββββ¬βββββββββββ
β
βββββββββββββ΄ββββββββββββ
β β
βΌ βΌ
ββββββββββββββββββ ββββββββββββββββββ
β π¦ ARTIFACTS β β π GITHUB β
β β β β
β Airflow β β Commit β
β Terraform β β Versioning β
β SQL β β CI/CD β
β dbt β β β
β YAML β β β
β IAM β β β
ββββββββββββββββββ ββββββββββββββββββ
β
βΌ
ββββββββββββββββββ
β β¬οΈ DOWNLOAD β
β β
β Generated β
β artifacts β
ββββββββββββββββββ
To stop either service, press:
Ctrl + C
in the corresponding terminal.
Verify that the FastAPI application has started successfully.
uvicorn app.main:app --reloadConfirm that:
- FastAPI is running.
API_URLpoints to the correct backend.- Firewall settings are not blocking localhost connections.
Verify:
GITHUB_TOKENis configured.- The Personal Access Token has repository permissions.
- The configured repository owner and branch are correct.
If DataHub is not running, the application will still generate artifacts using the provided prompt, but metadata-aware generation and metadata write-back features will be unavailable.
The FastAPI backend exposes RESTful endpoints for metadata retrieval, AI-powered artifact generation, health monitoring, and artifact downloads.
The interactive API documentation is automatically generated by FastAPI and is available at:
http://localhost:8000/docs
Alternative documentation:
http://localhost:8000/redoc
Local Development
http://localhost:8000
Production (Example)
https://your-render-backend.onrender.com
Verifies that the backend service is running.
GET /health{
"status": "ok"
}| Code | Description |
|---|---|
| 200 | Backend is healthy |
Retrieves metadata for a DataHub dataset.
GET /schema/{table_name}The AI Data Pipeline Generator provides an autonomous workflow for generating and validating data-engineering artifacts from natural-language requests.
Instead of manually selecting individual pipeline tools, the user describes the desired outcome and the AI agent determines which skills are required.
A data engineer wants to generate an Airflow DAG for the fct_users_created dataset.
The dataset metadata is available through DataHub.
Start the AI Data Pipeline Generator and open the Streamlit interface.
The application displays the current backend status and the available agent capabilities, including:
- Metadata Lookup
- SQL Generation
- Airflow Generation
- dbt Generation
- YAML Generation
- README Generation
- Terraform Generation
- IAM Generation
- Artifact Validation
- Git Commit
- Artifact Download
The user does not need to manually select a pipeline technology.
In the Metadata Explorer, enter the DataHub table name:
fct_users_created
The application can retrieve metadata associated with the dataset, including:
- Column definitions
- Dataset owners
- Tags
- Upstream lineage
This metadata provides context for downstream artifact generation.
In the AI Data Pipeline Agent section, describe what should be generated.
For example:
Generate a production-ready Airflow DAG for the fct_users_created table. Run the workflow daily, include appropriate task dependencies, retries, validation, and production-oriented best practices. Commit the generated artifact to GitHub and prepare it for download.
The planning agent analyzes the request and creates an execution plan.
For the example above, the agent may determine that the following workflow is required:
- Metadata Lookup β
- Generate Airflow DAG β
- Validate Artifact β
- Commit to Git β
- Prepare Download
The exact execution plan depends on the user's request.
For example, if the user does not request a Git commit, the Git commit step is omitted.
The agent retrieves the required dataset metadata from DataHub.
The metadata is passed into the relevant generation skill so that the generated artifact can be informed by the dataset context.
For example:
Table: fct_users_created
Columns:
- id
- ...
Owners:
- Paul
Tags:
- ...
Lineage:
- ...
The agent executes the appropriate generation skill.
For an Airflow request, the Generate Airflow skill:
- Retrieves the dataset metadata.
- Constructs a metadata-aware generation prompt.
- Sends the request to the configured LLM provider.
- Extracts the generated code.
- Saves the artifact.
- Generates the associated IAM policy.
- Passes the artifact to the validation system.
Generated artifacts are automatically passed through the validation system.
For example:
Validation
PASS
Validation successful
If the user requests a Git commit, the agent executes the Git commit skill after successful validation
Example Prompts
The autonomous agent accepts natural-language requests.
- Generate an Airflow DAG
Generate a production-ready Airflow DAG for the fct_users_created table. Run it daily and include sensible task dependencies, retries, logging, validation, and production-oriented best practices.
- Generate SQL
Generate SQL that analyzes the fct_users_created table and calculates the number of users created each day.
- Generate a dbt Model
Generate a production-ready dbt model for the fct_users_created table. Use the available metadata and follow dbt best practices.
- Generate YAML Configuration
Generate a YAML configuration for deploying a pipeline associated with the fct_users_created dataset.
- Generate Terraform
Generate Terraform infrastructure required to support the data pipeline for the fct_users_created dataset. Use production-oriented configuration and best practices.
- Generate Documentation
Generate comprehensive documentation for the fct_users_created data pipeline, including its purpose, workflow, generated artifacts, validation process, and deployment considerations.
- Generate and Commit to GitHub
Generate a production-ready Airflow DAG for the fct_users_created table, validate the generated artifact, commit the result to GitHub, and prepare the artifact for download.
- Generate a Complete Pipeline
Generate a complete data pipeline for the fct_users_created dataset. Use the available metadata to determine the required artifacts, generate the appropriate pipeline components, validate them, commit the valid artifacts to GitHub, and prepare the results for download.
Depending on the user's request, the agent can execute different generation skills.
| Capability | Purpose |
|---|---|
| Airflow Generation | Generate Apache Airflow DAGs |
| SQL Generation | Generate SQL queries and transformations |
| dbt Generation | Generate dbt models |
| YAML Generation | Generate pipeline configuration |
| README Generation | Generate project documentation |
| Terraform Generation | Generate infrastructure-as-code |
| IAM Generation | Generate security policies |
| Validation | Validate generated artifacts |
| Git Commit | Commit validated artifacts to GitHub |
| Artifact Download | Prepare generated artifacts for download |
AI-Data-Pipeline-Generator/
β
βββ app/ # Core backend application
β βββ datahub/ # DataHub metadata integration
β βββ github/ # GitHub Contents API integration
β βββ llm/ # LLM generation engine
β βββ prompts/ # Prompt templates for AI generation
β βββ security/ # Validation and security utilities
β βββ utils/ # Shared helper functions
β βββ main.py # FastAPI application entry point
β
βββ generated/ # Generated pipeline artifacts
β βββ airflow/ # Airflow DAGs
β βββ configs/ # YAML and configuration files
β βββ dbt/ # dbt models
β βββ iam_policies/ # Least-privilege IAM policies
β βββ sql/ # Generated SQL scripts
β βββ customer_orders_pipeline_*/ # Example generated pipelines
β βββ fct_users_created_pipeline_*/
β
βββ docs/
β βββ images/ # README images and documentation assets
β
βββ tests/ # Automated unit tests
β
βββ .github/
β βββ workflows/ # GitHub Actions CI/CD workflows
β
βββ streamlit_app.py # Streamlit frontend
βββ requirements.txt # Python dependencies
βββ docker-compose.quickstart.yml # Docker deployment
βββ pytest.ini # Pytest configuration
βββ README.md # Project documentation
βββ LICENSE # Apache License 2.0
| Directory | Purpose |
|---|---|
| app/ | Contains the FastAPI backend, AI generation engine, DataHub integration, GitHub API client, prompt templates, and supporting utilities. |
| generated/ | Stores AI-generated artifacts, including Airflow DAGs, dbt models, SQL scripts, IAM policies, configuration files, and downloadable pipeline packages. |
| docs/ | Documentation resources, screenshots, diagrams, and images used throughout the README. |
| tests/ | Automated unit tests that verify application behavior and maintain code quality. |
| .github/workflows/ | GitHub Actions workflows for continuous integration and automated testing. |
| File | Description |
|---|---|
| streamlit_app.py | Launches the interactive Streamlit web application used by end users. |
| app/main.py | Starts the FastAPI backend and exposes the REST API endpoints. |
| requirements.txt | Lists all Python packages required to run the application. |
| docker-compose.quickstart.yml | Provides a quick Docker-based deployment configuration. |
| README.md | Comprehensive project documentation, installation guide, and developer reference. |
Security is a first-class concern throughout the AI Data Pipeline Generator. The platform follows secure-by-default principles to ensure generated artifacts, credentials, and integrations meet production standards.
-
GitHub Personal Access Token Authentication
- Uses GitHub's REST Contents API with Personal Access Tokens.
- Credentials are loaded securely through environment variables.
- Tokens are never hardcoded into the source code.
-
Environment Variable Management
- Sensitive configuration values are stored in a local
.envfile. - Environment variables are excluded from version control using
.gitignore. - Secrets remain isolated from generated artifacts.
- Sensitive configuration values are stored in a local
-
Least-Privilege IAM Policy Generation
- Automatically generates AWS IAM policies following the principle of least privilege.
- Policies grant only the permissions required by the generated pipeline.
-
Artifact Validation
- Generated artifacts are validated before packaging.
- Validation checks include:
- File existence
- Syntax verification
- Required artifact generation
- Pipeline completeness
-
GitHub Version Control
- Generated artifacts can be committed directly to GitHub.
- Every generation produces a traceable commit history.
- Existing files are updated safely using GitHub's SHA-based versioning.
-
Secure API Design
- FastAPI automatically validates request models.
- Structured exception handling prevents unexpected failures.
- REST endpoints follow predictable request and response schemas.
-
CI Security Checks
- GitHub Actions automatically execute unit tests on every push.
- Failed validations prevent broken code from being merged.
The following values should always be configured as environment variables and must never be committed to source control.
| Environment Variable | Purpose |
|---|---|
OPENAI_API_KEY |
OpenAI API authentication |
GITHUB_TOKEN |
GitHub Contents API authentication |
DATAHUB_GMS |
DataHub metadata server |
DATAHUB_TOKEN (optional) |
DataHub authentication |
- Never commit API keys or tokens to Git.
- Rotate GitHub Personal Access Tokens regularly.
- Use repository secrets when deploying with GitHub Actions.
- Grant the minimum IAM permissions required for generated pipelines.
- Review generated IAM policies before deploying to production.
- Keep dependencies updated to receive security patches.
The project is designed to support secure development workflows while remaining suitable for experimentation, local development, and production deployments.
To improve reliability and reduce deployment errors, every generated artifact passes through an automated validation pipeline before it is packaged or committed.
The validation framework ensures that generated pipelines are complete, syntactically correct, and ready for downstream use.
Each generation request follows the validation workflow below:
- AI generates the requested artifacts.
- Required files are verified.
- Generated code is validated.
- Configuration files are inspected.
- IAM policies are generated and checked.
- Validation results are recorded.
- Artifacts are packaged into a downloadable ZIP archive.
- Optionally, artifacts are committed to GitHub.
| Validation | Description |
|---|---|
| Artifact Existence | Ensures every required output file was generated successfully. |
| Pipeline Completeness | Confirms all expected project components are present. |
| Configuration Validation | Checks generated configuration files for completeness. |
| IAM Policy Validation | Ensures security policies are generated correctly. |
| Packaging Validation | Confirms generated artifacts are successfully packaged into a ZIP archive before download. |
| GitHub Commit Validation | Verifies artifacts can be committed successfully using the GitHub Contents API. |
Validation results are returned as structured JSON.
Example:
{
"status": "pass",
"details": "5 artifacts generated successfully."
}The frontend displays validation feedback immediately after generation, allowing users to identify potential issues before deployment.
If validation fails:
- Artifact packaging is halted.
- Validation errors are returned through the API.
- The frontend displays the failure reason.
- Invalid artifacts are not committed to GitHub.
This approach prevents incomplete or inconsistent pipeline artifacts from being distributed.
Validation is integrated into the generation workflow rather than treated as an optional post-processing step. Every generated project is evaluated before it is packaged, downloaded, or version-controlled, providing greater confidence in the generated output.
The AI Data Pipeline Generator is designed to support multiple deployment environments, ranging from local development to cloud-hosted production deployments.
The project includes a Docker Compose configuration for rapid deployment.
Start the application stack:
docker compose -f docker-compose.quickstart.yml up --buildStop the application:
docker compose downDocker provides a consistent development environment without requiring manual dependency installation.
The backend can be deployed on Render as a FastAPI Web Service.
- Fork or clone the repository.
- Create a new Render Web Service.
- Connect the GitHub repository.
- Configure the Build Command:
pip install -r requirements.txt- Configure the Start Command:
uvicorn app.main:app --host 0.0.0.0 --port $PORT- Configure the required environment variables:
| Variable | Description |
|---|---|
| OPENAI_API_KEY | OpenAI authentication |
| GITHUB_TOKEN | GitHub Contents API |
| DATAHUB_GMS | DataHub Metadata Server |
| DATAHUB_TOKEN (optional) | DataHub authentication |
Deploy the service.
For production deployments, consider the following recommendations:
- Store all secrets using your cloud provider's secret management solution.
- Rotate API tokens periodically.
- Enable HTTPS for all public endpoints.
- Monitor application logs and API performance.
- Configure automated backups for metadata services.
- Restrict IAM permissions using the generated least-privilege policies.
- Enable CI/CD pipelines for automated testing before deployment.
| Platform | Status |
|---|---|
| Local Development | β Supported |
| Docker | β Supported |
| Render | β Supported |
| GitHub Actions | β Supported |
| Linux Servers | β Supported |
| Windows | β Supported |
| macOS | β Supported |
The AI Data Pipeline Generator uses GitHub Actions to automatically validate every code change before it is merged or deployed.
The CI pipeline ensures that new contributions maintain the project's reliability, code quality, and functionality.
Every push and pull request automatically triggers the CI pipeline.
Developer Push / Pull Request
β
βΌ
GitHub Actions
β
ββββΊ Install Dependencies
β
ββββΊ Run Automated Tests
β
ββββΊ Run Security Checks
β
ββββΊ Report Workflow Status
The automated workflow performs the following tasks:
- Install project dependencies
- Execute automated unit tests using Pytest
- Validate generated pipeline artifacts
- Verify GitHub integration
- Detect failed builds before merging
- Generate detailed workflow logs
The workflow configuration is located in:
.github/workflows/
GitHub Actions automatically runs on:
- Every push to the repository
- Every Pull Request
- Manual workflow execution (when configured)
Every workflow produces a complete execution report including:
- Dependency installation
- Test execution
- Validation results
- Build duration
- Success or failure status
If any stage fails, the workflow immediately stops and reports the error.
Continuous Integration provides several advantages:
- Detects bugs early in development
- Prevents broken code from being merged
- Maintains consistent code quality
- Automatically validates generated artifacts
- Improves deployment reliability
- Encourages collaborative development
The CI/CD pipeline can be extended with:
- Automated Docker image publishing
- Deployment to cloud environments
- Code coverage reporting
- Static security analysis
- Dependency vulnerability scanning
- Automated release generation
- Version tagging
- Performance benchmarking
The AI Data Pipeline Generator is under active development. The roadmap below outlines planned improvements and long-term goals for the project.
- AI-powered pipeline generation using natural language.
- Metadata-aware generation using DataHub.
- Airflow DAG generation.
- dbt model generation.
- SQL generation.
- YAML configuration generation.
- README generation.
- Terraform generation.
- AWS IAM policy generation.
- Artifact validation.
- GitHub integration.
- Automatic ZIP packaging.
- Streamlit frontend.
- FastAPI REST API.
- Interactive Swagger API documentation.
- GitHub Actions CI workflow.
- Improved prompt engineering for more accurate pipeline generation
- Enhanced validation rules for generated artifacts
- Better error reporting and logging
- Additional metadata compatibility improvements
- Performance optimization for large metadata schemas
- Azure Data Factory pipeline generation
- Google Cloud Dataflow templates
- AWS Glue Job generation
- Apache Spark jobs
- Apache Beam pipelines
- Dagster pipelines
- Prefect workflows
- Terraform modules
- AWS CloudFormation templates
- Kubernetes deployment manifests
- Helm Charts
- User authentication
- Project workspaces
- Artifact version history
- Team collaboration
- Audit logging
- Role-based access control (RBAC)
- Support for multiple LLM providers
- Prompt optimization
- Pipeline explanation generation
- Automated documentation generation
- Pipeline optimization recommendations
- CLI interface
- VS Code Extension
- Plugin architecture
- Template marketplace
- Custom prompt library
The long-term goal of this project is to become an AI-powered platform capable of generating complete, production-ready data engineering solutions from metadata and natural language requirements.
Rather than generating isolated code snippets, the platform aims to automate the creation of complete data platforms, including ingestion, transformation, orchestration, security, deployment, validation, monitoring, and documentation.
The vision is to reduce the time required to build production-grade data pipelines from days or weeks to just a few minutes while following industry best practices.
This project is licensed under the Apache License 2.0.
See the LICENSE file for details.