refactor: 重构RAG核心组件,简化代码结构和测试文件
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m53s
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m53s
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user