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
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