From a5f7a5561d07e5c85a3fe61572a6e3255fa2cdcf Mon Sep 17 00:00:00 2001 From: stumpylog <797416+stumpylog@users.noreply.github.com> Date: Fri, 5 Jun 2026 12:49:41 -0700 Subject: [PATCH] ensure the llm_dir exists for the write_store too --- src/paperless_ai/indexing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/paperless_ai/indexing.py b/src/paperless_ai/indexing.py index 9656fe280..8ac26dd62 100644 --- a/src/paperless_ai/indexing.py +++ b/src/paperless_ai/indexing.py @@ -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()