wizardchen
ca1b3da1df
feat(organization): add member limit feature
...
- Introduced a new member limit feature for organizations, allowing a maximum number of members to be set (default is 50; 0 means unlimited).
- Updated API endpoints to handle member limit during organization creation and updates.
- Implemented validation to prevent adding members when the limit is reached.
- Enhanced UI components to display and manage member limits, including localization updates for English and Chinese.
- Added migration files to support the new member limit column in the organizations table.
This update improves organization management by allowing administrators to control membership size.
2026-02-09 11:40:25 +08:00
wizardchen
2818a4fe8f
feat(organization): implement searchable organizations feature
...
- Added a 'searchable' flag to organizations, allowing them to be discoverable and joinable by ID without an invite code.
- Introduced API endpoints for searching and joining searchable organizations.
- Updated UI components to support searching for organizations and displaying results.
- Enhanced localization for new search-related features in both English and Chinese.
This update improves user experience by enabling easier discovery and joining of organizations.
2026-02-09 11:40:25 +08:00
wizardchen
4158773849
feat: add organization management features
...
- Introduced a new API for organization management, including creation, updating, and deletion of organizations.
- Implemented organization sharing functionality for knowledge bases, allowing users to share knowledge bases with specific organizations and set permissions.
- Added UI components for organization selection and sharing dialogs.
- Enhanced existing components to support organization-related features, including shared knowledge base handling and organization role management.
This update enhances collaboration capabilities within the application by allowing users to manage and share knowledge bases across different organizations.
2026-02-09 11:40:25 +08:00
wizardchen
602086d884
feat: implement tenant isolation for knowledge base retrieval
...
- Added GetKnowledgeBaseByIDAndTenant method to enforce tenant isolation when retrieving knowledge bases by ID.
- Updated CopyKnowledgeBase method to use tenant-scoped retrieval, preventing cross-tenant cloning.
- Enhanced error handling in the KnowledgeBaseHandler to validate tenant ownership for source and target knowledge bases during copy operations.
2026-02-06 19:55:29 +08:00
wizardchen
2d6efec84f
feat: enhance agent skills sandbox configuration and availability
...
- Updated .env.example to set default sandbox mode to 'docker' and added timeout and docker image variables.
- Modified docker-compose files to include a sandbox service for building and pulling the sandbox image.
- Adjusted frontend API to reflect sandbox availability for skills, ensuring UI elements are conditionally displayed based on sandbox status.
- Implemented backend logic to disable skills when the sandbox is not enabled, improving error handling and user experience.
2026-02-04 20:58:24 +08:00
nullkey
03446f35d3
feat: adjust sandbox setting of agentConfig
2026-02-04 20:08:49 +08:00
nullkey
43a2c647ea
feat: optimize security and deployment of agent skills
2026-02-04 20:08:49 +08:00
nullkey
3f21345546
feat: adapt preloaded skills to smart-reasoning agent
2026-02-04 20:08:49 +08:00
nullkey
33f7e7da66
feat: support agent skills
...
feat:support agent skills
2026-02-04 20:08:49 +08:00
joeyczheng
9c57e11f63
feat: add bing search provider
...
Signed-off-by: joeyczheng <joeyczheng@tencent.com>
2026-02-02 20:53:22 +08:00
begoniezhao
5f7c23a1b9
refactor: Refactor rune handling for correct chunk merging
2026-02-02 16:47:35 +08:00
wizardchen
14ad38fd83
fix: tighten SSRF protection for URL imports
2026-01-27 11:09:53 +08:00
wizardchen
faf1c9a37b
feat: add matched question field to FAQ search results
2026-01-26 16:32:18 +08:00
wizardchen
7d272cc92c
feat: add retrieve KB only when mentioned option
2026-01-26 10:44:09 +08:00
nullkey
de06bb24d3
fix: cleanup conversation context stored in Redis
2026-01-23 10:33:01 +08:00
wizardchen
2a99e2458d
feat: add SSRF protection for URL fetching
2026-01-21 19:13:14 +08:00
wizardchen
e55cbaa057
fix: switch to append mode on retry to prevent data loss
2026-01-21 19:13:14 +08:00
wizardchen
f183b5c598
feat: offload large FAQ imports to object storage
2026-01-21 19:13:14 +08:00
DJ
8b160bba15
fix: use typed context key instead of string literal- Add UserContextKey constant to types package- Replace bare string 'user' with types.UserContextKey in auth middleware- Update user service to use UserContextKey for context value retrieval- Fixes staticcheck SA1029 warningThis prevents potential context key collisions.
2026-01-21 19:12:24 +08:00
wizardchen
aa4af5365e
feat: add thinking mode support for agents
2026-01-20 18:19:44 +08:00
wizardchen
b1895f7443
perf: batch tag reference counting
2026-01-20 18:19:44 +08:00
wizardchen
a6ba12f389
fix: switch to append mode on retry to prevent data loss
2026-01-20 18:19:44 +08:00
wizardchen
4636bca2b7
perf: optimize FAQ security check with concurrency
2026-01-20 18:19:44 +08:00
wizardchen
5665fb00cb
refactor: store FAQ import task info instead of ID
2026-01-20 18:19:44 +08:00
wizardchen
fad72fc272
refactor: web search provider registry pattern
2026-01-20 18:19:44 +08:00
wizardchen
b74545b007
fix: check existing progress before saving
2026-01-20 18:19:44 +08:00
wizardchen
b969681269
fix: only cleanup unused tags in replace mode
2026-01-20 18:19:44 +08:00
wizardchen
cb9369b16b
feat: support large FAQ imports via object storage
2026-01-20 18:19:44 +08:00
wizardchen
a9df80b5db
feat: offload large FAQ imports to object storage
2026-01-20 18:19:44 +08:00
lyingbug
e5baf69624
Merge pull request #555 from lyingbug/main
...
FAQ Update
2026-01-15 20:09:20 +08:00
joeyczheng
b1633c836a
fix: concurrent map writes due to dig.Container is not thread safe
...
Signed-off-by: joeyczheng <joeyczheng@tencent.com>
2026-01-15 20:07:11 +08:00
wizardchen
0ea9acfc2f
feat: 支持删除文档类型标签
2026-01-15 19:38:16 +08:00
wizardchen
57d6fea8bc
fix: 禁用 stdio 传输以防止命令注入风险
2026-01-15 14:49:19 +08:00
wizardchen
48a0f9b508
Merge remote-tracking branch 'github_public/main'
2026-01-15 14:39:35 +08:00
wizardchen
d530a02cfe
fix: 修复FAQ更新时的重复检查逻辑
2026-01-15 14:34:24 +08:00
Xia Dong
cec722aa43
feat(knowledge): Add tag_id support for knowledge creation and file uploads
...
- Introduced tag_id parameter in various knowledge-related API functions to allow categorization of knowledge entries.
- Updated frontend components to handle tag_id during knowledge creation and file uploads.
- Enhanced UI store to manage the selected tag ID for better user experience in categorizing knowledge.
2026-01-14 19:39:35 +08:00
begoniezhao
6c90480e82
refactor: Improve chunk merge/split logic and add validation
2026-01-14 19:36:04 +08:00
wizardchen
3f25d36c46
perf: 优化FAQ索引更新和删除性能
2026-01-14 17:30:04 +08:00
wizardchen
17604c9b94
perf: 为批量索引添加并发保存优化
2026-01-14 17:21:42 +08:00
wizardchen
5a93be8dbd
fix: 清理未使用标签时忽略已软删除记录
2026-01-14 17:19:30 +08:00
wizardchen
e3ac490c8e
fix: 修复 FAQ 导入时清理 Tag 的逻辑
2026-01-14 17:19:21 +08:00
wizardchen
1c899a6f2c
fix: 修复FAQ条目标签变更时未更新的问题
2026-01-14 17:19:05 +08:00
wizardchen
dae772dd17
fix: 确保"未分类"标签排在最前
2026-01-14 17:18:45 +08:00
wizardchen
858d8875e8
fix: 修复切片越界导致的潜在崩溃
2026-01-14 17:18:35 +08:00
wizardchen
6c9d31496f
feat: 添加FAQ导入成功条目详情展示
2026-01-14 17:16:53 +08:00
wizardchen
9338603c20
feat: 支持向 FAQ 条目添加相似问
2026-01-14 17:14:06 +08:00
wizardchen
14d7d3d995
feat: 为 FAQ 和标签引入 seq_id 支持
2026-01-14 17:13:44 +08:00
wizardchen
84a4ec62de
refactor: 简化FAQ导入结果获取逻辑
...
将导入结果字段合并到FAQImportProgress结构体中,当状态为completed时自动填充。删除了独立的GetLastFAQImportResult接口和相关方法,客户端改为通过进度接口获取已完成任务的结果,并使用localStorage记录最后完成的任务ID。
2026-01-14 17:09:19 +08:00
wizardchen
9215c82d3b
feat: 添加FAQ导入结果持久化展示功能
2026-01-14 17:09:19 +08:00
wizardchen
042d860329
feat: 使用增强的任务ID生成器替换UUID
2026-01-14 17:09:19 +08:00
wizardchen
953e0c1a55
feat: 支持租户ID和关键词同时搜索
2026-01-14 17:09:19 +08:00
wizardchen
a63a2a8daf
refactor: 合并 FAQ 导入和验证逻辑
2026-01-14 17:09:18 +08:00
wizardchen
100484f13d
feat: 新增FAQ批量导入dry run功能
2026-01-14 17:08:49 +08:00
joeyczheng
4960c026d2
feat: add google provider for web search
...
Signed-off-by: joeyczheng <joeyczheng@tencent.com>
2026-01-14 17:08:26 +08:00
begoniezhao
3fc9ce33b4
feat(knowledge): Omit DeletedAt on update operations
2026-01-14 17:08:26 +08:00
joeyczheng
17f9a97ce4
feat: add google provider for web search
...
Signed-off-by: joeyczheng <joeyczheng@tencent.com>
2026-01-13 20:55:16 +08:00
begoniezhao
bdc9171242
feat(knowledge): Omit DeletedAt on update operations
2026-01-09 14:25:56 +08:00
wizardchen
d51140e033
feat: 在搜索结果中批量补充标签名称
2026-01-07 15:37:27 +08:00
wizardchen
be38966cbe
feat: 更新FAQ条目时返回更新后的数据
2026-01-07 11:50:57 +08:00
wizardchen
b71e7084fd
feat: 将未分类FAQ条目转为"未分类"标签
2026-01-07 11:08:59 +08:00
wizardchen
bebeb2a643
feat: Replace模式清理未使用标签
2026-01-05 16:05:38 +08:00
wizardchen
4ffda00a86
feat: 改进未分类标签的处理逻辑
...
将未分类标签从空字符串改为特殊标识符__untagged__,统一前后端处理逻辑
2026-01-04 20:14:56 +08:00
wizardchen
d72b6997cb
feat: 添加智能体文件类型限制,内置数据分析师智能体
2025-12-31 18:25:58 +08:00
wizardchen
884153aeb8
feat: 增强模型选择和错误处理机制
...
优化模型ID传递逻辑,支持请求级别的模型覆盖;完善流式响应的错误处理
2025-12-31 15:36:20 +08:00
wizardchen
7cf5dfff6a
fix: 修复标签创建重复和流式响应解析问题
...
修复标签创建时未检查重复名称的问题,增加冲突错误返回。
优化流式响应中对引用数据的处理,支持序列化后的数据结构解析。
2025-12-31 15:36:20 +08:00
wizardchen
9beca5b688
feat: 添加Summary配置的Thinking字段
2025-12-31 15:36:20 +08:00
wizardchen
0d020ce30c
feat: 添加思考模式配置支持
...
在SummaryConfig结构体中新增Thinking字段,支持启用思考模式功能。更新相关配置文件、类型定义和客户端代码以支持该功能。
2025-12-31 15:36:20 +08:00
wizardchen
99eabed688
fix: 修复并行搜索中WebSearchStateService缺失问题
2025-12-30 19:44:53 +08:00
wizardchen
da1dcb0cda
feat: 批量更新tag时更新索引字段
2025-12-30 19:44:53 +08:00
wizardchen
ac00206e77
feat: 支持FAQ两级优先级标签过滤
...
添加FAQ搜索支持两级优先级标签过滤功能,新增first_priority_tag_ids和second_priority_tag_ids字段,更新各检索器实现以支持按标签ID过滤,优化搜索结果排序确保优先级标签结果优先展示。
2025-12-30 19:44:53 +08:00
begoniezhao
907e9a5522
feat: Add DataSchema tool for retrieving schema information from CSV and Excel files
2025-12-29 20:03:51 +08:00
wizardchen
3905b6fe5d
feat: 优化知识块分页查询功能,支持按知识类型区分搜索和排序逻辑
2025-12-29 17:18:26 +08:00
wizardchen
c9a6c3134a
Merge branch 'custom_agent'
2025-12-29 17:01:23 +08:00
wizardchen
6c8e261a5f
feat: 支持知识库选择模式和标题生成模型配置
...
- 移除对rerankModel的强制检查,支持无知识库场景
- 优化知识库解析逻辑,优先处理用户明确指定的知识库
2025-12-29 14:35:13 +08:00
nullkey
e9a2a7b3e5
feat: 新增对多家平台的模型适配
2025-12-29 12:18:42 +08:00
wizardchen
6bc19ab082
feat: 统一系统提示词并优化智能体选择器界面
...
- 将系统提示词从分离的网络搜索开/关状态合并为统一提示词,使用 {{web_search_status}} 占位符动态控制行为
- 重构智能体选择器,从简单tooltip升级为内容丰富的popup,显示智能体详细信息、类型和能力
- 新增FAQ优先策略配置,支持FAQ答案优先于普通文档
- 优化知识库选择逻辑,智能体切换时自动同步配置的知识库
- 更新相关接口类型定义和国际化文本
2025-12-28 21:46:42 +08:00
wizardchen
0ca947981a
refactor: 调整智能体配置,增强智能体选择与状态管理
2025-12-26 21:31:02 +08:00
wizardchen
10f8830c01
feat: 优化知识库删除流程,引入异步任务处理重操作;新增ProcessKBDelete方法实现后台清理
2025-12-25 22:07:42 +08:00
wizardchen
be1ec4de5d
refactor: 移除安全校验和长度限制,简化输入处理逻辑
2025-12-25 22:07:42 +08:00
wizardchen
0e5370c7c4
fix: 修复标签ID处理逻辑,正确处理空字符串与UntaggedTagID的判断条件
2025-12-25 22:07:42 +08:00
wizardchen
a025ebe7fb
feat: 优化标签ID处理逻辑,新增批量更新TagID功能
2025-12-25 22:07:42 +08:00
wizardchen
4c0846f9c7
feat: 增强标签删除功能,支持排除指定ID;新增异步索引删除任务优化删除流程
2025-12-25 22:07:42 +08:00
wizardchen
87ead9dec4
feat: 新增FAQ条目批量更新排除功能,支持在ByTag操作中排除指定ID列表
2025-12-25 22:07:42 +08:00
wizardchen
557081c8f8
fix: 修复不同数据库类型的JSON查询兼容性问题,支持MySQL和PostgreSQL的差异处理
2025-12-25 22:07:42 +08:00
wizardchen
abfe87eaed
feat: 重构提示词模板系统,新增多场景模板配置支持;优化智能体知识库选择模式,支持全部/指定/禁用三种模式
2025-12-25 18:22:36 +08:00
wizardchen
1c1033101d
feat: 增强FAQ搜索功能,支持指定搜索字段(标准问题/相似问法/答案)
2025-12-24 20:47:08 +08:00
wizardchen
423cb3a2a3
feat: 增强知识库搜索功能,支持多知识库和指定文件ID搜索;优化SearchKnowledgeRequest结构,向后兼容单知识库ID参数
2025-12-24 20:47:08 +08:00
wizardchen
ec9d6ee961
fix: 修复GORM批量插入时零值字段被忽略的问题,确保IsEnabled和Flags字段正确插入
2025-12-24 20:47:08 +08:00
wizardchen
8430b9fa2d
feat: 新增FAQ列表排序功能,支持按更新时间升序/降序排列;优化标签名称批量查询,提升查询效率
2025-12-24 20:47:08 +08:00
wizardchen
c11b3e5b00
feat: 新增FAQ条目获取接口,支持按ID查询单个FAQ条目;增强标签删除功能,支持content_only模式仅删除标签下内容
2025-12-24 20:47:08 +08:00
wizardchen
dc1ab5b81d
Merge branch 'master' into custom_agent
2025-12-24 15:53:04 +08:00
wizardchen
0bbd1450cc
feat: 增强FAQ搜索功能,支持指定搜索字段(标准问题/相似问法/答案)
2025-12-24 15:46:16 +08:00
wizardchen
e45b82e9be
feat: 增强知识库搜索功能,支持多知识库和指定文件ID搜索;优化SearchKnowledgeRequest结构,向后兼容单知识库ID参数
2025-12-24 15:46:16 +08:00
wizardchen
aa81662872
fix: 修复GORM批量插入时零值字段被忽略的问题,确保IsEnabled和Flags字段正确插入
2025-12-24 15:46:16 +08:00
wizardchen
b2eec004c9
feat: 新增FAQ列表排序功能,支持按更新时间升序/降序排列;优化标签名称批量查询,提升查询效率
2025-12-24 15:46:16 +08:00
wizardchen
529b31da23
feat: 新增FAQ条目获取接口,支持按ID查询单个FAQ条目;增强标签删除功能,支持content_only模式仅删除标签下内容
2025-12-24 15:46:16 +08:00
wizardchen
d0c5c4f6b0
feat: 新增智能体功能模块,支持自定义智能体创建、配置和选择
2025-12-24 10:34:41 +08:00
wizardchen
236b190b26
feat: 新增FAQ条目获取接口,支持按ID查询单个FAQ条目;增强标签删除功能,支持content_only模式仅删除标签下内容
2025-12-23 11:25:39 +08:00
wizardchen
3c83cf9873
feat: 增强知识库和搜索功能的逻辑
2025-12-22 13:11:31 +08:00
wizardchen
f7900a5e9a
feat: 新增MCP stdio传输安全验证机制,防止命令注入攻击
2025-12-22 13:11:31 +08:00