Genai review summaries (#19473)

* Generate review item summaries with requests

* Adjust logic to only send important items

* Don't mention ladder

* Adjust prompt to be more specific

* Add more relaxed nature for normal activity

* Cleanup summary

* Update ollama client

* Add more directions to analyze the frames in order

* Remove environment from prompt
This commit is contained in:
Nicolas Mowen
2025-08-12 16:27:35 -06:00
committed by Blake Blackshear
parent 8e663413bb
commit dace88bfce
11 changed files with 171 additions and 42 deletions

View File

@@ -85,9 +85,6 @@ export default function ReviewDetailDialog({
let concerns = "";
switch (aiAnalysis.potential_threat_level) {
case ThreatLevel.UNUSUAL:
concerns = "• Unusual Activity\n";
break;
case ThreatLevel.SUSPICIOUS:
concerns = "• Suspicious Activity\n";
break;

View File

@@ -81,7 +81,6 @@ export type ConsolidatedSegmentData = {
export type TimelineZoomDirection = "in" | "out" | null;
export enum ThreatLevel {
UNUSUAL = 1,
SUSPICIOUS = 2,
DANGER = 3,
SUSPICIOUS = 1,
DANGER = 2,
}