~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
docs: document the "Local embedding model files changed" failure mode (#7474)
Masyarakat AI Indonesia - FMD80b2d18459fc
diff --git a/changelog.d/7471.misc.md b/changelog.d/7471.misc.mdnew file mode 100644index 0000000000..303156ce70--- /dev/null+++ b/changelog.d/7471.misc.md@@ -0,0 +1 @@+Document the `Local embedding model files changed` failure mode in the library-and-RAG replacement/repair flow and add a troubleshooting entry for it.diff --git a/docs/library-and-rag.md b/docs/library-and-rag.mdindex 46e73f08d5..0b3c84e950 100644--- a/docs/library-and-rag.md+++ b/docs/library-and-rag.md@@ -264,6 +264,17 @@ a trusted copy under the application's models directory and select that,or select a different model.Use Ollama for a broader choice of locally managed embedding models.+**Replacing model files under a live session.** If you replace or repair the+files of a model while a session (or the service) has it loaded, the next+embedding call that must reload it raises `ValueError: Local embedding model+files changed; create a new embedding client`. This is deliberate, fail-closed+vector safety: the check refuses to silently mix embeddings produced by+different weights. Clients keep working while the old model stays loaded, so+retrying the failed operation — each one builds its own embedding client —+loads the replacement. Programmatic callers that keep one manager alive+should create a new embedding client. See+[Troubleshooting - Embedding Issues](troubleshooting.md#embedding-issues).+#### Ollama (Local)Uses your local Ollama installation.diff --git a/docs/troubleshooting.md b/docs/troubleshooting.mdindex a4ca7d9920..bca2a490f9 100644--- a/docs/troubleshooting.md+++ b/docs/troubleshooting.md@@ -11,6 +11,7 @@ This guide covers common issues and their solutions.- [WebSocket/Real-time Updates](#websocketreal-time-updates)- [Docker Issues](#docker-issues)- [API Issues](#api-issues)+- [Embedding Issues](#embedding-issues)- [Performance Issues](#performance-issues)- [Resource Exhaustion](#resource-exhaustion)@@ -510,6 +511,27 @@ sudo lsof -i :5000 # May need sudo for system services---+## Embedding Issues++### "Local embedding model files changed" Error++**Symptoms:**+- Embedding or indexing fails with `ValueError: Local embedding model files changed; create a new embedding client`+- It starts right after the model's files under the models directory (or the Hugging Face cache) were replaced or repaired while a session or the service had it loaded++**Cause:**+- The model cache notices that the files of a loaded model changed. Mixing embeddings produced by different weights would corrupt an index, so the check is a fail-closed guard rather than a bug. Existing clients keep working while the old model stays loaded: the error appears when an old client has to reload, or when the files change during a new load. The UI reports it as "Indexing failed. Check the server logs for details", with the `ValueError` text in the server log.++**Solutions:**++1. **Retry the failed operation:**+ - Each indexing, search, note and Zotero operation builds its own embedding client, so retrying the failed one already loads the replacement model. Restarting the service works too, but isn't needed+ - Programmatic callers that keep one manager alive should create a new embedding client instead+2. **Finish the replacement or repair before embedding again:**+ - An interrupted download can retrigger the check; repeat the repair under an authorized public scope first, or select the repaired model again++---+## Performance Issues### Slow Research