Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You Have Not Selected a Dataset #3551

Open
7 tasks done
liwanfei999 opened this issue Jan 8, 2025 · 2 comments
Open
7 tasks done

You Have Not Selected a Dataset #3551

liwanfei999 opened this issue Jan 8, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@liwanfei999
Copy link

liwanfei999 commented Jan 8, 2025

例行检查

  • 我已确认目前没有类似 issue
  • 我已完整查看过项目 README,以及项目文档
  • 我使用了自己的 key,并确认我的 key 是可正常使用的
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

你的版本

  • 公有云版本
  • 私有部署版本, 具体版本号: v4.8.16

问题描述, 日志截图,配置文件等
在导航菜单Studio里面可以正常使用知识库+对话引导
在导航菜单chat里不可使用知识库+对话引导,提示:You Have Not Selected a Dataset

复现步骤
配置大模型,建立本地知识库,在导航菜单Studio里面使用知识库+对话引导,OK
点击导航菜单chat,选择上一步骤建立的应用,发送问题,提示:You Have Not Selected a Dataset
预期结果
在导航菜单chat里可使用知识库+对话引导应用。
相关截图
暂无

@liwanfei999 liwanfei999 added the bug Something isn't working label Jan 8, 2025
@liwanfei999
Copy link
Author

在导航菜单Studio里面使用知识库+对话引导,OK:
111

在导航菜单chat,选择相同的应用,发送问题,提示:You Have Not Selected a Dataset
222

@liwanfei999
Copy link
Author

堆栈跟踪:

vim /src/fastgpt/v4.8.16/src/packages/service/core/workflow/dispatch/dataset/search.ts
line 63:
if (datasets.length === 0) {
console.trace('Stack trace at the point of error:'); // lwf added:打印堆栈信息
return Promise.reject(i18nT('common:core.chat.error.Select dataset empty'));
}

$ cd /src/fastgpt/v4.8.16/src/project/app
$ pnpm dev
...
✓ Compiled /api/v1/chat/completions in 11s (5292 modules)
[Debug] 2025-01-08 14:50:23 Request start /api/v1/chat/completions
[Debug] 2025-01-08 14:50:23 Run node {"maxRunTimes":500,"appId":"677e047db12884b30bdd0898"}
[Debug] 2025-01-08 14:50:23 [dispatchWorkFlow] nodeRunWithActive: 系统配置
[Debug] 2025-01-08 14:50:23 Run node {"maxRunTimes":499,"appId":"677e047db12884b30bdd0898"}
[Debug] 2025-01-08 14:50:23 [dispatchWorkFlow] nodeRunWithActive: 流程开始
[Debug] 2025-01-08 14:50:23 Run node {"maxRunTimes":498,"appId":"677e047db12884b30bdd0898"}
[Debug] 2025-01-08 14:50:23 [dispatchWorkFlow] nodeRunWithActive: 知识库搜索
Trace: Stack trace at the point of error:
at Object.dispatchDatasetSearch [as datasetSearchNode] (webpack-internal:///(api)/../../packages/service/core/workflow/dispatch/dataset/search.ts:32:17)
at eval (webpack-internal:///(api)/../../packages/service/core/workflow/dispatch/index.ts:452:64)
at nodeRunWithActive (webpack-internal:///(api)/../../packages/service/core/workflow/dispatch/index.ts:467:11)
at eval (webpack-internal:///(api)/../../packages/service/core/workflow/dispatch/index.ts:329:24)
at checkNodeCanRun (webpack-internal:///(api)/../../packages/service/core/workflow/dispatch/index.ts:338:11)
at async Promise.all (index 0)
at async checkNodeCanRun (webpack-internal:///(api)/../../packages/service/core/workflow/dispatch/index.ts:367:45)
at async Promise.all (index 1)
at async dispatchWorkFlow (webpack-internal:///(api)/../../packages/service/core/workflow/dispatch/index.ts:523:9)
at async handler (webpack-internal:///(api)/./src/pages/api/v1/chat/completions.ts:205:109)
at async api (webpack-internal:///(api)/../../packages/service/common/middle/entry.ts:26:32)
at async K (/src/ts/fastgpt/v4.8.16/src/node_modules/.pnpm/next@14.2.5_@babel[email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/next-server/pages-api.runtime.dev.js:21:2871)
at async U.render (/src/ts/fastgpt/v4.8.16/src/node_modules/.pnpm/next@14.2.5_@babel[email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/next-server/pages-api.runtime.dev.js:21:3955)
at async DevServer.runApi (/dat/ai/src/ts/fastgpt/v4.8.16/src/node_modules/.pnpm/next@14.2.5_@babel[email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/server/next-server.js:600:9)
at async NextNodeServer.handleCatchallRenderRequest (/src/ts/fastgpt/v4.8.16/src/node_modules/.pnpm/next@14.2.5_@babel[email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/server/next-server.js:269:37)
error => common:core.chat.error.Select dataset empty
[Debug] 2025-01-08 14:50:23 Run node {"maxRunTimes":497,"appId":"677e047db12884b30bdd0898"}
[Debug] 2025-01-08 14:50:23 [dispatchWorkFlow] nodeRunWithSkip: AI 对话
[Info] 2025-01-08 14:50:23 completions running time: 0.143s
[Info] 2025-01-08 14:50:23 finish completions {"source":"fastgpt","teamId":"ea85d75e45e2b718a9","totalPoints":0}
[Debug] 2025-01-08 14:50:23 Request finish /api/v1/chat/completions, time: 155ms
POST /api/v1/chat/completions 200 in 11688ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant