feat(plugins): add text2sql + text2sql_ui#53
Open
dividduang wants to merge 2 commits into
Open
Conversation
- plugins/text2sql (backend, depends_on ai): 自然语言查库,数据集/数据源/Few-shot 样例管理与只读安全取数
- plugins/text2sql_ui (frontend): 数据集/数据源/样例管理页
- regenerate plugins-data.{json,ts} via generate.ts
Contributor
Plugin TOML Validation ReportStatus: ✅ All Passed Summary: 2 validated, 0 skipped ✅
|
| Field | Value | Status |
|---|---|---|
summary |
Text2SQL | ✅ |
version |
0.1.0 | ✅ |
description |
自然语言查库(Text2SQL):数据集/数据源/Few-shot 样例管理与只读安全取数,并可作为能力注入 ai 聊天 | ✅ |
author |
david | ✅ |
icon |
- | ➖ |
tags |
ai, other |
✅ |
database |
mysql, postgresql |
✅ |
✅ text2sql_ui
| Field | Value | Status |
|---|---|---|
summary |
Text2SQL UI | ✅ |
version |
0.1.0 | ✅ |
description |
Text2SQL 数据集 / 数据源 / Few-shot 样例管理(自然语言查库),需与 ai_ui 插件一同安装 | ✅ |
author |
wu-clan | ✅ |
icon |
- | ➖ |
tags |
ai, other |
✅ |
database |
- | ➖ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
新增插件
depends_on = ["ai"]):自然语言查库(Text2SQL)。数据集 / 数据源 / Few-shot 样例管理 + 只读安全取数。作为独立「客人」插件,不修改 ai 任何文件,仅只读复用 ai 的供应商/模型/适配器设施。ai_ui一同安装)。子模块来源(HTTPS URL,遵循 share.md 约定):
plugins/text2sql→ https://github.com/dividduang/text2sql.git @117d89eplugins/text2sql_ui→ https://github.com/dividduang/text2sql_ui.git @5d43eed校验
通过
pnpm generate重新生成plugins-data.json/plugins-data.ts。设计说明(重要)
按维护者要求:text2sql 是「客人」插件,不要求 ai 为它改动任何代码。
POST /api/v1/text2sql/queries提供(不注入 ai 聊天)。assistant默认场景,不新增枚举、不新增 ai 的扩展点。ai_text2sql_*前缀(保留历史数据,无需迁移)。