Spaces:
Sleeping
Sleeping
Adding README
Browse files
README.md
CHANGED
|
@@ -1,27 +1,29 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
|
| 4 |
|
| 5 |
-
This
|
| 6 |
|
| 7 |
-
|
| 8 |
-
-
|
| 9 |
-
-
|
| 10 |
-
- **`rag_system/`** - Complete RAG system implementation
|
| 11 |
-
- **`data/`** - Vector database and sample data
|
| 12 |
-
- **`prompts/`** - Prompt templates for SQL generation
|
| 13 |
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
|
| 20 |
-
|
| 21 |
-
-
|
| 22 |
-
-
|
| 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|