refactor: 客服agent的切片结构调整重构
This commit is contained in:
+3
-1
@@ -3,11 +3,13 @@ from __future__ import annotations
|
||||
|
||||
import logging
|
||||
|
||||
from config.settings import settings
|
||||
from tool.llm import llm
|
||||
|
||||
|
||||
logger = logging.getLogger("rag.embedding")
|
||||
EMBEDDING_DIMENSION = 768
|
||||
# 单一来源:.env 的 LLM_EMBED_DIMENSIONS;Milvus 建表、入库校验、embeddings 请求参数均以此为准
|
||||
EMBEDDING_DIMENSION = settings.llm.embed_dimensions
|
||||
|
||||
|
||||
class EmbeddingError(RuntimeError):
|
||||
|
||||
Reference in New Issue
Block a user