QueryWeaver  by FalkorDB

Natural language to SQL conversion engine

Created 5 months ago
294 stars

Top 90.1% on SourcePulse

GitHubView on GitHub
Project Summary

This open-source Text2SQL tool translates natural language questions into SQL queries, simplifying database interactions. It leverages graph-powered schema understanding to interpret user prompts, enabling queries in plain English. The project targets developers and power users seeking efficient, natural-language access to databases.

How It Works

The system employs graph-based schema understanding to interpret natural language prompts and generate corresponding SQL. It exposes a REST API for managing database schemas (graphs) and executing queries, with optional integration for the Model Context Protocol (MCP). AI/LLMs, configurable for Azure OpenAI or direct OpenAI usage, power the core Text2SQL conversion.

Quick Start & Requirements

  • Primary Install: Docker is recommended for evaluation.
    docker run -p 5000:5000 -it falkordb/queryweaver
    
    Using a .env file for configuration is advised.
  • Prerequisites: Python 3.12+, pipenv, Node.js/npm (for source development), FalkorDB instance, and API keys for Azure OpenAI or OpenAI.
  • Links: Dockerhub, Swagger UI, FalkorDB Cloud.

Highlighted Details

  • REST API: Manages graphs and executes Text2SQL queries, supporting bearer token authentication.
  • MCP Support: Optional integration for exposing or consuming Text2SQL services via the Model Context Protocol.
  • AI/LLM Flexibility: Supports both Azure OpenAI and OpenAI directly, configurable via environment variables.
  • Streaming Responses: Provides intermediate reasoning steps and final SQL in a streaming format.

Maintenance & Community

Licensing & Compatibility

  • License: GNU Affero General Public License (AGPL).
  • Compatibility: AGPL is a strong copyleft license, requiring derivative works to also be AGPL-licensed, which may impact commercial use or integration into proprietary systems.

Limitations & Caveats

  • Destructive Operations: Requires explicit handling of confirmation steps for data modification queries (INSERT, UPDATE, DELETE) when automating.
  • OAuth Configuration: Proper APP_ENV setting is crucial for secure session handling and avoiding CSRF warnings in production/staging.
  • Development Dependencies: Local development from source requires specific Python and Node.js versions and package managers.
Health Check
Last Commit

3 days ago

Responsiveness

Inactive

Pull Requests (30d)
36
Issues (30d)
8
Star History
38 stars in the last 30 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems") and Gabriel Almeida Gabriel Almeida(Cofounder of Langflow).

sqlchat by sqlchat

0.3%
6k
Chat-based SQL client using natural language
Created 2 years ago
Updated 6 months ago
Feedback? Help us improve.