mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-19 00:03:36 +00:00
Make Meili sync authoritative and accept tagged specialist captions
This commit is contained in:
+5
-3
@@ -150,6 +150,7 @@ def cmd_sync_meili(_: argparse.Namespace) -> None:
|
||||
raise SystemExit(f"Multiple embedding dimensions found: {dims}. Use separate indexes per model.")
|
||||
dim = int(dims[0])
|
||||
meili.configure_user_vectors(dim)
|
||||
meili.clear_documents()
|
||||
|
||||
cursor = con.execute(
|
||||
"""
|
||||
@@ -236,9 +237,10 @@ def _select_caption_rows(
|
||||
params: list[object] = []
|
||||
|
||||
if only_needing_caption and not getattr(args, "force", False):
|
||||
expected_models = [settings.caption_general_model]
|
||||
if settings.caption_router_enabled:
|
||||
expected_models.append(settings.caption_specialist_model)
|
||||
expected_models = [
|
||||
settings.caption_general_model,
|
||||
settings.caption_specialist_model,
|
||||
]
|
||||
placeholders = ",".join("?" for _ in expected_models)
|
||||
conditions.append(
|
||||
f"(f.caption IS NULL OR f.caption_model IS NULL "
|
||||
|
||||
Reference in New Issue
Block a user