ensure the llm_dir exists for the write_store too

This commit is contained in:
stumpylog
2026-06-05 12:49:41 -07:00
parent 3c2ef25edd
commit a5f7a5561d
+1
View File
@@ -80,6 +80,7 @@ def write_store():
this context manager to serialise concurrent Celery writers.
Read paths use ``get_vector_store()`` directly — no lock needed.
"""
settings.LLM_INDEX_DIR.mkdir(parents=True, exist_ok=True)
with FileLock(settings.LLM_INDEX_LOCK):
yield get_vector_store()