diff --git a/frigate/data_processing/post/review_descriptions.py b/frigate/data_processing/post/review_descriptions.py index a1ebe1dfc..07cad67cc 100644 --- a/frigate/data_processing/post/review_descriptions.py +++ b/frigate/data_processing/post/review_descriptions.py @@ -142,10 +142,12 @@ class ReviewDescriptionProcessor(PostProcessorApi): logger.debug("No review items with metadata found during time period") return None - important_items = filter( - lambda item: item.get("potential_threat_level", 0) > 0 - or item.get("other_concerns"), - items, + important_items = list( + filter( + lambda item: item.get("potential_threat_level", 0) > 0 + or item.get("other_concerns"), + items, + ) ) if not important_items: diff --git a/frigate/genai/__init__.py b/frigate/genai/__init__.py index 7ad634299..39e80a0dd 100644 --- a/frigate/genai/__init__.py +++ b/frigate/genai/__init__.py @@ -69,7 +69,6 @@ Your task is to provide a **neutral, factual, and objective description** of the When forming your description: - **Facts first**: Describe the time, physical setting, people, and objects exactly as seen. - **Then context**: Briefly note plausible purposes or activities (e.g., “appears to be delivering a package” if carrying a box to a door). -- Clearly separate certain facts (“A person is holding an object with horizontal rungs”) from reasonable inferences (“likely a ladder”). - Do not speculate beyond what is visible, and do not imply hostility, criminal intent, or other strong judgments unless there is unambiguous visual evidence. Here is information already known: