Open Source
MindSQL
MindSQL: A Python Text-to-SQL RAG Library simplifying database interactions. Seamlessly integrates with PostgreSQL, MySQL, SQLite, Snowflake, and BigQuery.
Our verdict
We have not reviewed MindSQL yet
No one at Enterprise DNA has checked this listing against its sources. The description comes from public listings gathered automatically. Any fact below shows where it came from and when it was last checked.
From the listing
About MindSQL
MindSQL is a Python library that converts natural language questions into SQL queries using retrieval-augmented generation. It integrates with PostgreSQL, MySQL, SQLite, Snowflake, and BigQuery, and supports GPT-4 and Llama 2 as language models. ChromaDB and Faiss provide context-aware retrieval for accurate query generation.
Best for
Developers who want to add natural language querying to existing SQL databases
Use cases
- Query databases with natural language instead of writing SQL
- Build RAG pipelines that combine vector search with SQL execution
- Integrate text-to-SQL capabilities into Python applications
Notes
443 stars on GitHub. Last updated 2025-07-16. Licensed GPL-3.0.
Pros
- Supports multiple major SQL databases out of the box
- Offers choice between GPT-4 and Llama 2 for query generation
- Uses vector stores like ChromaDB and Faiss for context-aware responses
Cons
- Requires external API keys or local setup for language models
- Limited to the six supported databases
- Community project with moderate adoption (443 stars)
Key facts
What we have checked
- Latest version
- 0.2.1 (released 13 Mar 2024)
- GitHub stars
- 447
Each value shows when we last confirmed it and where it came from. Values we have not confirmed are left out, never guessed.
Stars and usage
How MindSQL is growing
443 to 447
Sources
Where this comes from
- GitHubOfficial
- github api via nightly crawl, recovered from git history 20e874270887c1008f860ee0198e461a23c9e438Registry
A source shows what was published when we checked it. It does not certify security, performance or a working installation. Read our method.
Changelog
What changed
Released 0.2.1
Released 0.2.0
Released 0.1.3
Pairs with
Other entries in the index that connect to this one. Click through to see the chain.
Get the free Developer’s Field Guide
A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.
Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.