File size: 920 Bytes
c399543
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# πŸš€ 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 implementation
- **`data/`** - Vector database and sample data
- **`prompts/`** - Prompt templates for SQL generation

### **Deployment Steps:**
1. Create a new HF Space with **Gradio** SDK
2. Clone the space to your local machine
3. Copy all files from this `hf_deployment` folder to the cloned space
4. 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! πŸŽ‰