refactor: 客服agent的切片结构调整重构

This commit is contained in:
2026-09-11 17:31:16 +08:00
parent b1b764eac9
commit e561c97a4e
20 changed files with 3309 additions and 230 deletions
+3 -1
View File
@@ -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):