feat(chroma): 新增 Chroma 向量库连接支持

- 后端新增 Chroma REST 连接、元数据浏览、JSON/SELECT 查询与 upsert/delete 写入

- 前端新增 Chroma 类型、连接配置、图标、方言和能力矩阵

- 测试覆盖 v1/v2 兼容、真实服务 smoke 和前端配置

Refs #560
This commit is contained in:
Syngnat
2026-06-13 16:47:25 +08:00
parent d3836da9cb
commit 56126e22f2
21 changed files with 1660 additions and 24 deletions

View File

@@ -40,6 +40,7 @@ export type ConnectionConfigLayoutKind =
| 'oracle'
| 'file'
| 'search'
| 'vector'
| 'custom'
| 'jvm'
| 'generic-sql';
@@ -160,6 +161,8 @@ export const getConnectionConfigLayoutKindLabel = (
return '文件型数据库';
case 'search':
return '搜索引擎';
case 'vector':
return '向量数据库';
case 'custom':
return '自定义连接';
case 'jvm':
@@ -249,6 +252,19 @@ export const resolveConnectionConfigLayout = (
],
};
}
if (type === 'chroma') {
return {
kind: 'vector',
sections: [
'identity',
'uri',
'target',
'service',
'credentials',
'databaseScope',
],
};
}
if (postgresCompatibleTypes.has(type)) {
return {
kind: 'postgres-compatible',