Commit Graph

348 Commits

Author SHA1 Message Date
joeyczheng 49b5f1a739 feat(IM): support both websocket/webhook mode im channel for slack
Signed-off-by: joeyczheng <joeyczheng@tencent.com>
2026-03-18 21:26:53 +08:00
wizardchen 139a9c40ff feat: enhance localization and configuration support
- Added timezone and language settings to the environment configuration.
- Introduced built-in agent configurations with multilingual support for various agents.
- Updated Docker Compose to utilize new environment variables for timezone and language.
- Created new prompt templates for question generation, summary generation, and keywords extraction.
2026-03-17 22:23:24 +08:00
wizardchen 09d9fe5ddb feat(im): add file support and knowledge base integration 2026-03-17 22:23:24 +08:00
wizardchen 1c752ff059 chore: remove chrome-extension from tracking and add to gitignore 2026-03-16 21:34:03 +08:00
wizardchen 56a0840aa4 fix: adjust margins in AgentStreamDisplay component for improved layout
- Reduced the bottom margin of the tree container from 16px to 10px for better spacing.
- Increased the top margin of the answer toolbar from 4px to 10px to enhance visual separation.
2026-03-16 21:30:43 +08:00
wizardchen 37633f89ef feat: enhance IM channel panel with platform hints and localization updates
- Added hints for WeCom and Feishu platforms in the IM channel panel to guide users in obtaining credentials.
- Included a recommendation for using WebSocket for easier setup.
- Updated localization files for English, Korean, Russian, and Chinese to support new hints and console links.
2026-03-16 21:00:37 +08:00
wizardchen d4e14235a6 fix: update storage engine warning display and styling
- Changed the storage engine warning from a div to a paragraph for better semantic structure.
- Updated the warning icon from 'error-circle' to 'info-circle' to better reflect the message.
- Adjusted CSS styles for the storage engine warning, including reduced gap and margin, and modified font size for improved readability.
2026-03-16 20:27:15 +08:00
wizardchen 0b8a71fb6d feat: enhance IM channel panel and localization support
- Added a new integration guide link in the IM channel panel description for better user guidance.
- Updated localization files for English, Korean, Russian, and Chinese to include the new 'docLink' key for the integration guide.
- Improved styling for the add button in the IM channel panel to enhance visual alignment and user experience.
2026-03-16 20:22:38 +08:00
wizardchen f7ec47306c refactor: unify dropdown menu styles across components
- Removed redundant dropdown menu styles from various components and centralized them in a new `dropdown-menu.less` file.
- Updated components to use the unified styles, ensuring consistency in appearance and behavior across the application.

This change simplifies maintenance and enhances the visual coherence of dropdown menus.
2026-03-16 20:13:30 +08:00
wizardchen 795f615b5e fix: consistent aria-label and neutral background for manual download button
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 18:33:25 +08:00
wizardchen e609bd2c4c fix: fix manual download button layout and polish
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 18:29:59 +08:00
wizardchen 70b73cd257 feat: add download button for manual knowledge in doc-content
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 18:25:41 +08:00
wizardchen 6a7eb420a9 refactor: update conversation handling and image description requirements
- Removed outdated instructions regarding the `skip_kb_search` field in the conversation configuration.
- Clarified requirements for `image_description` to ensure it is non-empty when images are present.
- Adjusted the handling of message parts in the chat pipeline to improve image processing.
- Deleted unused migration files related to image handling in the database schema.

These changes enhance the clarity and functionality of the conversation and image processing logic.
2026-03-16 15:15:24 +08:00
wizardchen 6159e8e3f7 feat: implement IM channel management in agent editor
- Introduced a new IMChannelPanel component for managing WeCom and Feishu channels.
- Added CRUD operations for IM channels, including create, update, delete, and list functionalities.
- Enhanced the backend with new API endpoints for IM channel management.
- Updated documentation to reflect changes in IM integration and channel management.
- Improved localization support for new IM-related UI elements across multiple languages.
2026-03-16 02:28:10 +08:00
wizardchen e5a397faeb feat: add loading indicator for non-Agent mode in botmsg component 2026-03-16 02:26:47 +08:00
wizardchen c27740f739 feat: enhance input field and agent stream display with improved handling and sanitization
- Added blur handling for the textarea in the Input-field component to prevent errors when navigating away from the component.
- Improved the sanitization process in the AgentStreamDisplay component to preserve specific tags during markdown processing, ensuring accurate content display.
- Introduced new methods for handling FAQ-specific post-processing in the knowledge base service, optimizing retrieval and filtering of search results.

These changes enhance user experience by improving input handling and content rendering in the chat interface.
2026-03-16 02:26:47 +08:00
wizardchen eb7299b5ec feat: add pulsing animation to stop button and improve loading indicator styling
- Introduced a pulsing animation for the stop button in the Input-field component, enhancing visual feedback.
- Updated the loading indicator in the AgentStreamDisplay component to clarify its purpose and improve overall styling.

These changes enhance user interaction and visual appeal in the chat interface.
2026-03-16 02:26:47 +08:00
wizardchen 37847b04b2 feat: enhance AgentStreamDisplay with auto-scrolling and improved styling
- Added a streaming steps container to the AgentStreamDisplay component, allowing for better organization of streaming events.
- Implemented auto-scrolling functionality to keep the latest events in view during streaming.
- Enhanced CSS styles for the streaming steps container and event items, including custom scrollbar styles for improved user experience.

These changes improve the usability and visual appeal of the AgentStreamDisplay, facilitating a smoother interaction during event streaming.
2026-03-16 02:26:47 +08:00
wizardchen 3b006e8bf0 feat: add computed model status for LLM availability in GraphSettings 2026-03-16 02:26:47 +08:00
wizardchen 6abc688ea2 refactor: update LLM configuration to model ID in API and frontend
- Replaced LLMConfig with model_id in TextRelationExtractionRequest and FabriTextRequest interfaces.
- Updated related API handlers to retrieve chat models based on model_id.
- Adjusted frontend components to pass model_id instead of LLMConfig, enhancing clarity and simplifying the configuration process.

These changes streamline the model configuration process across the application, improving maintainability and usability.
2026-03-16 02:26:47 +08:00
wizardchen 184c15efdc feat: enable parent-child chunking and question generation in KnowledgeBaseEditorModal
- Updated configuration to enable parent-child chunking, allowing for more structured content organization.
- Activated question generation feature, enhancing the ability to create relevant questions based on the content provided.

These changes improve the functionality of the KnowledgeBaseEditorModal, facilitating better content management and interaction.
2026-03-16 02:26:47 +08:00
wizardchen 00e97be447 feat: introduce Quick Notes 5.0 with comprehensive features for content management
- Added a new background service worker to handle API requests and context menu interactions.
- Implemented new HTML and JavaScript files for clips, enhancing user interaction and clip rendering.
- Introduced a content script for capturing selected content on web pages, allowing users to save clips easily.
- Enhanced the popup interface for improved navigation and user experience.
- Updated the manifest to support new features and permissions, ensuring a robust extension functionality.

These changes significantly enhance the Quick Notes extension, providing users with a more interactive and efficient platform for managing web content.
2026-03-16 02:26:47 +08:00
wizardchen a9bc4bc102 feat: enhance Quick Notes 5.0 with API integration and UI improvements
- Implemented API communication for WeKnora, allowing users to authenticate and interact with knowledge bases.
- Added functionality for image uploads and previews in chat, enhancing multimodal interaction capabilities.
- Refactored the popup and sidepanel interfaces to improve user experience and accessibility, including new toolbar elements for mode selection.
- Introduced session management features, enabling users to manage chat sessions and knowledge base selections more effectively.
- Enhanced styling and layout for better responsiveness and visual appeal across various components.

These changes significantly improve the functionality and user experience of the Quick Notes extension, providing a more robust platform for managing web content and interactions.
2026-03-16 02:26:47 +08:00
wizardchen de0e93d9bb feat: add clear session messages functionality
- Implemented a new API endpoint to clear all messages in a session, enhancing session management capabilities.
- Updated the frontend to include a clear messages option in the session menu, allowing users to easily remove chat history.
- Added localization support for the new feature in English, Korean, Russian, and Chinese, improving accessibility for a broader audience.
- Enhanced the chat view to handle session message clearing events, ensuring a responsive user experience.

These changes significantly improve the user experience by providing a straightforward method to manage session messages effectively.
2026-03-16 02:26:47 +08:00
wizardchen da4c68a24d feat: introduce Quick Notes 5.0 with enhanced clipping and context menu features
- Added new background service worker to manage API requests and context menu interactions.
- Implemented a new HTML structure for clips and a JavaScript file to handle clip rendering and user interactions.
- Introduced a content script for capturing and processing selected content on web pages, enabling users to save clips easily.
- Enhanced the popup interface for Quick Notes with improved navigation and user experience.
- Updated the manifest to support new features and permissions for the extension.

These changes significantly enhance the functionality of the Quick Notes extension, providing users with a more robust and interactive experience for managing web content.
2026-03-16 02:26:47 +08:00
wizardchen 5fe1ccd4f9 feat: enhance multimodal support and image handling
- Updated configuration to improve handling of multimodal queries, including clearer guidelines for when to use [NO_SEARCH] in responses.
- Enhanced the user interface to include dedicated sections for multimodal configuration, allowing users to manage image uploads and related settings more effectively.
- Added localization support for new multimodal features in both English and Chinese, improving accessibility for a broader audience.
- Implemented backend changes to support image analysis and extraction of OCR text, enriching the interaction experience for users.

These enhancements significantly improve the application's capability to process and respond to multimodal queries, fostering a more interactive and user-friendly environment.
2026-03-16 02:26:47 +08:00
wizardchen 991bd29a14 feat: implement image upload and multimodal support
- Added functionality for image uploads in chat, allowing users to attach images for multimodal Q&A.
- Enhanced the input field to handle image selection via drag-and-drop and paste, with validation for file types and sizes.
- Updated the backend to process images alongside text queries, including support for image analysis.
- Introduced new UI components for image previews and management, improving user interaction with uploaded content.
- Added localization strings for image upload features and error messages, enhancing accessibility for users in multiple languages.

These changes significantly improve the chat experience by enabling users to incorporate images into their queries, facilitating richer interactions and responses.
2026-03-16 02:26:47 +08:00
wizardchen 8de1cfb6b5 refactor(preview): simplify fullscreen handling and improve styling
- Removed unnecessary fullscreen event listeners and streamlined the fullscreen toggle logic in the document preview component.
- Updated the CSS for fullscreen mode to enhance layout and responsiveness for various document types, including images and presentations.
- Adjusted the structure of the preview container to eliminate reliance on a ref, improving code clarity and maintainability.

These changes enhance the user experience by providing a more intuitive fullscreen functionality and better visual presentation of documents.
2026-03-16 02:26:47 +08:00
wizardchen cc8a99f0a3 feat: enhance storage engine configuration and user notifications
- Updated the summary length requirement for document summarization to 100-300 words.
- Added new localization strings for missing storage engine notifications in English, Korean, Russian, and Chinese.
- Implemented UI warnings for users regarding storage engine configuration when files exist, including confirmation dialogs for storage engine changes.
- Enhanced backend validation to ensure a storage engine is configured before allowing content uploads.

These changes improve user experience by providing clearer guidance on storage engine requirements and enhancing the overall functionality of the knowledge base management system.
2026-03-16 02:26:47 +08:00
Manx98 a355ac889e feat: NVIDIA chat model API support custom endpoint 2026-03-13 18:14:08 +08:00
Manx98 5afc81d00b feat: support NVIDIA model API 2026-03-13 18:14:08 +08:00
qunbo.guo fb9e70fd16 feat: 改进文档预览组件的响应式设计
- 优化doc-content组件抽屉宽度,在小屏幕上自适应调整
- 增强document-preview组件的响应式布局,防止内容溢出
- 添加媒体查询支持,提升移动端用户体验
- 修复DOCX文档预览在不同屏幕尺寸下的显示问题
2026-03-12 10:31:48 +08:00
Andy Yang e57deb218c feat(preview): add localized document fullscreen toggle
This feature introduces a localized fullscreen toggle capability directly to the document preview component. It adds translations across 4 UI languages (zh-CN, en-US, ko-KR, ru-RU) avoiding hardcoded strings. It also sets proper responsive height scaling for DOCX views expanding to full viewport.
2026-03-09 20:26:43 +08:00
wizardchen 125d3e5e4a feat: implement knowledge move functionality
- Added API endpoints for moving knowledge items between knowledge bases, including validation for source and target compatibility.
- Implemented asynchronous task handling for knowledge moves, tracking progress and status updates.
- Introduced new localization strings for move-related UI elements in English, Korean, Russian, and Chinese.
- Enhanced the frontend to support knowledge move operations, including target selection and progress monitoring.

These changes significantly improve the application's capabilities for managing knowledge across different bases, providing users with a seamless experience in organizing their knowledge assets.
2026-03-09 13:23:16 +08:00
wizardchen 3f340771e9 feat(storage): integrate AWS S3 support in storage settings
- Added support for AWS S3 as a storage engine, including configuration options for endpoint, region, access key, secret key, bucket name, and path prefix.
- Updated the StorageEngineConfig interface to include S3 configuration.
- Enhanced the UI components to allow users to configure S3 settings and test connections.
- Updated localization files to include new S3-related labels and descriptions in multiple languages.

These changes significantly enhance the storage capabilities of the application, providing users with more options for managing their data.
2026-03-09 11:46:56 +08:00
wizardchen 1fb2bedd2b feat: implement chat history and retrieval settings
- Added new API endpoints for managing chat history configuration and retrieval settings, allowing tenants to enable message indexing and configure search parameters.
- Introduced new Vue components for ChatHistorySettings and RetrievalSettings, providing a user-friendly interface for managing these configurations.
- Updated localization files to include new settings descriptions and labels in multiple languages.
- Enhanced the KnowledgeSearch view to support searching across both knowledge bases and chat history, improving the overall search functionality.

These changes significantly enhance the application's capabilities in managing and retrieving chat history, contributing to a more robust user experience.
2026-03-09 11:46:56 +08:00
wizardchen c516d1f9bd style: update AgentStreamDisplay component for improved UI consistency 2026-03-09 11:46:56 +08:00
wizardchen a4b255a456 feat: implement final_answer tool and enhance agent duration tracking
- Introduced the final_answer tool to ensure agents submit their complete responses as the last action, improving response accuracy and consistency.
- Updated the agent engine to log detailed information about tool calls and responses, including the total duration of agent execution.
- Enhanced the chat message model to include agent_duration_ms, tracking the total execution time from query start to answer delivery.
- Implemented JSON field extraction for streaming responses, allowing for more efficient handling of tool call outputs.

These changes significantly improve the agent's response handling and ensure that final answers are consistently delivered, enhancing overall user experience.
2026-03-09 11:46:56 +08:00
wizardchen bedb8ceb08 refactor: standardize loading and avatar sizes across components
- Changed loading component size from large to medium in document preview, agent list, knowledge base list, and organization list for improved consistency.
- Updated avatar sizes from large to medium in agent editor modal, organization editor modal, organization settings modal, and other relevant components to maintain uniformity in UI design.
- Adjusted switch component sizes from large to medium in various settings to enhance visual coherence.

These changes contribute to a more consistent and polished user interface across the application.
2026-03-09 11:46:56 +08:00
ochan.kwon 5583bf0eb4 fix(i18n): enable multilingual support for Knowledge Graph settings
- Replace hardcoded tag options with English equivalents (Content,
  Culture, Person, etc.) so random tag generation works across locales
- Replace default extract example with English text (Romeo and Juliet)
  matching the existing config.yaml extract_graph examples
- Update graph database status string to use locale-independent value
  and align frontend comparison accordingly
- Convert error messages in fabri text handler to English
2026-03-09 10:35:41 +08:00
ochan.kwon 10614df567 fix(i18n): complete multilingual support for TDesign components and locale key synchronization
- Synchronize 2641 i18n keys across all 4 locales (en-US, zh-CN, ko-KR, ru-RU)
- Add TDesign ConfigProvider with dynamic locale to ensure all UI
  components (select, input, empty states, dialogs) display in the
  user's chosen language
- Fix provider dropdown in model editor: use i18n keys with API fallback
- Fix connection test messages: always use i18n for user-facing feedback
- Add explicit placeholders to t-select components in settings pages
- Add missing i18n keys: theme.selectTheme, organization role selectors,
  lkeap provider translations
2026-03-09 10:35:41 +08:00
ochan.kwon 111bb8b83a fix(i18n): fix vue-i18n placeholder escaping, computed ref accessor, and missing ru-RU keys
- Escape literal {{ and }} in locale strings using vue-i18n's {'{{'}
  syntax to prevent "Not allowed nest placeholder" compilation errors
  (ko-KR: 10, en-US: 10, ru-RU: 2, zh-CN: 1)
- Add missing .value accessor on allTools computed ref in
  AgentEditorModal, fixing "allTools.map is not a function" error
- Add missing menu.agents and menu.organizations keys to ru-RU locale

All issues are follow-ups from #724 (frontend i18n).
2026-03-06 21:08:28 +08:00
ochan.kwon edcf7116cd feat: use language-neutral English prompts for multilingual LLM responses
Convert all LLM-facing prompts, templates, and tool output labels to
language-neutral English so the model responds in the user's input
language. Update frontend relevance/match-type mappings to match.

Output language strategy:
- User-facing: reply in user's input language
- Vector-indexed: match source document language
- LLM-internal: fixed English
2026-03-06 21:08:12 +08:00
ochan.kwon db7cef5f17 feat(i18n): replace hardcoded Chinese strings with i18n calls across frontend
Replace all user-visible hardcoded Chinese strings in Vue/TS source files
with proper i18n function calls and add corresponding translation keys
to all 4 locale files (zh-CN, en-US, ko-KR, ru-RU).

Changes:
- Replace 80+ hardcoded Chinese strings across 30+ source files
- Add ~450 new translation keys per locale file
- Cover components, views, utils, hooks, and API modules
- Remove Chinese fallback patterns (|| '中文') from existing t() calls
- Add mermaid toolbar and ollama date format translations

Intentionally preserved (backend API values / backward compatibility):
- FAQ CSV column headers and parsing constants
- RelevanceLevel type and Record key mappings
- Graph database engine status comparison ('未启用')
- Language name labels ('简体中文')
2026-03-06 10:34:08 +08:00
AndyYang 6dde1330c2 feat: add built-in MCP service support 2026-03-05 21:57:01 +08:00
wizardchen 43394a35bb refactor: adjust component styles for improved consistency
- Modified border-radius values in botmsg and usermsg components for a more uniform appearance.
- Increased font size in the ai-markdown-template class for better readability.
- Removed hover scale effect in AgentStreamDisplay, botmsg, and usermsg components to streamline interactions.

These changes enhance the visual consistency and usability of the chat components, contributing to a more polished user interface.
2026-03-05 18:14:14 +08:00
wizardchen 371002e085 fix: standardize border styles across components
- Updated border styles in multiple components to use a consistent thickness of 0.5px instead of 1px, enhancing visual uniformity.
- Adjusted styles in components such as AgentSelector, Input-field, KnowledgeBaseSelector, and others to improve overall UI consistency.
- Refined CSS variables for borders to ensure maintainability and adherence to design specifications.

These changes improve the aesthetic coherence of the application, providing a more polished user interface.
2026-03-05 18:14:14 +08:00
wizardchen b697d4945e feat: update chunk size configurations for knowledge base processing
- Increased default sizes for parent and child chunks in the knowledge base editor and settings, enhancing data processing capabilities.
- Adjusted slider settings in the UI to reflect new minimum and maximum values for chunk sizes, improving user control over configurations.
- Updated backend logic to ensure consistent handling of chunk sizes across the application.

These changes optimize the chunking process, allowing for more efficient data handling and improved performance in knowledge base operations.
2026-03-05 18:14:14 +08:00
wizardchen 2e48bc0e63 feat: update at-icon SVG and enhance input field component
- Replaced the image source for the at-icon with inline SVG for better scalability and styling flexibility.
- Updated the SVG to use `currentColor` for stroke, allowing it to adapt to the current text color.
- Enhanced the input field component with improved styling and responsiveness, including adjustments to color transitions and hover effects.
- Refined the mention selector component to improve popup placement and scrolling behavior, ensuring a smoother user experience.

These changes enhance the visual consistency and usability of the components, providing a more modern and responsive interface.
2026-03-05 18:14:14 +08:00
wizardchen 5d90019fd0 feat: enhance sidebar functionality and UI responsiveness
- Implemented sidebar collapse and expand functionality, allowing users to toggle the sidebar visibility for a more streamlined interface.
- Updated the `uiStore` to manage sidebar state, persisting the collapsed state in local storage for user preference.
- Enhanced the `menu.vue` and `UserMenu.vue` components to adapt their layout based on the sidebar state, improving usability.
- Added corresponding translations for sidebar actions in English, Korean, Russian, and Chinese, ensuring accessibility for diverse users.
- Refined CSS styles to support the new sidebar behavior, enhancing overall UI consistency and responsiveness.

These changes significantly improve the user experience by providing a more flexible and user-friendly navigation system.
2026-03-05 18:14:14 +08:00