File size: 787 Bytes
9f5ac7a b75c2dd 9f5ac7a c399543 9f5ac7a c399543 9f5ac7a c399543 9f5ac7a c399543 9f5ac7a c399543 9f5ac7a |
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 |
---
title: Text-to-SQL RAG with CodeLlama
colorFrom: indigo
colorTo: blue
sdk: gradio
app_file: app.py
python_version: "3.10"
pinned: false
---
# Text-to-SQL RAG with CodeLlama
This Space runs a Retrieval-Augmented Generation (RAG) system that converts natural language questions into SQL.
- Primary LLM: CodeLlama (via ctransformers)
- Vector store: ChromaDB (recreated on first run if empty)
- UI: Gradio (`app.py`)
## Files
- `app.py`: Gradio app entrypoint
- `requirements.txt`: Dependencies
- `rag_system/`: Core RAG components
- `data/`, `prompts/`: Runtime data and prompt templates
## Notes
- SQLite databases are not committed; they are generated at runtime.
- If the Space fails to start, check the Logs tab for missing packages and update `requirements.txt` accordingly.
|