Commit 7b82e1dc by Archer Committed by GitHub

Update doc (#5934)

* fix: text split

* remove test

* doc

* doc

* feat: support quick create dataset in app (#5940)

* feat: support quick create dataset in app

* doc

* perf: create dataset modal

* remove log

---------

Co-authored-by: heheer <heheer@sealos.io>
parent 2c681bcd
...@@ -57,7 +57,7 @@ https://github.com/labring/FastGPT/assets/15308462/7d3a38df-eb0e-4388-9250-2409b ...@@ -57,7 +57,7 @@ https://github.com/labring/FastGPT/assets/15308462/7d3a38df-eb0e-4388-9250-2409b
- [x] 知识库单点搜索测试 - [x] 知识库单点搜索测试
- [x] 对话时反馈引用并可修改与删除 - [x] 对话时反馈引用并可修改与删除
- [x] 完整调用链路日志 - [x] 完整调用链路日志
- [ ] 应用评测 - [x] 应用评测
- [ ] 高级编排 DeBug 调试模式 - [ ] 高级编排 DeBug 调试模式
- [ ] 应用节点日志 - [ ] 应用节点日志
......
...@@ -9,6 +9,7 @@ description: 'FastGPT V4.14.2 更新说明' ...@@ -9,6 +9,7 @@ description: 'FastGPT V4.14.2 更新说明'
1. 封装底层 Agent Call 方式,支持工具连续调用时上下文的压缩,以及单个工具长响应的压缩。 1. 封装底层 Agent Call 方式,支持工具连续调用时上下文的压缩,以及单个工具长响应的压缩。
2. 模板市场新 UI。 2. 模板市场新 UI。
3. 支持 Agent 编辑页快速创建知识库。
## ⚙️ 优化 ## ⚙️ 优化
...@@ -19,3 +20,16 @@ description: 'FastGPT V4.14.2 更新说明' ...@@ -19,3 +20,16 @@ description: 'FastGPT V4.14.2 更新说明'
1. 简易应用模板未正常转化。 1. 简易应用模板未正常转化。
2. 工具调用中,包含两个以上连续用户选择时候,第二个用户选择异常。 2. 工具调用中,包含两个以上连续用户选择时候,第二个用户选择异常。
3. 门户中,团队应用类型错误。
## 插件
1. 修复:子工具头像丢失。
2. 修复:模型头像丢失。
3. 修复:Worker 中错误引用 mongoose 依赖,导致超过 10s 的工具运行报错。
4. 优化:开发环境热更新时,不重复上传静态文件。
5. 新增:5118 SEO 关键词挖掘工具。
6. 新增:Tavity 内容提取高级配置。网页站点地图工具。
7. 新增:微信公众号工具集。
8. 新增:文档对比工具。
9. 新增:kimiV2 和 GPT5.1 模型预设。
\ No newline at end of file
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
"document/content/docs/upgrading/4-13/4132.mdx": "2025-10-21T11:46:53+08:00", "document/content/docs/upgrading/4-13/4132.mdx": "2025-10-21T11:46:53+08:00",
"document/content/docs/upgrading/4-14/4140.mdx": "2025-11-06T15:43:00+08:00", "document/content/docs/upgrading/4-14/4140.mdx": "2025-11-06T15:43:00+08:00",
"document/content/docs/upgrading/4-14/4141.mdx": "2025-11-12T12:19:02+08:00", "document/content/docs/upgrading/4-14/4141.mdx": "2025-11-12T12:19:02+08:00",
"document/content/docs/upgrading/4-14/4142.mdx": "2025-11-14T13:21:17+08:00", "document/content/docs/upgrading/4-14/4142.mdx": "2025-11-17T19:34:52+08:00",
"document/content/docs/upgrading/4-8/40.mdx": "2025-08-02T19:38:37+08:00", "document/content/docs/upgrading/4-8/40.mdx": "2025-08-02T19:38:37+08:00",
"document/content/docs/upgrading/4-8/41.mdx": "2025-08-02T19:38:37+08:00", "document/content/docs/upgrading/4-8/41.mdx": "2025-08-02T19:38:37+08:00",
"document/content/docs/upgrading/4-8/42.mdx": "2025-08-02T19:38:37+08:00", "document/content/docs/upgrading/4-8/42.mdx": "2025-08-02T19:38:37+08:00",
......
...@@ -112,7 +112,7 @@ export type AppSimpleEditFormType = { ...@@ -112,7 +112,7 @@ export type AppSimpleEditFormType = {
[NodeInputKeyEnum.aiChatJsonSchema]?: string; [NodeInputKeyEnum.aiChatJsonSchema]?: string;
}; };
dataset: { dataset: {
datasets: SelectedDatasetType; datasets: SelectedDatasetType[];
} & AppDatasetSearchParamsType; } & AppDatasetSearchParamsType;
selectedTools: FlowNodeTemplateType[]; selectedTools: FlowNodeTemplateType[];
chatConfig: AppChatConfigType; chatConfig: AppChatConfigType;
......
...@@ -10,7 +10,8 @@ import type { ...@@ -10,7 +10,8 @@ import type {
SearchScoreTypeEnum, SearchScoreTypeEnum,
TrainingModeEnum, TrainingModeEnum,
ChunkSettingModeEnum, ChunkSettingModeEnum,
ChunkTriggerConfigTypeEnum ChunkTriggerConfigTypeEnum,
ParagraphChunkAIModeEnum
} from './constants'; } from './constants';
import type { DatasetPermission } from '../../support/permission/dataset/controller'; import type { DatasetPermission } from '../../support/permission/dataset/controller';
import type { import type {
......
...@@ -128,7 +128,7 @@ export type SelectedDatasetType = { ...@@ -128,7 +128,7 @@ export type SelectedDatasetType = {
avatar: string; avatar: string;
name: string; name: string;
vectorModel: EmbeddingModelItemType; vectorModel: EmbeddingModelItemType;
}[]; };
/* http node */ /* http node */
export type HttpParamAndHeaderItemType = { export type HttpParamAndHeaderItemType = {
......
...@@ -19,7 +19,7 @@ import { getDatasetSearchToolResponsePrompt } from '../../../../../global/core/a ...@@ -19,7 +19,7 @@ import { getDatasetSearchToolResponsePrompt } from '../../../../../global/core/a
import { getNodeErrResponse } from '../utils'; import { getNodeErrResponse } from '../utils';
type DatasetSearchProps = ModuleDispatchProps<{ type DatasetSearchProps = ModuleDispatchProps<{
[NodeInputKeyEnum.datasetSelectList]: SelectedDatasetType; [NodeInputKeyEnum.datasetSelectList]: SelectedDatasetType[];
[NodeInputKeyEnum.datasetSimilarity]: number; [NodeInputKeyEnum.datasetSimilarity]: number;
[NodeInputKeyEnum.datasetMaxTokens]: number; [NodeInputKeyEnum.datasetMaxTokens]: number;
[NodeInputKeyEnum.userChatInput]?: string; [NodeInputKeyEnum.userChatInput]?: string;
......
...@@ -95,7 +95,7 @@ const MyModal = ({ ...@@ -95,7 +95,7 @@ const MyModal = ({
/> />
</> </>
)} )}
<Box ml={3} color={'myGray.900'} fontWeight={'500'}> <Box ml={iconSrc ? 3 : 0} color={'myGray.900'} fontWeight={'500'}>
{title} {title}
</Box> </Box>
<Box flex={1} /> <Box flex={1} />
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
"Add_tool": "Add tool", "Add_tool": "Add tool",
"AutoOptimize": "Automatic optimization", "AutoOptimize": "Automatic optimization",
"Click_to_delete_this_field": "Click to delete this field", "Click_to_delete_this_field": "Click to delete this field",
"Create_dataset": "Create a knowledge base",
"Custom_params": "input parameters", "Custom_params": "input parameters",
"Edit_tool": "Edit tool", "Edit_tool": "Edit tool",
"Filed_is_deprecated": "This field is deprecated", "Filed_is_deprecated": "This field is deprecated",
...@@ -126,6 +127,10 @@ ...@@ -126,6 +127,10 @@
"custom_plugin_user_guide_label": "User Guide", "custom_plugin_user_guide_label": "User Guide",
"custom_plugin_user_guide_placeholder": "Use markdown syntax", "custom_plugin_user_guide_placeholder": "Use markdown syntax",
"dataset": "dataset", "dataset": "dataset",
"dataset.Select_dataset_model_tip": "Only knowledge bases with the same index model can be selected",
"dataset.create_dataset_tips": "For more advanced operations, please go to",
"dataset_create_success": "The knowledge base was created successfully and files are being indexed in the background.",
"dataset_empty_tips": "You don’t have a knowledge base yet, create one first.",
"dataset_search_tool_description": "Call the \"Semantic Search\" and \"Full-text Search\" capabilities to find reference content that may be related to the problem from the \"Knowledge Base\". \nPrioritize calling this tool to assist in answering user questions.", "dataset_search_tool_description": "Call the \"Semantic Search\" and \"Full-text Search\" capabilities to find reference content that may be related to the problem from the \"Knowledge Base\". \nPrioritize calling this tool to assist in answering user questions.",
"dataset_select": "Optional knowledge base", "dataset_select": "Optional knowledge base",
"day": "Day", "day": "Day",
......
...@@ -783,7 +783,6 @@ ...@@ -783,7 +783,6 @@
"dataset.Manual collection Tip": "Manual datasets allow you to create an empty container to hold data", "dataset.Manual collection Tip": "Manual datasets allow you to create an empty container to hold data",
"dataset.Move Failed": "Move Error", "dataset.Move Failed": "Move Error",
"dataset.Select Dataset": "Select This Dataset", "dataset.Select Dataset": "Select This Dataset",
"dataset.Select Dataset Tips": "Only Datasets with the same index model can be selected",
"dataset.Select Folder": "Enter Folder", "dataset.Select Folder": "Enter Folder",
"dataset.Training Name": "Data Training", "dataset.Training Name": "Data Training",
"dataset.collections.Collection Embedding": "{{total}} Indexes", "dataset.collections.Collection Embedding": "{{total}} Indexes",
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
"Add_tool": "添加工具", "Add_tool": "添加工具",
"AutoOptimize": "自动优化", "AutoOptimize": "自动优化",
"Click_to_delete_this_field": "点击删除该字段", "Click_to_delete_this_field": "点击删除该字段",
"Create_dataset": "创建知识库",
"Custom_params": "输入参数", "Custom_params": "输入参数",
"Edit_tool": "编辑工具", "Edit_tool": "编辑工具",
"Filed_is_deprecated": "该字段已弃用", "Filed_is_deprecated": "该字段已弃用",
...@@ -129,6 +130,10 @@ ...@@ -129,6 +130,10 @@
"custom_plugin_user_guide_label": "使用说明", "custom_plugin_user_guide_label": "使用说明",
"custom_plugin_user_guide_placeholder": "使用 markdown 语法", "custom_plugin_user_guide_placeholder": "使用 markdown 语法",
"dataset": "知识库", "dataset": "知识库",
"dataset.Select_dataset_model_tip": "仅能选择同一个索引模型的知识库",
"dataset.create_dataset_tips": "更多高级操作请前往",
"dataset_create_success": "知识库创建成功,正在后台索引文件",
"dataset_empty_tips": "你还没有知识库,先创建一个吧",
"dataset_search_tool_description": "调用“语义检索”和“全文检索”能力,从“知识库”中查找可能与问题相关的参考内容。优先调用该工具来辅助回答用户的问题。", "dataset_search_tool_description": "调用“语义检索”和“全文检索”能力,从“知识库”中查找可能与问题相关的参考内容。优先调用该工具来辅助回答用户的问题。",
"dataset_select": "可选知识库", "dataset_select": "可选知识库",
"day": "日", "day": "日",
......
...@@ -786,7 +786,6 @@ ...@@ -786,7 +786,6 @@
"dataset.Manual collection Tip": "手动数据集允许创建一个空的容器装入数据", "dataset.Manual collection Tip": "手动数据集允许创建一个空的容器装入数据",
"dataset.Move Failed": "移动出现错误~", "dataset.Move Failed": "移动出现错误~",
"dataset.Select Dataset": "选择该知识库", "dataset.Select Dataset": "选择该知识库",
"dataset.Select Dataset Tips": "仅能选择同一个索引模型的知识库",
"dataset.Select Folder": "进入文件夹", "dataset.Select Folder": "进入文件夹",
"dataset.Training Name": "数据训练", "dataset.Training Name": "数据训练",
"dataset.collections.Collection Embedding": "{{total}} 组索引中", "dataset.collections.Collection Embedding": "{{total}} 组索引中",
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
"Add_tool": "添加工具", "Add_tool": "添加工具",
"AutoOptimize": "自動優化", "AutoOptimize": "自動優化",
"Click_to_delete_this_field": "點擊刪除該字段", "Click_to_delete_this_field": "點擊刪除該字段",
"Create_dataset": "創建知識庫",
"Custom_params": "輸入參數", "Custom_params": "輸入參數",
"Filed_is_deprecated": "該字段已棄用", "Filed_is_deprecated": "該字段已棄用",
"HTTPTools_Create_Type": "創建方式", "HTTPTools_Create_Type": "創建方式",
...@@ -125,6 +126,10 @@ ...@@ -125,6 +126,10 @@
"custom_plugin_user_guide_label": "使用說明", "custom_plugin_user_guide_label": "使用說明",
"custom_plugin_user_guide_placeholder": "使用 markdown 語法", "custom_plugin_user_guide_placeholder": "使用 markdown 語法",
"dataset": "知識庫", "dataset": "知識庫",
"dataset.Select_dataset_model_tip": "僅能選擇同一個索引模型的知識庫",
"dataset.create_dataset_tips": "更多高級操作請前往",
"dataset_create_success": "知識庫創建成功,正在後台索引文件",
"dataset_empty_tips": "你還沒有知識庫,先創建一個吧",
"dataset_search_tool_description": "呼叫「語意搜尋」和「全文搜尋」功能,從「知識庫」中尋找可能與問題相關的參考內容。優先呼叫這個工具來協助回答使用者的問題。", "dataset_search_tool_description": "呼叫「語意搜尋」和「全文搜尋」功能,從「知識庫」中尋找可能與問題相關的參考內容。優先呼叫這個工具來協助回答使用者的問題。",
"dataset_select": "可選知識庫", "dataset_select": "可選知識庫",
"day": "日", "day": "日",
......
...@@ -782,7 +782,6 @@ ...@@ -782,7 +782,6 @@
"dataset.Manual collection Tip": "手動資料集允許建立一個空的容器來存放資料", "dataset.Manual collection Tip": "手動資料集允許建立一個空的容器來存放資料",
"dataset.Move Failed": "移動錯誤", "dataset.Move Failed": "移動錯誤",
"dataset.Select Dataset": "選擇此知識庫", "dataset.Select Dataset": "選擇此知識庫",
"dataset.Select Dataset Tips": "僅能選擇相同索引模型的知識庫",
"dataset.Select Folder": "進入資料夾", "dataset.Select Folder": "進入資料夾",
"dataset.Training Name": "資料訓練", "dataset.Training Name": "資料訓練",
"dataset.collections.Collection Embedding": "{{total}} 個索引", "dataset.collections.Collection Embedding": "{{total}} 個索引",
......
...@@ -77,7 +77,8 @@ export function useDatasetSelect() { ...@@ -77,7 +77,8 @@ export function useDatasetSelect() {
datasets: [], datasets: [],
paths: [] paths: []
}, },
loading: isFetching loading: isFetching,
runAsync: loadDatasets
} = useRequest2( } = useRequest2(
async () => { async () => {
const result = await Promise.all([ const result = await Promise.all([
...@@ -105,7 +106,8 @@ export function useDatasetSelect() { ...@@ -105,7 +106,8 @@ export function useDatasetSelect() {
setSearchKey, setSearchKey,
datasets: data.datasets, datasets: data.datasets,
paths: data.paths, paths: data.paths,
isFetching isFetching,
loadDatasets
}; };
} }
......
...@@ -36,8 +36,8 @@ export const SelectDatasetRender = React.memo(function SelectDatasetRender({ ...@@ -36,8 +36,8 @@ export const SelectDatasetRender = React.memo(function SelectDatasetRender({
} = useDisclosure(); } = useDisclosure();
const selectedDatasets = useMemo(() => { const selectedDatasets = useMemo(() => {
if (Array.isArray(item.value)) return item.value as SelectedDatasetType; if (Array.isArray(item.value)) return item.value as SelectedDatasetType[];
return [] as SelectedDatasetType; return [] as SelectedDatasetType[];
}, [item.value]); }, [item.value]);
useEffect(() => { useEffect(() => {
......
...@@ -20,7 +20,6 @@ import MyIcon from '@fastgpt/web/components/common/Icon'; ...@@ -20,7 +20,6 @@ import MyIcon from '@fastgpt/web/components/common/Icon';
import { useRequest2 } from '@fastgpt/web/hooks/useRequest'; import { useRequest2 } from '@fastgpt/web/hooks/useRequest';
import { useToast } from '@fastgpt/web/hooks/useToast'; import { useToast } from '@fastgpt/web/hooks/useToast';
import { useRouter } from 'next/router'; import { useRouter } from 'next/router';
import { TabEnum } from '../../../../../pages/dataset/detail/index';
import { import {
postCreateDatasetApiDatasetCollection, postCreateDatasetApiDatasetCollection,
postCreateDatasetExternalFileCollection, postCreateDatasetExternalFileCollection,
......
...@@ -42,7 +42,7 @@ const requestLLMPargraph = async ({ ...@@ -42,7 +42,7 @@ const requestLLMPargraph = async ({
rawText: string; rawText: string;
model: string; model: string;
billId: string; billId: string;
paragraphChunkAIMode: ParagraphChunkAIModeEnum; paragraphChunkAIMode?: ParagraphChunkAIModeEnum;
}) => { }) => {
if ( if (
!global.feConfigs?.isPlus || !global.feConfigs?.isPlus ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment