# Repository Briefing: dataease/SQLBot
> Source: https://repoforai.com/repo/dataease/SQLBot (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/dataease/SQLBot
- **Official Docs / Website**: https://sqlbot.org/
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: JavaScript
- **License**: See repository
- **Engineering Health**: A (81/100 · Maintenance 35/35 · Adoption 20/25 · Releases 20/20 · License 6/20)
- **Latest Release**: v1.10.4 (2026-11-26) — https://github.com/dataease/SQLBot/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: Docker, Self-Hosted, MCP
- **Momentum**: 7,245 ★ total (+4 24h / +30 7d) · 964 forks
- **Topics**: `chatbi`, `deepseek`, `llm`, `nl2sql`, `rag`, `sqlbot`, `text-to-sql`, `text2sql`
- **When to Use**: Best for: Internal analytics teams that can configure a model, curate business terminology and SQL examples, and validate conversational queries against read-only data sources. Skip if: You rely on fixed, audited metrics, cannot verify model data handling or license terms, or require a production-ready unprivileged deployment without further validation.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Table selection: v1.10.2 combined model-extracted keywords with vector similarity scoring; v1.10.3 added runtime configuration of vector retrieval strategy.
- Business terminology: Custom prompts, a glossary, and maintained SQL examples provide three ways to steer generation without changing application code.
- Integration: Web and popup embedding serve UI use cases; MCP adds a callable interface with a configurable image URL.
- Data coverage: Excel data sources are supported alongside database connections; v1.10.3 added Hive metadata parsing for SparkThriftServer.
- Security maintenance: v1.10.4 added salted Argon2id with migration of legacy credentials and fixed workspace isolation and path validation issues in exports.
- Deployment: Docker publishes ports 8000 and 8001; the supplied Compose configuration requires a unique SECRET_KEY.
```

## Quick Start / Clone
```bash
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
```
