hailin
|
911132ab3e
|
feat(agent): upgrade to Level 3 with real RAG, Memory and Evolution integration
## Summary
Upgrade iConsulting from Level 2 (48 points) to Level 3 (68 points) by
implementing real service-to-service integration between conversation-service
and knowledge-service.
## New Files
- knowledge-client.service.ts: HTTP client for knowledge-service APIs
- knowledge.module.ts: NestJS module for KnowledgeClientService
- AGENT_EVALUATION_REPORT.md: Agent capability evaluation report
- LEVEL3_UPGRADE_PLAN.md: Upgrade plan and completion report
## Changes
### RAG Integration
- search_knowledge tool now calls /api/v1/knowledge/retrieve
- check_off_topic tool calls /api/v1/knowledge/check-off-topic
- Results include real vector similarity search from knowledge base
### Memory Integration
- save_user_memory writes to PostgreSQL + Neo4j via knowledge-service
- collect_assessment_info saves user data to long-term memory
- generate_payment records payment intent to user memory
- New get_user_context tool retrieves user's historical memories
### Evolution Integration
- getAccumulatedExperience() fetches approved system experiences
- sendMessage() dynamically injects experiences into system prompt
- System learns from approved experiences across all conversations
## Expected Score Improvement
| Dimension | Before | After | Delta |
|------------|--------|-------|-------|
| Tool Use | 14/20 | 18/20 | +4 |
| Memory | 12/20 | 16/20 | +4 |
| RAG | 10/20 | 16/20 | +6 |
| Evolution | 8/20 | 14/20 | +6 |
| Total | 48 | 68 | +20 |
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-01-22 23:45:58 -08:00 |