From 0120bca2d0d29a7f63ca888dc52c804523bd8bec Mon Sep 17 00:00:00 2001 From: Sleeps Date: Wed, 7 Oct 2026 14:23:11 +0100 Subject: [PATCH] Configure incremental caption Meili batches --- scene_search/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scene_search/config.py b/scene_search/config.py index a10affb..ecadbd6 100644 --- a/scene_search/config.py +++ b/scene_search/config.py @@ -55,6 +55,10 @@ class Settings: ).strip().lower() not in {"0", "false", "no", "off"} caption_timeout_seconds: int = int(os.getenv("CAPTION_TIMEOUT_SECONDS", "180")) caption_max_tokens: int = int(os.getenv("CAPTION_MAX_TOKENS", "120")) + caption_meili_batch_size: int = max( + 1, + int(os.getenv("CAPTION_MEILI_BATCH_SIZE", "500")), + ) caption_prompt_file: Path = Path( os.getenv("CAPTION_PROMPT_FILE", "./data/caption_prompt.txt") ).expanduser().resolve()