mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-11-11 21:40:41 +00:00
- KnowledgeRetrievalNodeConfig 新增 is_strict / default_response 字段 - KnowledgeRetrievalNode 检索无结果时,严格模式开启返回默认回复,关闭返回空 - 检索模式优先级修正:节点明确选择覆盖知识库的混合检索配置 - 新增幂等注册 SQL(update 脚本 + 全量初始化),新老环境均可使用
25 lines
646 B
SQL
25 lines
646 B
SQL
-- 知识库检索工作流节点注册
|
|
-- 为新安装和已有环境提供幂等的节点注册
|
|
|
|
INSERT INTO `t_workflow_component`
|
|
(`uuid`, `name`, `title`, `remark`, `display_order`, `is_enable`,
|
|
`create_time`, `update_time`, `is_deleted`, `tenant_id`)
|
|
SELECT
|
|
'b8e3c1d55f6a4d92b0e7f214d3c58a29',
|
|
'KnowledgeRetrieval',
|
|
'知识库检索',
|
|
'从知识库中检索相关内容,支持向量检索和混合检索',
|
|
30,
|
|
1,
|
|
NOW(),
|
|
NOW(),
|
|
0,
|
|
'000000'
|
|
FROM DUAL
|
|
WHERE NOT EXISTS (
|
|
SELECT 1
|
|
FROM `t_workflow_component`
|
|
WHERE `name` = 'KnowledgeRetrieval'
|
|
AND `tenant_id` = '000000'
|
|
);
|