dataease/SQLBot
Self-hosted, RAG-assisted text-to-SQL for conversational analytics and charts
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
SQLBot is a self-hosted conversational BI application. A user asks a question in natural language; retrieval helps select relevant tables, the configured language model generates SQL, and the application queries the data source and returns results that can be visualized. Since v1.10.2, table selection has combined model-extracted keywords with vector similarity scoring. That targets ambiguity between candidate tables; it does not establish that the resulting joins or metrics are correct.
The source tree separates frontend/ and backend/. The Docker configuration gives the application its own PostgreSQL settings, distinct from the configurable data sources users query. Web and popup embedding expose the user interface, while MCP provides a callable integration that can use a separately configured image URL. The available manifests do not establish the backend framework, vector storage engine, or supported MCP transports, so those are compatibility checks rather than architectural assumptions.
Key Capabilities & Differentiators
Users can query data conversationally, turn results into charts, and continue the analysis. Administrators can maintain custom prompts, a glossary, and SQL examples to steer generation toward local business terminology and query conventions. Workspace-level resource isolation and fine-grained data permissions are available, but their effective scope should be tested with the identities and data sources used in production.
v1.10.3 added support for configuring MiniMax M3.1 Flash, adapting Hive metadata parsing for SparkThriftServer, and changing the vector retrieval strategy at runtime. Excel can also be used as a data source. Before adopting a particular combination, test schema discovery, dialect-specific SQL, and representative queries against the exact model and database versions you plan to run. There are no published accuracy or throughput figures in the available material to substitute for that test.
Trade-offs & Limitations
Compared with dashboard-first BI, SQLBot handles ad hoc questions without requiring a report for each one. The cost is less deterministic interpretation: a valid query can still use the wrong join, time window, or KPI denominator. Compared with assembling text-to-SQL inside a general-purpose workflow builder, SQLBot supplies a user interface, terminology and example management, and workspace controls, but leaves less of the application flow under your direct control.
Pilot it with known-answer questions that include ambiguous table names, multi-table joins, and sensitive columns. Treat generated SQL as untrusted: use read-only database credentials for analytical access and test permissions through embedded and MCP entry points as well as the browser UI. The license is unspecified in the supplied metadata even though a LICENSE file exists. Verify its text and any separate terms for features referenced under X-Pack before making commercial or redistribution commitments.
Hardware & Deployment Guide
The documented self-hosted path uses Docker on Linux with the dataease/sqlbot image, publishes ports 8000 and 8001, and opens the browser UI on port 8000. The run example persists Excel uploads, other files, images, logs, and PostgreSQL data on host volumes. Compose defaults POSTGRES_SERVER to localhost and requires SECRET_KEY to be supplied. A 1Panel installation path and an offline package are also available. Offline installation does not imply offline inference: the selected model endpoint and data sources still need to be reachable at runtime.
Both example container configurations request privileged mode. Use a patched, pinned version; replace example credentials, restrict network exposure, and evaluate whether the target deployment can operate with fewer privileges before approving production use. v1.10.4 fixes cross-workspace export access and file path validation issues and switches local passwords to salted Argon2id with automatic migration. On upgrade, verify that existing accounts still authenticate and that users can retrieve only their own workspace's exports.
Internal analytics teams that can configure a model, curate business terminology and SQL examples, and validate conversational queries against read-only data sources.
You rely on fixed, audited metrics, cannot verify model data handling or license terms, or require a production-ready unprivileged deployment without further validation.
Quick Start & Installation
docker run -d \ --name sqlbot \ --restart unless-stopped \ -p 8000:8000 \ -p 8001:8001 \ -v ./data/sqlbot/excel:/opt/sqlbot/data/excel \ -v ./data/sqlbot/file:/opt/sqlbot/data/file \ -v ./data/sqlbot/images:/opt/sqlbot/images \ -v ./data/sqlbot/logs:/opt/sqlbot/app/logs \ -v ./data/postgresql:/var/lib/postgresql/data \ --privileged=true \ dataease/sqlbot
Comparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| SQLBot ★ | 7.2k | +30 | JavaScript | — | Self-hosted, RAG-assisted text-to-SQL for conversational analytics and charts |
| easy-dataset | 15.2k | +19 | JavaScript | — | A self-hosted Next.js workbench for fine-tuning, RAG, and evaluation datasets |
| Vane | 38.4k | +73 | TypeScript | MIT | Self-hosted AI search with SearxNG, local or cloud LLMs, and cited answers. |
| ragflow | 95.1k | +297 | Go | Apache-2.0 | Go-based RAG platform for parsing complex documents and grounding answers in sou |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/dataease/SQLBot.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about SQLBot
How do I add SQLBot to an existing application?
What hardware should I budget for, and do I need a GPU?
Does self-hosting permit commercial use or guarantee data residency?
When should I choose SQLBot over conventional BI or a custom text-to-SQL workflow?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy