feat(dataset/tag): 知识库标签过滤功能V2 - #7495
Open
SteelHe wants to merge 1 commit into
Open
Conversation
- 标签类型扩展:新增 tagType 字段 (string/number/datetime/array),仅创建时确定,编辑不可修改
- Collection 标签值:tags 字段扩展为混合格式 (string ObjectId | {tagId, value}),支持新旧共存
- 标签管理 API (pro): batchUpsert / setCollectionTags / batchSetCollectionTags,事务保护
- 搜索过滤增强:filterCollectionByKeyValueTags + checkValue,支持 4 类型 × 13 操作符
- Collection 创建链路:createOneCollection 支持混合 tags 入参
- Workflow + Agent V2:datasetSearch 节点新增 tagFilterConfig 渲染,Agent 搜索传递 collectionFilterMatch
- UTC 时间工具:toUTCSeconds / fromUTCSeconds
- 错误码 + i18n:501013~501023 标签错误码 × 三国语言
- 历史数据迁移,完全向后兼容
Co-Authored-By: Claude Code <noreply@anthropic.com>
SteelHe
force-pushed
the
feat-tag-filter
branch
from
August 11, 2026 06:55
986acd1 to
0a3ba1b
Compare
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.
Summary
Validate
pnpm --dir packages/service exec vitest run -c vitest.config.ts \ test/core/dataset/search/collectionFilter.test.ts \ test/core/dataset/utils.test.ts \ test/core/dataset/delete/processor.test.tspnpm --dir projects/app exec vitest run -c vitest.config.ts \ test/api/support/openapi/tag.test.ts \ test/api/core/dataset/collection/paths.test.ts \ test/api/core/dataset/collection/trainingStatus.test.ts