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.
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.
Stars
437
Forks
45
Language
Python
License
GPL-3.0
Category
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.
Related tools
mindsdb/mindsdb
Query Engine for AI Analytics: Build self-reasoning agents across all your live data
vanna-ai/vanna
🤖 Chat with your SQL database 📊. Accurate Text-to-SQL Generation via LLMs using Agentic Retrieval 🔄.
dataease/SQLBot
🔥 基于大模型和 RAG 的智能问数系统,对话式数据分析神器。Text-to-SQL Generation via LLMs using RAG.
weAIDB/CrackSQL
LLM-based Dialect Translation System
Canner/WrenAI
⚡️ GenBI (Generative BI) queries any database in natural language, generates accurate SQL...