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:
Binary file not shown.
@@ -10,7 +10,7 @@
|
||||
FEWSHOT_USE_CHROMA=true
|
||||
FEWSHOT_CHROMA_PATH=./data/embeddings/chroma_fewshot
|
||||
|
||||
Embedding 与 Schema 向量一致,由 USE_LOCAL_EMBEDDING / OPENAI_* / MODELSCOPE_* 等决定。
|
||||
Embedding 与 Schema 向量一致,由 OPENAI_* / MODELSCOPE_* / DASHSCOPE_* 等决定。
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -84,8 +84,7 @@ def main() -> int:
|
||||
logger.error("未解析到任何样本")
|
||||
return 1
|
||||
|
||||
embed_path = os.getenv("EMBEDDING_MODEL_PATH", "").strip() or None
|
||||
embedder = get_embedder(embed_path)
|
||||
embedder = get_embedder()
|
||||
persist = Path(args.persist_dir)
|
||||
if not persist.is_absolute():
|
||||
persist = _REPO_ROOT / persist
|
||||
|
||||
Reference in New Issue
Block a user