A newer version of the Gradio SDK is available:
5.44.1
metadata
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 entrypointrequirements.txt
: Dependenciesrag_system/
: Core RAG componentsdata/
,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.