Mark delivery objects with marker so LLM knows what is happening (#20736)
Some checks are pending
CI / AMD64 Build (push) Waiting to run
CI / Assemble and push default build (push) Blocked by required conditions
CI / ARM Build (push) Waiting to run
CI / Jetson Jetpack 6 (push) Waiting to run
CI / AMD64 Extra Build (push) Blocked by required conditions
CI / ARM Extra Build (push) Blocked by required conditions
CI / Synaptics Build (push) Blocked by required conditions

This commit is contained in:
Nicolas Mowen 2025-10-31 06:14:34 -06:00 committed by GitHub
parent 971521cd8e
commit 685f2c5030
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -186,6 +186,7 @@ class ReviewDescriptionProcessor(PostProcessorApi):
thumbs, thumbs,
camera_config.review.genai, camera_config.review.genai,
list(self.config.model.merged_labelmap.values()), list(self.config.model.merged_labelmap.values()),
self.config.model.all_attributes,
), ),
).start() ).start()
@ -414,6 +415,7 @@ def run_analysis(
thumbs: list[bytes], thumbs: list[bytes],
genai_config: GenAIReviewConfig, genai_config: GenAIReviewConfig,
labelmap_objects: list[str], labelmap_objects: list[str],
attribute_labels: list[str],
) -> None: ) -> None:
start = datetime.datetime.now().timestamp() start = datetime.datetime.now().timestamp()
analytics_data = { analytics_data = {
@ -441,7 +443,11 @@ def run_analysis(
continue continue
elif label in labelmap_objects: elif label in labelmap_objects:
object_type = label.replace("_", " ").title() 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 analytics_data["unified_objects"] = unified_objects