mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-13 11:37:13 +00:00
Fix: Use a persistent, writeable location for hugging face models (#12771)
This commit is contained in:
1 parent
79d0a04df0
commit
da0f25b546
2 files changed
+3
No files matched your search
@@ -39,6 +39,7 @@ def get_embedding_model() -> "BaseEmbedding":
|
||||
return HuggingFaceEmbedding(
|
||||
model_name=config.llm_embedding_model
|
||||
or "sentence-transformers/all-MiniLM-L6-v2",
|
||||
cache_folder=str(settings.DATA_DIR / "hf_cache"),
|
||||
)
|
||||
case LLMEmbeddingBackend.OLLAMA:
|
||||
from llama_index.embeddings.ollama import OllamaEmbedding
|
||||
|
||||
Reference in new issue
Block a user