refactor: 重构RAG核心组件,简化代码结构和测试文件
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m53s

This commit is contained in:
2026-05-04 17:58:10 +08:00
parent a07e398739
commit 9841f47432
31 changed files with 578 additions and 1496 deletions

View File

@@ -6,7 +6,7 @@ from typing import Optional, Dict, Any
import sys
import os
from backend.app.model_services.chat_services import get_chat_service
from backend.app.model_services.chat_services import get_small_llm_service
class IntentType(Enum):
@@ -33,7 +33,7 @@ class IntentClassifier:
"""意图分类器"""
def __init__(self):
self.llm = get_chat_service()
self.llm = get_small_llm_service()
self._intent_examples = self._build_examples()
def _build_examples(self) -> str: