diff --git a/README.md b/README.md index e9ab7b35b..cfd86519b 100644 --- a/README.md +++ b/README.md @@ -46,11 +46,11 @@ The high-level architecture and main process flow is as follows: - **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 extracts semantic information. It consists of a combination of rule-based and model-based parsers, each of which deals with specific scenarios. +- **Semantic Parser:** understands user queries and generates semantic query statement. It consists of a combination of rule-based and model-based parsers, each of which deals with specific scenarios. -- **Semantic Corrector:** checks validity of extracted semantic information and performs correction and optimization if needed. +- **Semantic Corrector:** checks validity of semantic query statement and performs correction and optimization if needed. -- **Semantic Interpreter:** performs execution according to extracted semantic information. It generates SQL statements and executes them against physical data models. +- **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. The LLM is going to select the most suitable one, given all configured plugins with function description and sample questions. diff --git a/README_CN.md b/README_CN.md index fc5c5e24f..9c23f0ca3 100644 --- a/README_CN.md +++ b/README_CN.md @@ -42,11 +42,11 @@ SuperSonic的整体架构和主流程如下图所示: - **模式映射器(Schema Mapper):** 将自然语言文本在知识库中进行匹配,为后续的语义解析提供相关信息。 -- **语义解析器(Semantic Parser):** 理解用户查询并抽取语义信息,其由一组基于规则和基于模型的解析器组成,每个解析器可应对不同的特定场景。 +- **语义解析器(Semantic Parser):** 理解用户查询并抽取语义信息,生成语义查询语句S2SQL。 -- **语义修正器(Semantic Corrector):** 检查语义信息的合法性,对不合法的信息做修正和优化处理。 +- **语义修正器(Semantic Corrector):** 检查语义查询语句的合法性,对不合法的信息做修正和优化处理。 -- **语义解释器(Semantic Interpreter):** 根据语义信息生成物理SQL执行查询。 +- **语义翻译器(Semantic Translator):** 将语义查询语句翻译成可在物理数据模型上执行的SQL语句。 - **问答插件(Chat Plugin):** 通过第三方工具扩展功能。给定所有配置的插件及其功能描述和示例问题,大语言模型将选择最合适的插件。 diff --git a/docs/images/supersonic_components.png b/docs/images/supersonic_components.png index ca514fcd4..396162e33 100644 Binary files a/docs/images/supersonic_components.png and b/docs/images/supersonic_components.png differ