WeKnora/internal/agent
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
..
memory feat(agent): enhance message consolidation and context management 2026-03-25 22:08:29 +08:00
skills feat: adapt preloaded skills to smart-reasoning agent 2026-02-04 20:08:49 +08:00
token feat(agent): enhance message consolidation and context management 2026-03-25 22:08:29 +08:00
tools feat: Enhance agent retrieval strategies and regex handling 2026-04-22 21:18:21 +08:00
act.go feat: support parallel tool calling 2026-03-30 10:41:08 +08:00
const.go feat: Implement wiki_config updates in knowledge base management 2026-04-22 21:17:21 +08:00
engine.go feat: Implement wiki_config updates in knowledge base management 2026-04-22 21:17:21 +08:00
engine_image_test.go feat: auto-describe MCP tool result images via VLM 2026-03-25 21:38:15 +08:00
engine_test.go fix(agent): prevent empty response when no Knowledge Base is configured 2026-03-27 14:56:12 +08:00
finalize.go feat(agent): enhance token management and context handling in AgentEngine 2026-03-25 22:08:29 +08:00
observe.go feat: Enhance knowledge base retrieval and runtime context handling 2026-04-22 21:18:11 +08:00
prompts.go feat: Enhance agent retrieval strategies and regex handling 2026-04-22 21:18:21 +08:00
prompts_wiki.go feat: Enhance wiki content processing with enriched image information and XML output 2026-04-22 21:18:09 +08:00
think.go fix(agent): prevent empty response when no Knowledge Base is configured 2026-03-27 14:56:12 +08:00