Intel update

This commit is contained in:
Logan
2026-04-19 08:00:09 -04:00
parent 2d606add75
commit 1e3d691dbd
3 changed files with 58 additions and 26 deletions
+6 -2
View File
@@ -101,17 +101,21 @@ async def _run_intelligence_pipeline(
from app.internal import transcription, intelligence, incident_correlator, alerter
transcript: Optional[str] = None
segments: list[dict] = []
# Step 1: Transcription
if gcs_uri:
transcript = await transcription.transcribe_call(call_id, gcs_uri, talkgroup_name)
transcript, segments = await transcription.transcribe_call(call_id, gcs_uri, talkgroup_name)
# Step 2: Intelligence extraction
tags: list[str] = []
incident_type: Optional[str] = None
location: Optional[str] = None
if transcript:
tags, incident_type, location = await intelligence.extract_tags(call_id, transcript, talkgroup_name)
tags, incident_type, location = await intelligence.extract_tags(
call_id, transcript, talkgroup_name,
talkgroup_id=talkgroup_id, system_id=system_id, segments=segments,
)
# Step 3: Incident correlation
if incident_type: