Commit Graph

381 Commits

Author SHA1 Message Date
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
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 991cffb14c feat: Release v0.2.0 with major enhancements and new features 2025-11-26 11:57:24 +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
wizardchen 2f45bf7d86 refactor: Improve Elasticsearch query construction and error handling 2025-11-25 22:06:43 +08:00
wizardchen 64c44c9e27 refactor: Update tenant ID handling across the application 2025-11-25 16:30:54 +08:00
wizardchen 9f6f5f5773 feat: Enhance agent settings and UI components
- Updated the Input-field component to improve styling and consistency with new color scheme.
- Added model recommendation section in AgentSettings with localized content for better user guidance.
- Enhanced AgentStreamDisplay to conditionally show timeline based on event types, improving user experience.
- Updated botmsg and docInfo components for better display of web search references and document information.
- Improved fallback response handling in session management, allowing for more flexible user interactions.
- Introduced deduplication and scoring mechanisms in grep_chunks and knowledge_search tools to enhance search result relevance and diversity.
2025-11-25 13:28:21 +08:00
wizardchen 55d6bc7274 fix: Update chunk repository queries to use indexed chunk status 2025-11-24 15:50:55 +08:00
wizardchen e56233ef11 feat: Enhance chunk management and FAQ import functionality
- Updated chunk repository methods to support deletion of unindexed chunks and listing all FAQ chunks by knowledge ID.
- Introduced batch update functionality for chunks in the chunk service.
- Enhanced FAQ import logic to handle append and replace operations, improving efficiency and data integrity.
- Added content hash calculation for FAQ entries to facilitate quick matching and deduplication.
- Refactored related methods to streamline the import process and improve logging for better tracking of import tasks.
2025-11-24 15:47:42 +08:00
wizardchen 385108ce22 fix: Correct label and binding for query expansion and rewrite settings 2025-11-24 11:29:28 +08:00
wizardchen 7e9005ccf3 Merge remote-tracking branch 'github_public/main' 2025-11-24 11:28:50 +08:00
wizardchen 4752406c4a Merge remote-tracking branch 'wizard/master' 2025-11-24 10:55:12 +08:00
wizardchen 4a2be2b878 feat: Enhance file upload functionality with progress tracking
- Updated the `uploadKnowledgeFile` function to accept an optional progress callback, enabling real-time upload progress tracking.
- Refactored the document upload handling in the menu component to support multiple file uploads with individual progress events.
- Removed deprecated document processing state management from the KnowledgeBase view, streamlining the upload process.
- Improved user feedback during file uploads by dispatching events for upload start, progress, and completion.
2025-11-24 00:21:42 +08:00
wizardchen 057cfd9eb0 feat: Enhance FAQ import functionality and UI improvements
- Added support for tracking the status of FAQ import tasks, including progress indicators for ongoing imports.
- Introduced new localization strings for processing tasks and batch operations in multiple languages.
- Updated the FAQ entry manager to display import progress and improved user feedback during the import process.
- Enhanced the KnowledgeBase component to reflect the processing state of knowledge items, improving user experience during document uploads.
- Implemented batch deletion functionality for chunks, streamlining the management of knowledge base content.
2025-11-23 17:32:50 +08:00
wizardchen e853605cea feat: Enhance FAQ management and search functionality
- Added a new menu item for searching FAQs directly from the menu, improving user accessibility.
- Implemented batch action options for selected FAQs, allowing users to perform bulk operations such as enabling, disabling, and deleting entries.
- Updated localization strings to support new features and improve user experience across multiple languages.
- Enhanced the handling of FAQ selection changes to dynamically update the UI based on user interactions.
2025-11-23 17:27:30 +08:00
begoniezhao 3e08d3d9d8 fix: resolve issues with menu component integration 2025-11-21 18:36:34 +08:00
wizardchen ebc005f27d Merge remote-tracking branch 'github_public/main' 2025-11-21 17:37:07 +08:00
begoniezhao a0685a22db refactor: remove unnecessary header handling in chunk processing and update example usage 2025-11-21 15:28:14 +08:00
wizardchen 1a3d36f2c1 refactor: Remove 'setAsDefault' localization and UI references 2025-11-21 15:20:43 +08:00
wizardchen 865987ed27 refactor: Remove default model handling from model settings and service
- Eliminated the 'isDefault' field from model settings and related service logic, simplifying model management.
- Updated UI components to remove references to default models, ensuring a cleaner user experience.
- Adjusted backend model creation and update processes to reflect the removal of default model selection logic.
2025-11-21 15:18:40 +08:00
wizardchen 301d400cce refactor: Remove validation for 'enabled' field in agent configuration
- Eliminated the check for the 'enabled' field in the ValidateConfig method of agentService.
- Updated comments in session service to reflect the removal of the 'enabled' field from AgentConfig.
- Streamlined agent configuration handling for improved clarity and maintainability.
2025-11-21 14:32:28 +08:00
wizardchen 6687e81b96 refactor: Remove 'enabled' field from AgentConfig and related components
- Removed the 'enabled' field from the AgentConfig interface and its usage in AgentSettings and tenant handler.
- Updated related validation logic to ensure consistency without the 'enabled' parameter.
- Streamlined agent configuration handling for improved clarity and maintainability.
2025-11-21 14:28:43 +08:00
wizardchen 521ba9259e Merge remote-tracking branch 'wizard/master' 2025-11-21 10:35:27 +08:00
wizardchen 40a38292a6 feat: Refactor chunk extraction and knowledge processing logic
- Updated the logging message for Neo4j configuration to a warning level when not enabled.
- Removed unused environment variable checks related to graph RAG processing.
- Enhanced the chunk extraction task creation logic to respect the new extract configuration settings.
- Added an `Enabled` field to the ExtractConfig struct for better configuration management.
2025-11-21 10:35:02 +08:00
wizardchen 65f36c90b9 feat: Simplify select dropdown styles and improve z-index handling in manual knowledge editor
- Added `destroy-on-close` property to the manual knowledge editor dialog for better resource management.
- Streamlined popup properties for the select dropdown by removing unnecessary logging and z-index adjustments.
- Updated global styles to ensure select dropdowns display correctly above dialog elements, enhancing UI consistency.
2025-11-21 03:05:21 +08:00
wizardchen 83ea262286 feat: Enhance loading indicators and improve UI consistency across chat components
- Replaced loading GIFs with animated typing indicators for a more modern user experience.
- Updated styles for various components to ensure consistent padding, margins, and font sizes.
- Improved responsiveness and visual hierarchy in tool result displays and document information sections.
- Enhanced overall UI aesthetics with refined color schemes and layout adjustments.
2025-11-21 02:56:02 +08:00
wizardchen 9e98848d69 feat: Add statistics localization and enhance knowledge base functionality
- Introduced new localization strings for document count, FAQ entries, and chunk count in English, Russian, and Chinese.
- Updated the KnowledgeBase and KnowledgeBaseList components to display knowledge and chunk counts.
- Implemented backend functions to count knowledge items and chunks associated with each knowledge base, improving data management and user insights.
2025-11-21 01:39:43 +08:00
wizardchen c678094724 feat: Add folder upload functionality and enhance document upload experience
- Introduced a new option for users to upload entire folders, improving document management capabilities.
- Enhanced file type verification to provide better feedback for unsupported files during uploads.
- Updated UI components in the menu for clearer action items related to document uploads.
- Improved localization support for new upload messages in English, Russian, and Chinese.
2025-11-21 01:07:28 +08:00