Manju080 commited on
Commit
9f5ac7a
Β·
1 Parent(s): c399543

Adding README

Browse files
Files changed (1) hide show
  1. README.md +24 -22
README.md CHANGED
@@ -1,27 +1,29 @@
1
- # πŸš€ Text-to-SQL RAG with CodeLlama - HF Deployment
 
 
 
 
 
 
 
 
 
 
2
 
3
- ## πŸ“ **Files for Hugging Face Spaces**
4
 
5
- This folder contains only the essential files needed for deployment to Hugging Face Spaces.
6
 
7
- ### **Core Files:**
8
- - **`app.py`** - Main Gradio application (renamed from app_gradio.py)
9
- - **`requirements.txt`** - Python dependencies (renamed from requirements_hf.txt)
10
- - **`rag_system/`** - Complete RAG system implementation
11
- - **`data/`** - Vector database and sample data
12
- - **`prompts/`** - Prompt templates for SQL generation
13
 
14
- ### **Deployment Steps:**
15
- 1. Create a new HF Space with **Gradio** SDK
16
- 2. Clone the space to your local machine
17
- 3. Copy all files from this `hf_deployment` folder to the cloned space
18
- 4. Push to deploy
19
 
20
- ### **What's NOT Included:**
21
- - Test files (test_*.py)
22
- - Installation scripts
23
- - Documentation files
24
- - Log files
25
- - Development-only files
26
-
27
- Your RAG system is ready for production deployment! πŸŽ‰
 
1
+ ---
2
+ # Required metadata for Hugging Face Spaces
3
+ # Replace with your details if desired
4
+ title: Text-to-SQL RAG with CodeLlama
5
+ colorFrom: indigo
6
+ colorTo: cyan
7
+ sdk: gradio
8
+ app_file: app.py
9
+ python_version: "3.10"
10
+ pinned: false
11
+ ---
12
 
13
+ # Text-to-SQL RAG with CodeLlama
14
 
15
+ This Space runs a Retrieval-Augmented Generation (RAG) system that converts natural language questions into SQL.
16
 
17
+ - Primary LLM: CodeLlama (via ctransformers)
18
+ - Vector store: ChromaDB (recreated on first run if empty)
19
+ - UI: Gradio (`app.py`)
 
 
 
20
 
21
+ ## Files
22
+ - `app.py`: Gradio app entrypoint
23
+ - `requirements.txt`: Dependencies
24
+ - `rag_system/`: Core RAG components
25
+ - `data/`, `prompts/`: Runtime data and prompt templates
26
 
27
+ ## Notes
28
+ - SQLite databases are not committed; they are generated at runtime.
29
+ - If the Space fails to start, check the Logs tab for missing packages and update `requirements.txt` accordingly.