WeKnora/internal
wizardchen 37a517612d feat: Enhance agent retrieval strategies and regex handling
- Updated the agent system prompt to emphasize the use of regex for chunk searches, improving retrieval accuracy and efficiency.
- Introduced a new `Capabilities` field in the `KnowledgeBaseInfo` struct to define the retrieval surfaces available for each knowledge base, guiding the agent's strategy selection.
- Enhanced the `grep_chunks` tool to support regex queries, allowing for more flexible and powerful text pattern matching in knowledge base chunks.
- Improved JSON handling in the `RepairJSON` function to address invalid escape sequences, particularly for regex patterns, ensuring robust parsing and error handling.
- Updated documentation and comments across various files to clarify usage and expectations for regex and knowledge base capabilities.

These changes significantly enhance the agent's ability to retrieve relevant information while ensuring the integrity of input data handling.
2026-04-22 21:18:21 +08:00
..
agent feat: Enhance agent retrieval strategies and regex handling 2026-04-22 21:18:21 +08:00
application feat: Enhance agent retrieval strategies and regex handling 2026-04-22 21:18:21 +08:00
assets feat(assets): add ASR test audio file and embed it in the application 2026-04-02 21:27:27 +08:00
common feat: Implement deadlock retry mechanism for chunk creation 2026-04-22 21:17:21 +08:00
config feat: Introduce agent type presets for smart-reasoning mode 2026-04-22 21:18:20 +08:00
container feat: Implement comprehensive wiki feature for knowledge bases 2026-04-22 21:17:18 +08:00
database fix: update environment configuration for debugging and logging, enhance SQLite FTS5 table management, and improve API base URL handling 2026-04-11 18:51:16 +08:00
datasource fix: improve tenant access token logging and update test cases 2026-04-22 21:17:30 +08:00
errors feat: Add agent configuration and cleanup scripts for database migrations 2025-11-05 23:18:44 +08:00
event fix: improve tenant access token logging and update test cases 2026-04-22 21:17:30 +08:00
handler feat: Introduce agent type presets for smart-reasoning mode 2026-04-22 21:18:20 +08:00
im feat(im): support custom endpoints for private WeCom deployments 2026-04-13 22:54:42 +08:00
infrastructure feat: Add pending tasks and active status to WikiStats 2026-04-22 21:17:31 +08:00
logger feat(datasource): add Yuque (语雀) connector 2026-04-22 16:39:55 +08:00
mcp feat(mcp): implement reconnection logic for MCP tool calls and tool listing 2026-03-31 11:57:15 +08:00
middleware refactor: Update wiki prompts and ingestion logic for improved content handling 2026-04-22 21:17:31 +08:00
models fix: improve tenant access token logging and update test cases 2026-04-22 21:17:30 +08:00
router feat: Introduce agent type presets for smart-reasoning mode 2026-04-22 21:18:20 +08:00
runtime init commit 2025-08-05 15:08:07 +08:00
sandbox feat: optimize security and deployment of agent skills 2026-02-04 20:08:49 +08:00
searchutil feat(prompt): enhance question rewriting and intent classification in prompt templates 2026-04-16 23:15:02 +08:00
stream feat(redis): add REDIS_USERNAME support for Redis ACL 2026-02-04 19:38:40 +08:00
tracing init commit 2025-08-05 15:08:07 +08:00
types feat: Introduce agent type presets for smart-reasoning mode 2026-04-22 21:18:20 +08:00
utils fix: improve tenant access token logging and update test cases 2026-04-22 21:17:30 +08:00