big ui and intel updates
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user