TheDragonTail
0f966d6b9f
fix(embeddings): fall back to default cache dir when FASTEMBED_CACHE_PATH is empty ( #3434 )
...
docker-compose.yml injects FASTEMBED_CACHE_PATH=${FASTEMBED_CACHE_PATH:-},
which sets the variable to an empty string when the host has not defined it.
FASTEMBED_CACHE_DIR used os.getenv("FASTEMBED_CACHE_PATH", default), and
os.getenv only returns the default when the variable is ABSENT -- so the empty
value won and FASTEMBED_CACHE_DIR became "". os.makedirs("") then raised
[Errno 2] No such file or directory: '', FastEmbed failed to initialise, and
every vector feature (RAG, semantic memory, tool index) silently degraded on
the default Docker stack.
Treat an empty value like an absent one via `os.getenv(...) or default`.
Add a regression test covering the empty, unset, and explicit cases.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-16 03:11:48 +01:00
..
2026-06-15 17:38:09 +00:00
2026-06-04 18:57:24 +02:00
2026-06-15 15:02:10 +09:00
2026-06-15 17:49:27 +01:00
2026-06-01 16:54:11 +09:00
2026-06-15 16:40:49 +02:00
2026-06-15 15:00:11 +09:00
2026-06-03 09:00:04 +09:00
2026-06-04 16:26:11 +01:00
2026-05-31 23:58:26 +09:00
2026-06-07 12:55:01 +02:00
2026-06-08 09:58:52 +02:00
2026-06-15 15:03:09 +09:00
2026-06-11 13:26:59 +02:00
2026-06-15 17:44:10 +01:00
2026-06-15 15:59:31 +09:00
2026-06-15 15:59:31 +09:00
2026-06-07 12:39:02 +02:00
2026-06-08 21:33:29 +02:00
2026-06-09 22:46:54 +01:00
2026-06-09 10:16:38 +09:00
2026-06-01 22:22:41 +09:00
2026-06-03 14:14:27 +09:00
2026-06-15 17:44:10 +01:00
2026-06-16 03:11:48 +01:00
2026-06-15 15:17:28 +09:00
2026-06-15 20:31:57 +09:00
2026-06-15 17:30:18 +02:00
2026-06-04 21:13:14 +02:00
2026-05-31 23:58:26 +09:00
2026-06-10 12:08:22 +01:00
2026-06-03 13:23:01 +09:00
2026-06-10 15:15:13 +09:00
2026-06-03 14:06:31 +09:00
2026-06-09 10:40:17 +02:00
2026-06-15 17:44:10 +01:00
2026-06-15 22:49:06 +09:00
2026-06-08 09:58:52 +02:00
2026-05-31 23:58:26 +09:00
2026-06-08 09:58:52 +02:00
2026-06-06 03:37:10 -06:00
2026-06-15 15:40:36 +09:00
2026-06-15 17:49:27 +01:00
2026-06-10 15:15:13 +09:00
2026-06-15 17:44:10 +01:00
2026-06-05 02:40:52 +02:00
2026-06-04 16:26:11 +01:00
2026-06-06 03:17:19 -06:00
2026-06-04 05:31:15 +01:00
2026-06-15 15:17:28 +09:00
2026-06-10 19:21:45 +02:00
2026-06-15 21:20:15 +09:00
2026-06-15 15:16:41 +09:00
2026-06-10 10:41:52 +02:00
2026-05-31 23:58:26 +09:00
2026-06-01 18:27:17 +09:00
2026-06-03 13:42:05 +09:00
2026-06-08 19:16:37 +02:00
2026-06-07 22:15:50 +01:00
2026-06-08 09:58:52 +02:00
2026-06-15 17:44:10 +01:00
2026-06-08 09:58:52 +02:00
2026-05-31 23:58:26 +09:00
2026-06-02 23:33:22 +09:00
2026-06-10 15:15:13 +09:00
2026-05-31 23:58:26 +09:00
2026-06-11 01:17:02 +02:00
2026-06-03 13:42:24 +09:00
2026-06-15 17:44:10 +01:00
2026-06-08 09:58:52 +02:00
2026-06-09 16:00:24 +01:00
2026-06-09 01:06:20 +01:00
2026-06-11 16:31:54 +02:00
2026-06-11 12:53:33 +02:00
2026-06-15 21:20:15 +09:00
2026-06-03 02:40:22 +09:00
2026-06-16 02:42:41 +01:00
2026-06-15 15:56:54 +09:00
2026-06-04 19:26:58 +02:00
2026-06-04 13:18:50 +01:00
2026-06-11 18:17:54 +02:00
2026-06-16 00:03:33 +02:00
2026-06-15 21:20:15 +09:00
2026-06-15 15:19:38 +09:00
2026-06-06 18:48:24 -06:00
2026-06-16 00:03:33 +02:00
2026-06-15 15:01:48 +09:00
2026-06-09 01:05:30 +02:00
2026-06-02 20:44:27 +09:00
2026-06-11 16:01:04 +02:00
2026-06-09 01:24:30 +02:00
2026-06-03 08:59:49 +09:00
2026-06-03 22:47:00 +09:00
2026-06-09 22:46:54 +01:00
2026-06-04 13:42:49 +01:00
2026-06-11 15:53:52 +02:00
2026-06-15 15:03:41 +09:00