chatbi-mvp

Solid

Use when building a ChatBI (conversational BI) MVP from scratch, need to understand the 5 core capabilities (NL2SQL, multi-turn dialogue, RAG knowledge base, data visualization, intelligent attribution), or want to reference SuperSonic's architecture to guide implementation

AI & Automation 11 stars 0 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 77/100

Stars 20%
36
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# ChatBI MVP Architecture ## Overview Build a ChatBI system: user asks questions in natural language → system generates SQL → executes → displays interactive charts with AI insights. **Architecture:** NL → S2SQL (semantic SQL / MQL) → Physical SQL. LLM generates S2SQL using business terms (bizName), a deterministic Translator converts to physical SQL. LLM never touches physical table/column names. **Tech stack assumed:** React (frontend) + Python/FastAPI (backend). Architecture is language-agnostic. ## Five Core Layers ``` User: "最近7天各分区播放量怎么样" │ ▼ ┌─ Layer 3: RAG ───────────────���┐ Trie + Embedding recall │ "播放量" → views (metric) │ Identify schema elements │ "分区" → category (dim) │ in user query │ "最近7天" → DateConf{-7d} │ └───────────────┬───────────────┘ │ ▼ ┌─ Layer 1: NL → S2SQL → SQL ──┐ 5-stage pipeline │ MAPPING → PARSING → │ LLM generates S2SQL (bizName) │ CORRECTING → TRANSLATING │ Translator → physical SQL │ → EXECUTE │ └───────────────┬───────────────┘ │ ┌───────┴───────┐ ▼ ▼ ┌─ Layer 2 ───┐ ┌─ Layer 5 ──────────┐ │ Multi-turn │ │ Attribution │ │ Context save │ │ LLM summary + YoY │ │ + LLM rewrite│ │ + drill-down recs │ └──────────────┘ └─────────────────────┘ │ │ └───────┬───────┘ ▼ ┌─ Layer 4: Visualization ──────┐ │ Auto chart type → ECha...

Details

Author
yugef3h
Repository
yugef3h/leo-skills
Created
4 years ago
Last Updated
1 weeks ago
Language
N/A
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

majia-guanyuan

观远 BI(Guandata)实战增益层 Agent Skill —— 架在官方全家桶(guancli 查数 / guanvis 建卡发布截图 / guanetl ETL / guanwf 数据流 / guands 数据源 / guanmetric 指标写)之上,专攻官方 DSL/命令覆盖不到的硬骨头:Part B ETL 整库治理判断 + 10 类 BI 引擎报错手册 + SmartETL 全链路重写/ExecPlan、Part C 既有页自定义图表 HTML/CSS/JS 注入排障 + 固定卡/overlay、Part C-12 HTML 应用化看板(descriptor patch 把 selector 联到 custom chart 内部 dataView + 视觉设计底线/反 AI 味红线/guanvis screenshot 视觉验收)、Part D v7 草稿-发布状态机绕过 + SmartETL 节点化静默坑 + 移动端 phoneLayout ZIP inject、Part E SuperApp 开放应用反向工程(form 建表 /survey-engine/api/form/add + LLM 中转 ILLEGAL_JSON_RES 三路径解析 + 原生 fetch credentials 绕 unwrap)、AI-native ADS 数据架构方法论(治理 vs 重搭 / 7 字段约束 / 30+30+40 预算)、餐饮连锁 BI 公式实战库(60+ SQL/复购/RFM/AC/Comp/DWD 宽表范式/39 ETL 索引)。标准查数/建卡/ETL/数据集 CRUD 一律路由给官方全家桶,本 skill 专攻业务实战与引擎级踩坑。触发:营业额/门店/会员/订单/复购率/客单价/RFM/ETL 治理/payload_json/自定义图表/HTML 看板/应用化/看板太丑/AI 味/设计底线/观远/Guandata/v7 BI/60004 草稿/Spark 中文别名/customChart/phoneLayout/SuperApp/open-apps/form 建表/ILLEGAL_JSON_RES/AI-native ADS/数据架构重搭/DWD 宽表。

14 Updated 4 days ago
maojiebc
AI & Automation Featured

skybridge

Guide developers through creating and updating ChatGPT and MCP apps. Covers the full lifecycle: brainstorming ideas against UX guidelines, bootstrapping projects, implementing tools/views, debugging, running dev servers, deploying and connecting apps to ChatGPT. Use when a user wants to create or update a ChatGPT app, MCP app, MCP server or use the Skybridge framework.

1,952 Updated today
alpic-ai
AI & Automation Listed

chat-mode

Work on Chimaera's structured chat mode (Tier B) — the stream-json/app-server drivers, the seq-numbered journal + gap-replay, the server glue, and the chat web UI. Use when adding or changing a chat feature, a driver, the event model, the journal/replay, the view-switch/rewind flow, or the chat UI; when a chat change needs live verification; or when deciding whether a change requires the (billed) chat-smoke suite.

2 Updated today
martinappberg