FalkorDB/QueryWeaver

An open-source Text2SQL tool that transforms natural language into SQL using graph-powered schema understanding. Ask your database questions in plain English, QueryWeaver handles the weaving.

What it solves

QueryWeaver solves the challenge of interacting with relational databases using natural language. It bridges the gap between plain-English questions and complex SQL queries by using graph-powered schema understanding to interpret database structures accurately.

How it works

It connects to your database (PostgreSQL or MySQL) and uses an LLM to translate natural language into SQL. It leverages FalkorDB to store schema information and conversation memory as a graph. You can interact with it via a REST API, a web interface, or directly within Python applications using the provided SDK. For destructive operations like DELETE or UPDATE, it includes a built-in confirmation step to ensure safety.

Who it’s for

It is designed for developers and data analysts who want to enable natural-language database querying in their applications or internal tools, and for those who prefer working with database schemas represented as graphs.

Highlights

  • Graph-powered schema understanding for improved SQL generation.
  • Supports multiple AI providers including OpenAI, Gemini, Anthropic, and Azure.
  • Includes a Python SDK for embedding Text2SQL capabilities directly into code without a web server.
  • Built-in support for the Model Context Protocol (MCP) to integrate with other AI services.
  • Secure handling of destructive SQL queries with mandatory confirmation flows.
  • Flexible deployment via Docker, REST API, or as a library.

Related

  • Project
  • Project
  • Project
  • Project
  • Project