From 685f2c50308ce34599f5671a9c3f74e40bd87f96 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Fri, 31 Oct 2025 06:14:34 -0600 Subject: [PATCH] Mark delivery objects with marker so LLM knows what is happening (#20736) --- frigate/data_processing/post/review_descriptions.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frigate/data_processing/post/review_descriptions.py b/frigate/data_processing/post/review_descriptions.py index babed21f3..94250dd37 100644 --- a/frigate/data_processing/post/review_descriptions.py +++ b/frigate/data_processing/post/review_descriptions.py @@ -186,6 +186,7 @@ class ReviewDescriptionProcessor(PostProcessorApi): thumbs, camera_config.review.genai, list(self.config.model.merged_labelmap.values()), + self.config.model.all_attributes, ), ).start() @@ -414,6 +415,7 @@ def run_analysis( thumbs: list[bytes], genai_config: GenAIReviewConfig, labelmap_objects: list[str], + attribute_labels: list[str], ) -> None: start = datetime.datetime.now().timestamp() analytics_data = { @@ -441,7 +443,11 @@ def run_analysis( continue elif label in labelmap_objects: object_type = label.replace("_", " ").title() - unified_objects.append(object_type) + + if label in attribute_labels: + unified_objects.append(f"{object_type} (delivery/service)") + else: + unified_objects.append(object_type) analytics_data["unified_objects"] = unified_objects