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:
+1
-3
@@ -98,8 +98,7 @@ def get_orchestrator():
|
||||
if not setup_environment():
|
||||
raise RuntimeError(
|
||||
"环境检查失败(请查看上方 WARNING/INFO,常见原因:"
|
||||
"USE_LOCAL_EMBEDDING=true 但未配置或找不到 EMBEDDING_MODEL_PATH;"
|
||||
"或 USE_LOCAL_EMBEDDING=false 但未配好 OPENAI_* / MODELSCOPE_* / DASHSCOPE_*;"
|
||||
"未配好 OPENAI_* / MODELSCOPE_* / DASHSCOPE_* 远程 Embedding;"
|
||||
"或 Schema 文件路径不对、DEEPSEEK_API_KEY 未设置)"
|
||||
)
|
||||
|
||||
@@ -114,7 +113,6 @@ def get_orchestrator():
|
||||
temperature = float(os.getenv("TEMPERATURE", "0.3"))
|
||||
max_tokens = int(os.getenv("MAX_TOKENS", "4096"))
|
||||
max_retry = int(os.getenv("MAX_RETRY", "2"))
|
||||
embedding_model = None
|
||||
vector_db = os.getenv("VECTOR_DB_PATH", "./data/embeddings/chroma")
|
||||
no_vector_search = False # 启用向量搜索(ChromaDB 已修复)
|
||||
no_fewshot = not os.getenv("FEWSHOT_ENABLED", "true").lower() in ("true", "1", "yes")
|
||||
|
||||
Reference in New Issue
Block a user