text-to-sql

There are 236 repositories under text-to-sql topic.

  • sinaptik-ai/pandas-ai

    Chat with your database or your datalake (SQL, CSV, parquet). PandasAI makes data analysis conversational using LLMs and RAG.

    Language:Python22.5k1699022.2k
  • vanna

    vanna-ai/vanna

    🤖 Chat with your SQL database 📊. Accurate Text-to-SQL Generation via LLMs using Agentic Retrieval 🔄.

    Language:Python21.5k1484672k
  • WrenAI

    Canner/WrenAI

    ⚡️ GenBI (Generative BI) queries any database in natural language, generates accurate SQL (Text-to-SQL), charts (Text-to-Chart), and AI-powered business intelligence in seconds.

    Language:TypeScript12.9k764761.3k
  • sqlchat

    sqlchat/sqlchat

    Chat-based SQL Client and Editor for the next decade

    Language:TypeScript5.5k3379478
  • dataease/SQLBot

    🔥 基于大模型和 RAG 的智能问数系统,对话式数据分析神器。Text-to-SQL Generation via LLMs using RAG.

    Language:Python4.4k38213440
  • Dataherald/dataherald

    Interact with your SQL database, Natural Language to SQL using LLMs

    Language:Python3.6k2746257
  • eosphoros-ai/Awesome-Text2SQL

    Curated tutorials and resources for Large Language Models, Text2SQL, Text2DSL、Text2API、Text2Vis and more.

  • eosphoros-ai/DB-GPT-Hub

    A repository that contains models, datasets, and fine-tuning techniques for DB-GPT, with the purpose of enhancing model performance in Text-to-SQL

    Language:Python1.9k24170240
  • HKUSTDial/NL2SQL_Handbook

    This is a continuously updated handbook for readers to easily track the latest Text-to-SQL techniques in the literature and provide practical guidance for researchers and practitioners.

    Language:Python1.1k24170
  • DEEP-PolyU/Awesome-LLM-based-Text2SQL

    [TKDE2025] Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQL | A curated list of resources (surveys, papers, benchmarks, and opensource projects) on large language model-based text-to-SQL.

  • MindSQL

    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.

    Language:Python42592044
  • premAI-io/premsql

    End-to-End Local-First Text-to-SQL Pipelines

    Language:Python41482539
  • microsoft/ContextualSP

    Multiple paper open-source codes of the Microsoft Research Asia DKI group

    Language:Python383153460
  • RUCKBReasoning/OmniSQL

    [VLDB' 25] Synthesizing High-quality Text-to-SQL Data at Scale. SynSQL-2.5M is the first million-scale cross-domain text-to-SQL dataset.

    Language:Python37564040
  • salesforce/TabularSemanticParsing

    Translating natural language questions to structured query language (SQL)

    Language:Jupyter Notebook23494354
  • HKUSTDial/awesome-data-agents

    Continuously updated paper list on advancements in Data Agents. Companion repo to our paper "A Survey of Data Agents: Emerging Paradigm or Overstated Hype?"

    Language:Python23111
  • XGenerationLab/xiyan_mcp_server

    A Model Context Protocol (MCP) server that enables natural language queries to databases

    Language:Python21891343
  • totalhack/zillion

    Make sense of it all. Semantic data modeling and analytics with a sprinkle of AI. https://totalhack.github.io/zillion/

    Language:Python2039176
  • ShuaiLyu0110/SQL-o1

    SQL-o1: A Self-Reward Heuristic Dynamic Search Method for Text-to-SQL

    Language:Python19314620
  • aws-samples/generative-bi-using-rag

    A solution guidance for Generative BI using Amazon Bedrock, Amazon OpenSearch with RAG

    Language:Python16851250
  • deepsense-ai/db-ally

    Efficient, consistent and secure library for querying structured data with natural language

    Language:Python1614107
  • X-LANCE/text2sql-lgesql

    [ACL 2021] This is the project containing source codes and pre-trained models about ACL2021 Long Paper ``LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relations".

    Language:Python15422438
  • pragunbhutani/dbt-llm-agent

    LLM based AI Agent to automate Data Analysis for dbt projects with remote MCP server

    Language:Python14821428
  • Laqcce-cao/RSL-SQL

    RSL-SQL: Robust Schema Linking in Text-to-SQL Generation

    Language:Python14711613
  • HKUSTDial/NL2SQL360

    🔥[VLDB'24] Official repository for the paper “The Dawn of Natural Language to SQL: Are We Fully Ready?”

    Language:Python1391817
  • aws-samples/text-to-sql-bedrock-workshop

    This repository is intended for those looking to dive deep on advanced Text-to-SQL concepts.

    Language:Jupyter Notebook1267329
  • tshu-w/DBCopilot

    Code and data for the paper "DBCᴏᴘɪʟᴏᴛ: Natural Language Querying over Massive Database via Schema Routing" (EDBT 2025)

    Language:Python1195919
  • HKUSTDial/Alpha-SQL

    🔥[ICML'25] Official repository for the paper "Alpha-SQL: Zero-Shot Text-to-SQL using Monte Carlo Tree Search"

    Language:Python1173912
  • wshi83/EhrAgent

    [EMNLP'24] EHRAgent: Code Empowers Large Language Models for Complex Tabular Reasoning on Electronic Health Records

    Language:Python1114716
  • glee4810/EHRSQL

    [NeurIPS'22] EHRSQL: A Practical Text-to-SQL Benchmark for Electronic Health Records

    Language:Python924512
  • Chirayu-Tripathi/nl2query

    A framework for converting natural language text inputs to corresponding Pandas, MongoDB, Kusto and Neo4j (Cypher) queries.

    Language:Python91728
  • aws-samples/build-an-agentic-llm-assistant

    Labs for the "Build an agentic LLM assistant on AWS" workshop. A step by step agentic llm assistant development workshop using serverless three-tier architecture.

    Language:Jupyter Notebook739133
  • lyuqin/HydraNet-WikiSQL

    Code and trained model for Hybrid ranking network for text-to-SQL on WikiSQL

    Language:Python6921618
  • gqlpt

    rocket-connect/gqlpt

    Leverage AI to generate GraphQL queries from plain text.

    Language:TypeScript63562
  • Mark7766/spring-ai-apps

    Easily get started with Spring-AI to develop various AI applications, including TextToSQL and private data AI application development. In addition to these capabilities, Spring-AI also supports integration with several other advanced AI technologies and platforms such as DeepSeek, Azure, Ollama, Vector Databases, Function Calling, MCP and RAG.

    Language:Java564122
  • OSU-NLP-Group/llm-planning-eval

    [ACL'24] Code and data of paper "When is Tree Search Useful for LLM Planning? It Depends on the Discriminator"

    Language:Python54323