π Text-to-SQL RAG with CodeLlama - HF Deployment
π Files for Hugging Face Spaces
This folder contains only the essential files needed for deployment to Hugging Face Spaces.
Core Files:
app.py
- Main Gradio application (renamed from app_gradio.py)requirements.txt
- Python dependencies (renamed from requirements_hf.txt)rag_system/
- Complete RAG system implementationdata/
- Vector database and sample dataprompts/
- Prompt templates for SQL generation
Deployment Steps:
- Create a new HF Space with Gradio SDK
- Clone the space to your local machine
- Copy all files from this
hf_deployment
folder to the cloned space - Push to deploy
What's NOT Included:
- Test files (test_*.py)
- Installation scripts
- Documentation files
- Log files
- Development-only files
Your RAG system is ready for production deployment! π