feat(knowledge): 支持按知识库配置文档数量上限 - #427
Open
chujieHong wants to merge 1 commit into
Open
Conversation
- schema v10: knowledge_bases 新增 max_documents 列(默认 100,0=不限制,上限 10000) - 上传时按 KB 自身上限在 SQL 事务内原子拦截,第 N+1 个文档被拒绝 - 前端编辑模态框在"描述"与"图标"之间新增"文档数量上限"输入项,保存即同步 - 详情面板"X/Y 文档"文本、上限 Alert、上传按钮均改用该 KB 自身上限 - SQLite 通过启动兜底加列,PostgreSQL 使用 ADD COLUMN IF NOT EXISTS 幂等迁移
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更内容
为每个知识库新增可独立配置的文档数量上限(max_documents),替代原来写死的 100。
后端
前端
测试
潜在风险