Commit Graph

366 Commits

Author SHA1 Message Date
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
6b21f93ae8 fix: 调整租户选择器样式,移除左侧外边距 2025-12-03 11:39:56 +08:00
wizardchen
46d41954bd feat: 增强租户选择器功能,支持保存和显示选中租户名称 2025-12-03 11:39:31 +08:00
wizardchen
26267f6e79 feat: Implement cross-tenant access headers for chat and multimodal test APIs 2025-12-03 11:39:10 +08:00
wizardchen
541e40eb75 feat: 调整模态框层级显示并完善跨租户访问权限控制,优化数据库字段类型定义 2025-12-03 11:11:57 +08:00
wizardchen
86e8ee0e01 feat: 添加问题生成功能的前端支持,包括多语言展示和知识库列表标识 2025-12-03 01:58:03 +08:00
wizardchen
16562eebbb feat: 添加AI问题生成功能,支持配置生成数量并在前端展示生成的问题 2025-12-03 01:42:31 +08:00
wizardchen
12497a2fea feat: 重构客户端结构体,增强块、消息、会话和租户模型,并更新API文档 2025-12-02 22:47:13 +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
e66ace9c14 refactor: Remove unused SQL migration files and clean up docker-compose configurations
- Deleted several SQL migration files related to agent configuration, cleanup of unreferenced models, MCP services, and web search configuration.
- Updated docker-compose files to remove references to obsolete SQL migration scripts, streamlining the development environment setup.
- Improved code maintainability by eliminating unnecessary files and configurations.
2025-12-01 21:54:04 +08:00
wizardchen
8ad57a7e20 feat: Add agent configuration columns and indexes to tenants, sessions, and messages tables 2025-12-01 21:15:38 +08:00
wizardchen
927d990e2e Merge remote-tracking branch 'prc/master' 2025-12-01 18:27:35 +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
begoniezhao
f5963276d6 Refactor code for improved readability and consistency 2025-12-01 18:15:39 +08:00
begoniezhao
5d6729fc0c refactor: Introduce create_chunking_config function for better readability and maintainability 2025-12-01 18:07:43 +08:00
begoniezhao
3e31fdeefd style: add necessary comments to improve code quality
- Add docstrings and inline comments for key functions and complex logic
- Unify comment style, eliminate magic numbers and ambiguous variable names
- No functional changes, only improve maintainability
2025-12-01 17:43:26 +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
wizardchen
60241a2d29 refactor: Improve error handling and user feedback in file upload process for enhanced reliability and user experience 2025-12-01 16:48:04 +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
2e3a1fb9db chore: Add JWT_SECRET environment variable to docker-compose for enhanced security configuration 2025-11-27 18:29:19 +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
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
530e344e8a Merge remote-tracking branch 'wizard/main' 2025-11-26 22:15:51 +08:00
wizardchen
60f309bb46 chore: Update architecture diagram to reflect recent changes 2025-11-26 22:13:13 +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
f69ca4df71 docs: Update README files with new terminology and images for Knowledge Base Management and Agent Mode Tool Call Process 2025-11-26 21:18:50 +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
07ff15db85 feat: Conditionally render settings group based on graph database status 2025-11-26 09:23:33 +00:00
begoniezhao
9c3d4ec922 feat: Add warning message for disabled knowledge graph database and provide guidance on enabling it 2025-11-26 09:23:33 +00:00
begoniezhao
c1f3a0df2d refactor: 将 extractConfig 字段重命名为 nodeExtractConfig 并同步更新相关引用 2025-11-26 09:23:33 +00:00
begoniezhao
c419049435 feat: Add Graph Settings component for managing graph extraction configurations 2025-11-26 09:23:33 +00:00