big ui and intel updates

This commit is contained in:
Logan
2026-04-19 16:48:55 -04:00
parent 0df53df92e
commit 303c5b13cf
11 changed files with 527 additions and 169 deletions
+7 -2
View File
@@ -95,9 +95,10 @@ async def _run_extraction_pipeline(
"""Run steps 2-4 of the intelligence pipeline using an existing transcript."""
from app.internal import intelligence, incident_correlator, alerter
tags, incident_type, location = await intelligence.extract_tags(
tags, incident_type, location, location_coords = await intelligence.extract_tags(
call_id, transcript, talkgroup_name,
talkgroup_id=talkgroup_id, system_id=system_id, segments=segments,
node_id=node_id,
)
if incident_type:
@@ -110,6 +111,7 @@ async def _run_extraction_pipeline(
tags=tags,
incident_type=incident_type,
location=location,
location_coords=location_coords,
)
await alerter.check_and_dispatch(
@@ -150,10 +152,12 @@ async def _run_intelligence_pipeline(
tags: list[str] = []
incident_type: Optional[str] = None
location: Optional[str] = None
location_coords: Optional[dict] = None
if transcript:
tags, incident_type, location = await intelligence.extract_tags(
tags, incident_type, location, location_coords = await intelligence.extract_tags(
call_id, transcript, talkgroup_name,
talkgroup_id=talkgroup_id, system_id=system_id, segments=segments,
node_id=node_id,
)
# Step 3: Incident correlation
@@ -167,6 +171,7 @@ async def _run_intelligence_pipeline(
tags=tags,
incident_type=incident_type,
location=location,
location_coords=location_coords,
)
# Step 4: Alert dispatch (always runs — talkgroup ID rules don't need a transcript)