FastGPT icon indicating copy to clipboard operation
FastGPT copied to clipboard

Invalid array length问题

Open mitht opened this issue 10 months ago • 0 comments

例行检查

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

你的版本 fastgpt 4.8.22

  • [ ] 公有云版本
  • [ ] 私有部署版本, 具体版本号:

问题描述, 日志截图,配置文件等 创建知识库,Embeddings 使用的 m3e,处理方式问答拆分;报错 [Error] 2025-03-24 11:17:42 Api response error: /api/core/dataset/collection/create/fileId, Invalid array length 更改pg数据库vector字段后,还是报这个错 ALTER TABLE modeldata alter COLUMN vector type vector(1024)

错误日志: [Warn] 2025-03-24 11:16:51 Slow operation 3907ms {"query":{"username":"root"},"op":{},"duration":3907} default team exist new ObjectId("67d0fba8a44359710e377470") root user init: { username: 'root', password: '1234' } pg connected [Warn] 2025-03-24 11:16:53 pg query time: 708ms, sql: CREATE EXTENSION IF NOT EXISTS vector; CREATE TABLE IF NOT EXISTS modeldata ( id BIGSERIAL PRIMARY KEY, vector VECTOR(1536) NOT NULL, team_id VARCHAR(50) NOT NULL, dataset_id VARCHAR(50) NOT NULL, collection_id VARCHAR(50) NOT NULL, createtime TIMESTAMP DEFAULT CURRENT_TIMESTAMP );

[Info] 2025-03-24 11:16:53 init pg successful Init system success [Info] 2025-03-24 11:16:53 Load system plugin successfully: 21 Warning: data for page "/" is 156 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance. See more info here: https://nextjs.org/docs/messages/large-page-data [Info] 2025-03-24 11:16:55 [QA Queue] Done [Info] 2025-03-24 11:16:55 [Vector Queue] Done [Info] 2025-03-24 11:17:00 [Vector Queue] Done [Info] 2025-03-24 11:17:00 [QA Queue] Done Load model====== outlinks [Info] 2025-03-24 11:17:10 Upload file success 测试.txt, cost 32ms Warning: Cannot polyfill DOMMatrix, rendering may be broken. Warning: Cannot polyfill Path2D, rendering may be broken. [Info] 2025-03-24 11:17:18 Worker readFile run time: 1302ms [Error] 2025-03-24 11:17:42 Api response error: /api/core/dataset/collection/create/fileId, Invalid array length { message: 'Invalid array length', stack: 'Error: Invalid array length\n' + ' at o (/app/projects/app/.next/server/chunks/29091.js:6:2607)\n' + ' at /app/projects/app/.next/server/chunks/29091.js:6:2723\n' + ' at Array.map ()\n' + ' at c (/app/projects/app/.next/server/chunks/29091.js:6:2706)\n' + ' at I (/app/projects/app/.next/server/chunks/29091.js:7:12215)\n' + ' at b (/app/projects/app/.next/server/chunks/29091.js:7:3925)\n' + ' at f (/app/projects/app/.next/server/pages/api/core/dataset/collection/create/fileId.js:1:8861)\n' + ' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' + ' at async /app/projects/app/.next/server/pages/api/core/dataset/training/getDatasetTrainingQueue.js:1:5735\n' + ' at async K (/app/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js:20:16853)' } [Info] 2025-03-24 11:18:00 [Vector Queue] Done [Info] 2025-03-24 11:18:00 [QA Queue] Done [Info] 2025-03-24 11:19:00 [QA Queue] Done [Info] 2025-03-24 11:19:00 [Vector Queue] Done

复现步骤

预期结果

相关截图

Image Image

mitht avatar Mar 24 '25 11:03 mitht