Enhance environment configuration and error handling in API server and backend. Implement dynamic loading of .env files for various execution contexts, improve schema file path resolution, and refine vector search error handling in the orchestrator. Update ChromaDB integration to support memory mode and add persistence options for few-shot learning. Include additional logging for better traceability.

This commit is contained in:
lasean.zhou
2026-04-14 18:21:50 +08:00
parent ca8bc5e7de
commit 4ea3056e95
8 changed files with 161 additions and 41 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ def main() -> int:
if not persist.is_absolute():
persist = _REPO_ROOT / persist
store = FewShotChromaStore(embedder, persist_dir=str(persist))
store = FewShotChromaStore(embedder, persist_dir=str(persist), persist_to_disk=True)
n = store.build_from_samples(rows, force_rebuild=args.force)
logger.info("完成: 写入 %s 条 → %s", n, persist)
return 0