Direct hugging face to cache into a persistent, writeable location

This commit is contained in:
Trenton Holmes
2026-05-09 14:38:33 -07:00
parent 79d0a04df0
commit d89387bec0
+1
View File
@@ -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