ai-robot-core/ai-service/tests
MerCry 7027097513 [AC-AISVC-RES-01~15] feat(retrieval): 实现检索策略Pipeline模块
- 新增策略配置模型 (config.py)
  - GrayscaleConfig: 灰度发布配置
  - ModeRouterConfig: 模式路由配置
  - MetadataInferenceConfig: 元数据推断配置

- 新增 Pipeline 实现
  - DefaultPipeline: 复用现有 OptimizedRetriever 逻辑
  - EnhancedPipeline: Dense + Keyword + RRF 组合检索

- 新增路由器
  - StrategyRouter: 策略路由器(default/enhanced)
  - ModeRouter: 模式路由器(direct/react/auto)

- 新增 RollbackManager: 回退与审计管理器
- 新增 MetadataInferenceService: 元数据推断统一入口
- 新增单元测试 (51 passed)
2026-03-10 20:50:16 +08:00
..
__init__.py feat(ai-service): implement LLM Adapter for T3.1 [AC-AISVC-02, AC-AISVC-06] 2026-02-24 13:19:38 +08:00
conftest.py feat(ai-service): implement LLM Adapter for T3.1 [AC-AISVC-02, AC-AISVC-06] 2026-02-24 13:19:38 +08:00
test_accept_switching.py feat(ai-service): implement LLM Adapter for T3.1 [AC-AISVC-02, AC-AISVC-06] 2026-02-24 13:19:38 +08:00
test_batch_ask_back_service.py test: add unit tests and utility scripts for intent routing, slot management, and KB search [AC-TEST] 2026-03-10 12:10:22 +08:00
test_clarification.py test: add unit tests and utility scripts for intent routing, slot management, and KB search [AC-TEST] 2026-03-10 12:10:22 +08:00
test_confidence.py feat(ai-service): implement confidence calculation for T3.3 [AC-AISVC-17, AC-AISVC-18, AC-AISVC-19] 2026-02-24 13:31:42 +08:00
test_context.py feat(ai-service): implement context merging for T3.2 [AC-AISVC-14, AC-AISVC-15] 2026-02-24 13:26:37 +08:00
test_contract.py feat(ai-service): add Phase 5 integration and contract tests [AC-AISVC-10,11,17,18] 2026-02-24 13:53:55 +08:00
test_dialogue_slot_integration.py test: add unit tests and utility scripts for intent routing, slot management, and KB search [AC-TEST] 2026-03-10 12:10:22 +08:00
test_field_roles_update.py test: add unit tests and utility scripts for intent routing, slot management, and KB search [AC-TEST] 2026-03-10 12:10:22 +08:00
test_flow_cache.py fix: resolve test failures in flow cache and script generation [AC-IDS-04] 2026-03-03 00:32:33 +08:00
test_flow_engine_script_generation.py fix: resolve test failures in flow cache and script generation [AC-IDS-04] 2026-03-03 00:32:33 +08:00
test_fusion_policy.py test: add unit tests and utility scripts for intent routing, slot management, and KB search [AC-TEST] 2026-03-10 12:10:22 +08:00
test_integration_tenant.py feat(ai-service): add Phase 5 integration and contract tests [AC-AISVC-10,11,17,18] 2026-02-24 13:53:55 +08:00
test_intent.py test: add unit tests and utility scripts for intent routing, slot management, and KB search [AC-TEST] 2026-03-10 12:10:22 +08:00
test_intent_router_hybrid.py test: add unit tests and utility scripts for intent routing, slot management, and KB search [AC-TEST] 2026-03-10 12:10:22 +08:00
test_kb_search_dynamic_slot_integration.py test: add unit tests and utility scripts for intent routing, slot management, and KB search [AC-TEST] 2026-03-10 12:10:22 +08:00
test_llm_adapter.py feat(ai-service): implement LLM Adapter for T3.1 [AC-AISVC-02, AC-AISVC-06] 2026-02-24 13:19:38 +08:00
test_llm_judge.py test: add unit tests and utility scripts for intent routing, slot management, and KB search [AC-TEST] 2026-03-10 12:10:22 +08:00
test_memory.py feat(ai-service): implement LLM Adapter for T3.1 [AC-AISVC-02, AC-AISVC-06] 2026-02-24 13:19:38 +08:00
test_metadata_governance_contract.py test: add metadata governance contract and integration tests [AC-IDSMETA-13~22] 2026-03-02 22:17:23 +08:00
test_metadata_governance_integration.py test: add metadata governance contract and integration tests [AC-IDSMETA-13~22] 2026-03-02 22:17:23 +08:00
test_mid_memory_tool.py test: add mid-platform service tests [AC-IDMP-01~20, AC-MARH-01~12] 2026-03-05 18:15:15 +08:00
test_mid_services.py test: add mid-platform service tests [AC-IDMP-01~20, AC-MARH-01~12] 2026-03-05 18:15:15 +08:00
test_orchestrator.py feat(ai-service): implement complete Orchestrator generation pipeline for T3.4 [AC-AISVC-01, AC-AISVC-02] 2026-02-24 13:47:12 +08:00
test_rag_smoke.py feat(ai-service): add Phase 5 integration and contract tests [AC-AISVC-10,11,17,18] 2026-02-24 13:53:55 +08:00
test_retrieval.py test(ai-service): add Retrieval layer unit tests [AC-AISVC-10, AC-AISVC-16, AC-AISVC-17] 2026-02-24 13:22:04 +08:00
test_retrieval_strategy_v2.py [AC-AISVC-RES-01~15] feat(retrieval): 实现检索策略Pipeline模块 2026-03-10 20:50:16 +08:00
test_role_based_field_provider.py feat: implement Phase 2 API for metadata role separation [AC-MRS-01~16] 2026-03-05 17:24:49 +08:00
test_scene_slot_bundle_loader.py test: add unit tests and utility scripts for intent routing, slot management, and KB search [AC-TEST] 2026-03-10 12:10:22 +08:00
test_scene_slot_bundle_service.py test: add unit tests and utility scripts for intent routing, slot management, and KB search [AC-TEST] 2026-03-10 12:10:22 +08:00
test_script_generator.py fix: resolve test failures in flow cache and script generation [AC-IDS-04] 2026-03-03 00:32:33 +08:00
test_semantic_matcher.py test: add unit tests and utility scripts for intent routing, slot management, and KB search [AC-TEST] 2026-03-10 12:10:22 +08:00
test_slot_backfill_service.py test: add unit tests and utility scripts for intent routing, slot management, and KB search [AC-TEST] 2026-03-10 12:10:22 +08:00
test_slot_definition_service.py feat: implement Phase 2 API for metadata role separation [AC-MRS-01~16] 2026-03-05 17:24:49 +08:00
test_slot_extraction_integration.py test: add unit tests and utility scripts for intent routing, slot management, and KB search [AC-TEST] 2026-03-10 12:10:22 +08:00
test_slot_state_aggregator.py test: add unit tests and utility scripts for intent routing, slot management, and KB search [AC-TEST] 2026-03-10 12:10:22 +08:00
test_slot_state_cache.py test: add unit tests and utility scripts for intent routing, slot management, and KB search [AC-TEST] 2026-03-10 12:10:22 +08:00
test_slot_strategy_executor.py test: add unit tests and utility scripts for intent routing, slot management, and KB search [AC-TEST] 2026-03-10 12:10:22 +08:00
test_slot_validation_service.py test: add unit tests and utility scripts for intent routing, slot management, and KB search [AC-TEST] 2026-03-10 12:10:22 +08:00
test_sse_events.py feat(ai-service): implement context merging for T3.2 [AC-AISVC-14, AC-AISVC-15] 2026-02-24 13:26:37 +08:00
test_sse_state_machine.py feat(ai-service): implement confidence calculation for T3.3 [AC-AISVC-17, AC-AISVC-18, AC-AISVC-19] 2026-02-24 13:31:42 +08:00
test_step_kb_binding.py test: add unit tests and utility scripts for intent routing, slot management, and KB search [AC-TEST] 2026-03-10 12:10:22 +08:00
test_template_engine.py fix: resolve test failures in flow cache and script generation [AC-IDS-04] 2026-03-03 00:32:33 +08:00