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()