Mindinventory/MindSQL

MindSQL: A Python Text-to-SQL RAG Library simplifying database interactions. Seamlessly integrates with PostgreSQL, MySQL, SQLite, Snowflake, and BigQuery. Powered by GPT-4 and Llama 2, it enables natural language queries. Supports ChromaDB and Faiss for context-aware responses.

58
/ 100
Established

Implements a modular plugin architecture via extensible interfaces (`IDatabase`, `ILlm`, `IVectorstore`) enabling custom implementations beyond built-in providers. The RAG pipeline indexes database schemas (DDL statements) and example question-SQL pairs into vector stores for semantic retrieval, then uses LLMs to generate optimized queries from natural language input. Includes built-in result visualization capabilities and supports Google Gemini alongside GPT-4 and Llama 2 for LLM flexibility.

437 stars and 115 monthly downloads. No commits in the last 6 months. Available on PyPI.

Stale 6m
Maintenance 2 / 25
Adoption 15 / 25
Maturity 25 / 25
Community 16 / 25

How are scores calculated?

Stars

437

Forks

45

Language

Python

License

GPL-3.0

Category

text-to-sql-rag

Last pushed

Jul 16, 2025

Monthly downloads

115

Commits (30d)

0

Dependencies

13

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/rag/Mindinventory/MindSQL"

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