Refactor embedding configuration to remove local model support, transitioning to a unified remote API approach. Update environment variables and documentation accordingly. Enhance error handling in the orchestrator and related modules to reflect these changes. This update simplifies the embedding process and improves overall system reliability.

This commit is contained in:
陈辅元
2026-04-15 09:49:18 +08:00
parent 4ea3056e95
commit 2d0b1ab36f
21 changed files with 103 additions and 405 deletions
Binary file not shown.
+1 -3
View File
@@ -16,10 +16,8 @@ class Settings(BaseSettings):
temperature: float = 0.3
max_tokens: int = 4096
# Embedding配置
embedding_model_path: str = "" # 仅本地 Embedding 时使用;默认走远程 API
# Embedding / 向量检索(编码走远程 API,见 OPENAI_* / MODELSCOPE_* 等)
vector_dim: int = 2048
use_local_embedding: bool = True
# Schema配置
schema_dir: str = "./data/schemas"