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
a36bf67166
feat: 新增环境变量DISABLE_REGISTRATION控制用户注册开关
2025-12-22 15:01:09 +08:00
wizardchen
d6c3636b20
refactor: 调整默认生产环境配置,禁用非生产环境下的Swagger文档访问
2025-12-22 15:01:09 +08:00
wizardchen
ac21f81dda
feat: 新增API Key认证支持,优化Swagger文档安全配置
2025-12-22 15:01:09 +08:00
wizardchen
58ae0d8350
feat: 支持在消息流中展示@的知识库和文件
2025-12-22 13:11:31 +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
wizardchen
da55707022
feat: 基于PostgreSQL官方解析器重构SQL安全验证机制,增强查询防护能力
2025-12-22 13:11:31 +08:00
wizardchen
de1ffa7f7c
feat: 支持输入框内选择知识库和文件,优化选择交互体验
2025-12-22 13:11:31 +08:00
wizardchen
485d8d7252
fix: 修正FAQ导入任务中knowledge ID的获取
2025-12-22 13:11:31 +08:00
wizardchen
ad450e6bce
feat: 重构FAQ导入进度,改用Redis存储任务状态
2025-12-22 13:11:31 +08:00
wizardchen
3546888317
fix: 优化知识库复制时的标签映射逻辑和FAQ克隆功能
2025-12-17 22:04:18 +08:00
wizardchen
942689783f
feat: 知识库复制时添加租户信息到上下文
2025-12-17 22:04:18 +08:00
wizardchen
3977d90181
feat: 完善知识库复制时生成问题的SourceID转换逻辑和标签映射功能
2025-12-17 22:04:18 +08:00
wizardchen
b70450ddd8
feat: 支持FAQ索引类型分离,新增is_enabled字段过滤和批量更新优化
2025-12-17 22:04:18 +08:00
wizardchen
509582a4d5
feat: 知识库异步复制功能支持进度追踪和增量同步
2025-12-17 22:04:18 +08:00
wizardchen
a7df6900eb
feat: 完善Swagger API文档生成功能
2025-12-17 22:04:18 +08:00
wizardchen
ad6bd157fd
feat: 新增FAQ条目导出功能,支持CSV格式导出
2025-12-17 22:04:18 +08:00
wizardchen
36f0968df0
feat: 修复数据库迁移中AUTO_RECOVER_DIRTY环境变量判断逻辑,默认启用自动恢复
2025-12-16 12:24:31 +08:00
wizardchen
95dfcf81cd
feat: 支持聊天消息中的图片预览功能,更新Agent提示以包含图文结果输出
2025-12-16 12:24:31 +08:00
wizardchen
8018bc2763
feat: 知识搜索和列表工具中的图片信息展示
2025-12-16 12:24:31 +08:00
wizardchen
efe7b5d0f1
feat: 优化异步任务重试逻辑,仅在最后一次重试时更新失败状态,改进混合搜索结果融合策略
2025-12-16 12:24:31 +08:00
wizardchen
3665d35dc5
feat: 新增FAQ条目答案策略字段,支持'all'和'random'两种模式
2025-12-15 17:22:09 +08:00
wizardchen
c461a59ecd
feat: 新增FAQ推荐标签和批量操作支持,优化标签删除逻辑
2025-12-12 19:57:08 +08:00
majian
3cc576a493
feat(database): update database initialization to conditionally handle embeddings
2025-12-10 17:13:30 +08:00
majian
40a29c8a88
fix: 修正MINIO_USE_SSL环境变量解析逻辑
2025-12-09 14:59:08 +08:00
wizardchen
1f6bb3f841
feat: 支持Qdrant多维度向量存储和全文检索优化,添加Docker Compose配置
2025-12-08 19:38:16 +08:00
wizardchen
c67a5d3949
feat: 支持数据库迁移脏状态自动恢复和Neo4j连接重试机制
2025-12-08 19:38:16 +08:00
wizardchen
d23b917667
feat: Add chunk enabled status support in Qdrant repository with batch update and deletion by source ID functionality
2025-12-05 14:31:16 +08:00
wizardchen
b1c79ccd4d
Merge remote-tracking branch 'github_public/main'
2025-12-05 14:21:56 +08:00
begoniezhao
a8143dc85a
feat: Add migration scripts for users and auth_tokens tables, including up and down operations
2025-12-04 20:50:50 +08:00
begoniezhao
1aa66bfa10
fix: Adjust the positions of AutoMigrate and MigrateVersion
2025-12-04 17:47:29 +08:00
begoniezhao
b24fdc2d24
feat: Add title field for creating knowledge requests.
2025-12-04 15:54:52 +08:00
wizardchen
a50f53d205
feat: Implement delete functionality for generated questions in knowledge base, including API and UI updates
2025-12-04 01:26:30 +08:00
wizardchen
e0d9be9405
feat: Add file type filtering to knowledge base search functionality, enhancing user experience and API capabilities
2025-12-04 00:20:22 +08:00
wizardchen
bee699f5bf
feat: Enhance knowledge base functionality by adding document search capability and updating related API and UI components
2025-12-04 00:13:34 +08:00
wizardchen
dafb95d46a
feat: Add summary status tracking for async summary generation in knowledge base
2025-12-03 20:35:55 +08:00
wizardchen
f0ca9883fc
feat: 优化知识库删除流程,增加状态标记防止异步任务冲突并完善状态常量定义
2025-12-03 19:43:48 +08:00
wizardchen
6b4d17ec70
feat: Implement parallel search functionality combining chunk and entity searches, enhancing retrieval efficiency and result accuracy
2025-12-03 17:45:21 +08:00
wizardchen
eafa0cd80b
refactor: 重构多模态配置检查逻辑,统一使用IsMultimodalEnabled方法并优化错误处理
2025-12-03 13:27:00 +08:00
wizardchen
313860bea4
feat: 增强VLM配置兼容性,支持新旧版本配置判断逻辑
2025-12-03 11:58:29 +08:00
wizardchen
541e40eb75
feat: 调整模态框层级显示并完善跨租户访问权限控制,优化数据库字段类型定义
2025-12-03 11:11:57 +08:00
wizardchen
16562eebbb
feat: 添加AI问题生成功能,支持配置生成数量并在前端展示生成的问题
2025-12-03 01:42:31 +08:00
wizardchen
f26cbe02e1
feat: Add synchronous creation of single FAQ entry and duplicate question detection, update API documentation and frontend handling
2025-12-02 21:14:24 +08:00
wizardchen
845d990a48
feat: Add tag management and FAQ management APIs, enhance knowledge base functionality with keyword search and custom file naming support
2025-12-02 20:39:59 +08:00
wizardchen
cdf576eb18
feat: Implement cross-tenant access functionality
...
- Added configuration for enabling cross-tenant access in the application.
- Introduced new API endpoints for listing and searching tenants, accessible only to users with the appropriate permissions.
- Updated user and tenant models to include the `can_access_all_tenants` field.
- Enhanced the authentication middleware to handle cross-tenant requests and validate user permissions.
- Created a new TenantSelector component for selecting tenants in the frontend, improving user experience.
- Updated internationalization files to support new tenant-related strings and messages.
2025-12-02 12:17:39 +08:00
wizardchen
85b1c4bc49
refactor: Introduce searchutil package for web search result conversion and keyword score normalization
...
- Migrate web search result conversion logic to a new searchutil package to avoid code duplication and improve maintainability.
- Implement robust keyword score normalization using percentile bounds in the searchutil package, enhancing score handling across different contexts.
- Update relevant functions in the application to utilize the new searchutil methods, streamlining the codebase.
2025-12-01 18:27:12 +08:00
wizardchen
be411affdb
refactor: Rename DuckDuckGo test function for consistency and improve code readability; format error handling code for better clarity
2025-12-01 17:32:43 +08:00
wizardchen
b10e262ce5
Merge remote-tracking branch 'prc/master'
2025-12-01 17:25:35 +08:00
wizardchen
93af4460d6
refactor: Remove agent_test command-line tool and associated files to streamline project structure and eliminate unused components
2025-12-01 17:24:57 +08:00
begoniezhao
15603dbac7
refactor: Clean up and organize code structure in initialization and request modules for improved maintainability
2025-12-01 14:48:33 +08:00
wizardchen
eb8bfddfd1
refactor: Update function signatures across multiple files to improve readability by adding context parameters and enhancing code structure
2025-11-28 16:17:52 +08:00
wizardchen
135e33eca4
refactor: Clean up code by removing unnecessary blank lines and improving comments for better readability and maintainability
2025-11-28 16:10:37 +08:00
wizardchen
a318a08ab7
refactor: Implement upload progress tracking in KnowledgeBaseList component and enhance error handling for file uploads
2025-11-28 15:32:51 +08:00
wizardchen
676ae18ef5
refactor: Update prompts in agent logic to clarify task requirements and enhance tool usage guidelines for improved understanding
2025-11-27 18:29:04 +08:00
wizardchen
c222993777
refactor: Enhance AgentQARequest structure with additional fields and improve session handling methods for clarity and functionality
2025-11-27 17:56:53 +08:00
wizardchen
0550d3669a
refactor: Remove unused cleanupFAQKnowledge function and optimize log sanitization in security utility
2025-11-27 15:15:36 +08:00
wizardchen
1bd207ecb1
refactor: Revise ProgressiveRAGSystemPrompt templates and enhance GrepChunks and KnowledgeSearch tool descriptions for clarity and precision
2025-11-27 14:19:57 +08:00
wizardchen
92f28ca205
refactor: Rename Title field to KnowledgeTitle and update JSON/GORM tags for clarity
2025-11-27 11:46:06 +08:00
Anush008
c7659c3d19
feat: Qdrant Vector Search support
...
Signed-off-by: Anush008 <anushshetty90@gmail.com>
2025-11-27 11:17:23 +08:00
wizardchen
8b59b84b6e
Merge remote-tracking branch 'wizard/master'
2025-11-27 10:54:08 +08:00
wizardchen
8f7a56308d
refactor: Sanitize log inputs in initialization handler to enhance security
2025-11-26 22:58:42 +08:00
wizardchen
a162b6e7c2
refactor: Enhance type sanitization for model creation to improve security
2025-11-26 22:30:12 +08:00
wizardchen
0425acfa10
refactor: Sanitize log inputs in message and tag handlers to enhance security
2025-11-26 22:02:33 +08:00
wizardchen
86c46c85b1
Merge remote-tracking branch 'prc/master'
2025-11-26 21:20:16 +08:00
wizardchen
544e16c4ee
refactor: Sanitize log inputs in knowledge and QA handlers to enhance security
2025-11-26 20:35:19 +08:00
wizardchen
06a1c96cf2
refactor: Sanitize log inputs in FAQ, Knowledge, and KnowledgeBase handlers to enhance security
2025-11-26 19:52:07 +08:00
wizardchen
85caee044a
refactor: Sanitize log inputs in agent and session handlers to enhance security
2025-11-26 19:08:19 +08:00
wizardchen
d41f8afe55
feat: Add JWT_SECRET configuration to .env.example and enhance pagination validation in chunk handler
2025-11-26 17:58:31 +08:00
begoniezhao
c419049435
feat: Add Graph Settings component for managing graph extraction configurations
2025-11-26 09:23:33 +00:00
wizardchen
b4ae609103
refactor: Sanitize log inputs in chunk and session handlers to enhance security
2025-11-26 16:36:09 +08:00
wizardchen
0132ece3fe
refactor: Sanitize log inputs in evaluation and session handlers to enhance security
2025-11-26 13:14:29 +08:00
wizardchen
dde085a466
refactor: Sanitize log inputs in chunk and session handlers to enhance security
2025-11-26 12:02:04 +08:00
wizardchen
b5890b3169
refactor: Enhance knowledge base and agent features in documentation
2025-11-26 11:27:48 +08:00
wizardchen
09642445de
refactor: Sanitize log inputs in user, auth, knowledge, and model handlers to enhance security
2025-11-26 10:50:53 +08:00
wizardchen
8e3c2d8547
refactor: Sanitize log inputs in mcp_service, duckduckgo, auth, faq, message, and model handlers to enhance security
2025-11-26 00:57:33 +08:00
wizardchen
9fc6c949e5
refactor: Sanitize log inputs in various handlers to enhance security
2025-11-26 00:19:26 +08:00
wizardchen
a0ada8bcdc
refactor: Improve Elasticsearch query construction and JWT secret retrieval
...
- Enhanced Elasticsearch query construction by safely building the query body using JSON marshaling, improving error handling for query parsing and marshaling.
- Updated JWT secret retrieval to securely generate a random secret if the environment variable is not set, ensuring better security practices.
2025-11-25 23:58:14 +08:00
wizardchen
016df3a4db
refactor: Sanitize log inputs across various handlers to enhance security
...
- Implemented input sanitization for logging in chunk, evaluation, initialization, knowledge, knowledgebase, mcp_service, model, tenant, and session handlers.
- Updated logging statements to use sanitized values for sensitive information, preventing potential injection attacks.
2025-11-25 23:33:34 +08:00
wizardchen
bf35a2861c
refactor: Sanitize log inputs to prevent injection attacks
2025-11-25 22:19:41 +08:00