百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

supersonic

> 编程语言
开源

SuperSonic 是新一代 AI+BI 平台,整合了 Chat BI (由 LLM 提供支持) 和 Headless BI (由语义层提供支持) 两种模式。

5.0K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

SuperSonic 是新一代 AI+BI 平台,整合了 Chat BI (由 LLM 提供支持) 和 Headless BI (由语义层提供支持) 两种模式。

中文版 | 日本語版 | Docs

SuperSonic

SuperSonic is the next-generation AI+BI platform that unifies Chat BI (powered by LLM) and Headless BI (powered by semantic layer) paradigms. This unification ensures that Chat BI has access to the same curated and governed semantic data models as traditional BI. Furthermore, the implementation of both paradigms benefit from each other:

  • Chat BI's Text2SQL gets augmented with context-retrieval from semantic models.
  • Headless BI's query interface gets extended with natural language API.

SuperSonic provides a Chat BI interface that empowers users to query data using natural language and visualize the results with suitable charts. To enable such experience, the only thing necessary is to build logical semantic models (definition of metric/dimension/tag, along with their meaning and relationships) through a Headless BI interface. Meanwhile, SuperSonic is designed to be extensible and composable, allowing custom implementations to be added and configured with Java SPI.

Motivation

The emergence of Large Language Model (LLM) like ChatGPT is reshaping the way information is retrieved, leading to a new paradigm in the field of data analytics known as Chat BI. To implement Chat BI, both academia and industry are primarily focused on harnessing the power of LLMs to convert natural language into SQL, commonly referred to as Text2SQL or NL2SQL. While some approaches show promising results, their reliability falls short for large-scale real-world applications.

Meanwhile, another emerging paradigm called Headless BI, which focuses on constructing unified semantic data models, has garnered significant attention. Headless BI is implemented through a universal semantic layer that exposes consistent data semantics via an open API.

From our perspective, the integration of Chat BI and Headless BI has the potential to enhance the Text2SQL generation in two dimensions:

  1. Incorporate data semantics (such as business terms, column values, etc.) into the prompt, enabling LLM to better understand the semantics and reduce hallucination.
  2. Offload the generation of advanced SQL syntax (such as join, formula, etc.) from LLM to the semantic layer to reduce complexity.

With these ideas in mind, we develop SuperSonic as a practical reference implementation and use it to power our real-world products. Additionally, to facilitate further development we decide to open source SuperSonic as an extensible framework.

Out-of-the-box Features

  • Built-in Chat BI interface for business users to enter natural language queries
  • Built-in Headless BI interface for analytics engineers to build semantic data models
  • Built-in rule-based semantic parser to improve efficiency in certain scenarios (e.g. demonstration, integration testing)
  • Built-in support for input auto-completion, multi-turn conversation as well as post-query recommendation
  • Built-in support for three-level data access control: dataset-level, column-level and row-level

Extensible Components

The high-level architecture and main process flow is as follows:

  • Knowledge Base: extracts schema information periodically from the semantic models and build dictionary and index to facilitate schema mapping.

  • Schema Mapper: identifies references to schema elements(metrics/dimensions/entities/values) in user queries. It matches the query text against the knowledge base.

  • Semantic Parser: understands user queries and generates semantic query statement. It consists of a combination of rule-based and LLM-based parsers, each of which deals with specific scenarios.

  • Semantic Corrector: checks validity of semantic query statement and performs correction if necessary. It consists of a combination of rule-based and LLM-based correctors, each of which deals with specific scenarios.

  • Semantic Translator: converts semantic query statement into SQL statement that can be executed against physical data models.

  • Chat Plugin: extends functionality with third-party tools. Given a list of configured plugins with descriptions and sample questions, an LLM will be leveraged to select the most suitable one.

  • Chat Memory: encapsulates a collection of historical query trajectories that can be recalled to facilitate few-shot prompting.

Quick Demo

Online playground

Visit http://117.72.46.148:9080 to register and experience as a new user. Please do not modify system configurations. We will restart to reset configurations regularly every weekend.

Docker Deployment

  • Install Docker and docker-compose.
  • Download the docker-compose.yml file; Execute: wget https://raw.githubusercontent.com/tencentmusic/supersonic/master/docker/docker-compose.yml.
  • Execute "docker-compose up -d".
  • Open a browser and visit http://localhost:9080 to start exploring.

Local build

SuperSonic comes with sample semantic models as well as chat conversations that can be used as a starting point. Please follow the steps:

  • Download the latest prebuilt binary from the release page
  • Run script "assembly/bin/supersonic-daemon.sh start" to start a standalone Java service
  • Visit http://localhost:9080 in the browser to start exploration

Build and Development

Please refer to project Docs.

WeChat Contact

Please follow SuperSonic wechat official account:

GitHub Issues· 0 开放

在 GitHub 查看全部

暂无开放 Issues,或尚未同步最近议题。

核心特点

  • •Chat BI's Text2SQL gets augmented with context-retrieval from semantic models.
  • •Headless BI's query interface gets extended with natural language API.
  • •Built-in Chat BI interface for *business users* to enter natural language queries
  • •Built-in Headless BI interface for *analytics engineers* to build semantic data models
  • •Built-in rule-based semantic parser to improve efficiency in certain scenarios (e.g. demonstration, integration testing)
  • •Built-in support for input auto-completion, multi-turn conversation as well as post-query recommendation
  • •Built-in support for three-level data access control: dataset-level, column-level and row-level
  • •Knowledge Base: extracts schema information periodically from the semantic models and build dictionary and index to facilitate schema mapping.
  • •Schema Mapper: identifies references to schema elements(metrics/dimensions/entities/values) in user queries. It matches the query text against the knowledge base.
  • •Semantic Translator: converts semantic query statement into SQL statement that can be executed against physical data models.

> 标签

Java

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言