ai-robot-core/ai-service/app/api/admin
MerCry ff35538a01 feat(ai-service): implement intent recognition and rule engine (Phase 12 T12.1-T12.5)
[AC-AISVC-65~AC-AISVC-70] Intent recognition with keyword and regex matching

- Add IntentRule SQLModel entity with tenant isolation
- Implement IntentRuleService for CRUD operations with hit statistics
- Implement IntentRouter matching engine (priority DESC, keyword then regex)
- Add rule caching by tenant_id with TTL=60s and CRUD invalidation
- Add intent rules management API (POST/GET/PUT/DELETE /admin/intent-rules)
- Support four response types: fixed/rag/flow/transfer

T12.6 (Orchestrator integration) and T12.7 (unit tests) pending for integration phase
2026-02-27 14:20:31 +08:00
..
__init__.py feat: 实现 Prompt 模板化功能 (Phase 10 T10.1-T10.8) [AC-AISVC-51~AC-AISVC-58] 2026-02-27 14:15:10 +08:00
api_key.py feat: 添加API Key认证功能 [AC-AISVC-50] 2026-02-26 02:52:50 +08:00
dashboard.py feat(ui): 前端浅色调风格优化与下拉框显示修复 2026-02-25 14:06:37 +08:00
embedding.py feat: 添加嵌入配置持久化及模型切换警告 [AC-AISVC-50] 2026-02-26 18:01:03 +08:00
intent_rules.py feat(ai-service): implement intent recognition and rule engine (Phase 12 T12.1-T12.5) 2026-02-27 14:20:31 +08:00
kb.py fix: 修复RAG检索无结果问题-向量存储格式与检索格式不匹配 [AC-AISVC-50] 2026-02-26 12:39:42 +08:00
kb_optimized.py feat: RAG 检索优化,实现多维度向量存储和 Nomic 嵌入提供者 [AC-AISVC-16, AC-AISVC-29] 2026-02-25 23:10:12 +08:00
llm.py feat(ui): 前端浅色调风格优化与下拉框显示修复 2026-02-25 14:06:37 +08:00
prompt_templates.py feat: 实现 Prompt 模板化功能 (Phase 10 T10.1-T10.8) [AC-AISVC-51~AC-AISVC-58] 2026-02-27 14:15:10 +08:00
rag.py feat: 统一提示词模板并添加全量提示词日志 [AC-AISVC-02, AC-ASA-19, AC-ASA-20] 2026-02-26 01:12:01 +08:00
sessions.py feat(AISVC-T6.9): 前后端接口对接修正及Dashboard/RAG Lab功能完善 2026-02-24 19:59:26 +08:00
tenants.py feat: 实现租户管理功能,支持租户ID格式校验与自动创建 [AC-AISVC-10, AC-AISVC-12, AC-ASA-01] 2026-02-25 23:08:36 +08:00