brettlyy/text-to-sql

An application to write and run SQL queries, returning answers to natural language questions, using langchain and open source LLM models through HuggingFace.

42
/ 100
Emerging

Extracts database schemas from SQLite files and uses Chroma vector embeddings to retrieve relevant schemas for context, enabling accurate SQL generation across multi-database environments. Leverages LangChain orchestration with Google's Flan-T5-XXL model via HuggingFace's free inference API, then executes generated queries and analyzes results to answer questions. Built on the Spider dataset for training semantic parsing across complex, cross-domain database structures.

No commits in the last 6 months.

Stale 6m No Package No Dependents
Maintenance 0 / 25
Adoption 8 / 25
Maturity 16 / 25
Community 18 / 25

How are scores calculated?

Stars

42

Forks

16

Language

Jupyter Notebook

License

MIT

Last pushed

Sep 13, 2023

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/vector-db/brettlyy/text-to-sql"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.