Overview of SuperSonic Architecture and Components
masterSuperSonic unifies Chat BI (LLM-powered natural language querying) and Headless BI (semantic layer-powered querying). It is designed to be extensible via Java SPI.
Core Components
- Knowledge Base: Periodically extracts schema information from semantic models to build dictionaries and indexes for schema mapping.
- Schema Mapper: Matches user query text against the knowledge base to identify references to metrics, dimensions, entities, or values.
- Semantic Parser: A hybrid of rule-based and LLM-based parsers that converts user queries into semantic query statements.
- Semantic Corrector: Validates and corrects semantic query statements using rule-based and LLM-based methods.
- Semantic Translator: Converts semantic query statements into executable SQL for physical data models.
- Chat Plugin: Allows extending functionality with third-party tools; an LLM selects the appropriate plugin based on descriptions and sample questions.
- Chat Memory: Stores historical query trajectories to facilitate few-shot prompting.
Key Features
- Chat BI Interface: For business users to query data via natural language.
- Headless BI Interface: For analytics engineers to build semantic data models (metrics, dimensions, tags).
- Data Access Control: Supports three-level control: dataset-level, column-level, and row-level.
- Advanced Chat UX: Includes input auto-completion, multi-turn conversation, and post-query recommendations.