CoolFace
Apppublic

sidruud/agentic-etl-to-databricks-bot

sourceHugging Faceapache-2.0updated 8mo agoView on Hugging Face
0likes
App README

title: Agentic ETL to Databricks Bot sdk: gradio sdkversion: 6.5.1 appfile: gradioapp.py pythonversion: 3.11 license: apache-2.0 ---

๐Ÿš€ Agentic ETL to DataBricks Bot - HF Spaces Ready-to-Deploy Package

Version: 1.0 | Date: February 9, 2026 Status: โœ… Production Ready for Hugging Face Spaces


๐Ÿ“ฆ What's in This Package

This folder contains everything you need to deploy the Agentic ETL to DataBricks Bot on Hugging Face Spaces in just 3 steps (5 minutes).

hf-spaces-deployment/
โ”œโ”€โ”€ gradio_app.py ......................... Main web interface
โ”œโ”€โ”€ requirements.txt ...................... Python dependencies (HF optimized)
โ”œโ”€โ”€ .gitignore ........................... Exclude cache/logs/large files
โ”œโ”€โ”€ HF_SPACES_DEPLOYMENT_GUIDE.md ........ Full step-by-step guide
โ”œโ”€โ”€ PACKAGE_README.md .................... Quick overview
โ”œโ”€โ”€ README.md (this file) ................ You are here
โ”œโ”€โ”€ src/ ................................. Agent code (DataStage, ODS, S2T, Planner, etc.)
โ”œโ”€โ”€ .github/skill/ ....................... Policies & Instructions
โ”œโ”€โ”€ docs/skills/ ......................... Knowledge pack (70+ skill files)
โ”œโ”€โ”€ references/databricks/ ............... Notebook templates
โ”œโ”€โ”€ artifacts/ ........................... Runtime output directory (empty)
โ”‚   โ”œโ”€โ”€ bronze/
โ”‚   โ”œโ”€โ”€ silver/
โ”‚   โ”œโ”€โ”€ gold/
โ”‚   โ”œโ”€โ”€ tests/
โ”‚   โ”œโ”€โ”€ reports/
โ”‚   โ”œโ”€โ”€ metrics/
โ”‚   โ””โ”€โ”€ cache/
โ””โ”€โ”€ inputs/ ............................. User input directory (empty)
    โ”œโ”€โ”€ dsx/
    โ””โ”€โ”€ s2t/

๐ŸŽฏ Deploy in 3 Steps

Step 1: Create Hugging Face Space (1 minute)

  1. 1.Go to: https://huggingface.co/spaces
  2. 2.Click "Create New Space"
  3. 3.Fill in:
  4. 4.Space name: agentic-etl-to-databricks-bot
  5. 5.Space SDK: Gradio (select from dropdown)
  6. 6.Visibility: Public
  7. 7.License: Apache 2.0

Step 2: Upload This Package (2 minutes)

Option A: Git (Recommended)

bash
# 1. Clone your new Space
git clone https://huggingface.co/spaces/YOUR_USERNAME/agentic-etl-to-databricks-bot
cd agentic-etl-to-databricks-bot

# 2. Copy all files from this package
xcopy* ..\..\etl_to_databricks_agent_demo\hf-spaces-deployment\* . /E

# 3. Push to Hugging Face
git add .
git commit -m "Deploy agentic ETL bot - Initial release"
git push

Option B: Web Upload (Simpler - Drag & Drop)

  • โ€”Open your Space's web editor
  • โ€”Drag & drop all folders into the editor
  • โ€”Files auto-commit

Step 3: Done! (1-2 minutes for first build)

Your bot is live at:

https://huggingface.co/spaces/YOUR_USERNAME/agentic-etl-to-databricks-bot

First deployment: 30-60 seconds (installs dependencies) Subsequent loads: 2-5 seconds


โœจ Features (Once Deployed)

Users can access these features via a web interface:

Auto NLP Router ๐Ÿค–

Type: "migrate inputs/dsx/example.dsx silver only"
โ†’ Auto-routed to correct agent

Agent Team (12 Active)

  • โ€”โšก LeadAgent (Orchestrator)
  • โ€”๐Ÿ“„ DataStageAgent (DSX Parser)
  • โ€”๐Ÿ”— OdsDsxAgent (ODS Analysis)
  • โ€”๐Ÿ“Š S2TAgent (Excel Mapper)
  • โ€”๐Ÿ“‹ PlannerAgent (Policy Planning)
  • โ€”๐Ÿ› ๏ธ NotebookBuilderAgent (Code Gen)
  • โ€”โœ“ DataQualityAgent (DQ Checks)
  • โ€”๐Ÿงช UnitTestAgent (Test Gen)
  • โ€”๐Ÿ‘๏ธ CodeReviewAgent (Review)
  • โ€”๐Ÿ“ˆ MetricsAgent (Metrics)
  • โ€”๐Ÿ“Š ProjectManagerAgent (Reports)
  • โ€”โญ ReferenceStandardAgent (Standards)

All Commands Reference

  • โ€”โœ… Core: auto, lead, analyze, plan, migrate
  • โ€”โœ… ODS/S2T: analyze-ods, plan-ods, migrate-ods, s2t
  • โ€”โœ… Batch: migrate-batch, convert, list-templates
  • โ€”โœ… Utils: memory, status, clear-cache
  • โ€”โœ… Options: --llm, --mock, --layers, --template, --yes

Runtime Mode Toggle

  • โ€”๐ŸŸข Mock Mode (default, no API key needed)
  • โ€”๐ŸŸฆ LLM Mode (with OpenAI API key)

๐Ÿ”ง Environment Variables (Optional)

If you want LLM mode enabled:

  1. 1.Go to your Space Settings โ†’ Repository secrets
  2. 2.Add:
   OPENAI_API_KEY = sk-...
   LLM_PROVIDER = openai

Otherwise, bot runs in Mock mode (fully functional, no API key needed).


๐ŸŽจ Customization (Optional)

Edit files in the Space web editor:

Change colors (futuristic cyan/orange theme):

  • โ€”File: gradio_app.py
  • โ€”Lines: 18-36 (CSS variables)

Change title:

  • โ€”File: gradio_app.py
  • โ€”Line: ~710 (hero-title)

Update agent roles:

  • โ€”File: gradio_app.py
  • โ€”Search for "Agent Team" section

๐Ÿ“‹ What's Included

โœ… Included

  • โ€”โœ… Source code (src/ folder - all agents)
  • โ€”โœ… Policies & instructions (.github/skill/)
  • โ€”โœ… Skills knowledge pack (docs/skills/ - 70+ files)
  • โ€”โœ… Notebook templates (references/databricks/)
  • โ€”โœ… Empty runtime directories (artifacts/, inputs/)

โŒ NOT Included (by design)

  • โ€”โŒ Virtual environments (.venv/ - recreated by HF)
  • โ€”โŒ Python caches (__pycache__/ - auto-generated)
  • โ€”โŒ Generated notebooks (*.ipynb - created at runtime)
  • โ€”โŒ API key secrets (use Space secrets instead)
  • โ€”โŒ Sample DSX files (add your own to inputs/dsx/)

๐Ÿ“Š Size Reference

ComponentSize
Source code~15MB
Dependencies~50MB
Total disk space used~200MB
HF Spaces limit50GB
Impactโœ… No issues

๐Ÿšจ Troubleshooting

App takes a long time to start

Answer: First deployment installs dependencies (30-60s). Subsequent loads are instant.

"ModuleNotFoundError: No module named 'src'"

Solution: Ensure src/ folder is at the root level (same as gradio_app.py)

"Port already in use"

No action needed: HF Spaces auto-assigns ports

Missing dependencies

Fix: Verify requirements.txt is in the root directory

API key not working

Check:

  1. 1.Space Settings โ†’ Repository secrets
  2. 2.Correct key format: sk-...
  3. 3.Restart the Space (Settings โ†’ Restart)

๐Ÿ“– Full Documentation

For detailed deployment instructions, see:

  • โ€”HF_SPACES_DEPLOYMENT_GUIDE.md - Step-by-step with screenshots
  • โ€”PACKAGE_README.md - Package overview

๐Ÿ” Security Notes

โœ… No sensitive data in package โœ… API keys stored securely in Space secrets โœ… Input validation: Paths restricted to inputs/ and artifacts/ โœ… Source of truth: CLI (data_engineering_agent.py) for full control


๐ŸŽ“ How It Works

User Input (Web UI)
    โ†“
gradio_app.py (Gradio interface)
    โ†“
Auto NLP Router (natural language โ†’ structured commands)
    โ†“
Lead Agent (auto-detect workflow: DSX/ODS/S2T)
    โ†“
Specialized Agents (Parse โ†’ Plan โ†’ Generate โ†’ Test โ†’ Review)
    โ†“
Output (Notebooks in artifacts/, reports, metrics)

๐Ÿ’ก Pro Tips

Team Access

  • โ€”Share the URL publicly - no login needed!
  • โ€”Anyone with the link can use it

Embed in Documentation

Use the HF Embed button to embed the bot in your docs/wiki

Custom Domain (Paid)

  • โ€”Upgrade to HF Pro
  • โ€”Add custom domain in Space settings
  • โ€”Share professional-looking URL

Monitoring

  • โ€”Check Space Logs if something breaks
  • โ€”Logs show error messages and startup info

๐Ÿค Contributing

If you improve the bot:

  1. 1.Update the Space repository
  2. 2.Test changes locally first
  3. 3.Commit & push to update the live bot

๐Ÿ“ž Support

  • โ€”Hugging Face Docs: https://huggingface.co/docs/hub/spaces
  • โ€”This repo: GitHub Issues on your fork
  • โ€”Community: Hugging Face Discussions

๐Ÿ“œ License

Apache License 2.0


๐ŸŽ‰ Ready to Deploy?

  1. 1.โœ… You have this package
  2. 2.โœ… Create HF Space (3 clicks)
  3. 3.โœ… Upload files (drag & drop)
  4. 4.โœ… Your bot is live!

Questions? Check HF_SPACES_DEPLOYMENT_GUIDE.md for detailed help.

Go forth and automate! ๐Ÿš€


Made with โค๏ธ for data engineers