Support API-backed Graphify semantic refresh

This commit is contained in:
Зарубин Филипп
2026-06-17 23:32:16 +03:00
parent 42c96d2b8c
commit d782c7faca
5 changed files with 114 additions and 20 deletions
+1 -1
View File
@@ -204,7 +204,7 @@ npm run graph:refresh -- --vault "$MNEMAZINE_VAULT" --mode auto
This wrapper keeps `graph.json`, `GRAPH_REPORT.md`, backup/restore, and `needs_update` in sync instead of blindly trusting one heavy semantic run.
For local Ollama semantic refreshes it also uses a guarded model ladder, rejecting models that fail a mini `graphify extract` smoke before they touch the real vault graph.
For local Ollama semantic refreshes it also uses a guarded model ladder, rejecting models that fail a mini `graphify extract` smoke before they touch the real vault graph. API backends are supported through environment variables such as `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, and `GEMINI_API_KEY`.
Repo defaults live in `config/graphify-refresh.json`. Override them with CLI flags or `MNEMAZINE_GRAPHIFY_*` env vars when needed.