e704df1a62
# app/internal/incident_correlator.py - *correlate_call* — added units and vehicles optional params; when provided (per-scene from intelligence extraction), they take priority over the merged call-document values, preventing multi-scene unit contamination - *Cross-TGID correlation path (2.5)* — *new path between location and slow paths*: when a call shares 2+ unit IDs with a recent same-system, same-type incident AND embedding similarity ≥ 0.85, it links them — catches multi-talkgroup pursuits like the bicycle search that split across dispatch/tactical/geographic channels # app/internal/intelligence.py - *reassignment field* — added to the GPT-4o-mini prompt schema and rules; true when dispatch is actively pulling a unit to a new, different call (not a status update or en route acknowledgement); returned in every processed scene dict - *Tag location rule* — added explicit instruction to the prompt: tags must describe what happened, not where; place names, road names, and talkgroup names are explicitly forbidden as tags # app/routers/upload.py - Both scene correlation call sites (_run_extraction_pipeline and _run_intelligence_pipeline) now pass units=corr_units where corr_units = [] if scene.get("reassignment") else scene.get("units") — suppresses unit overlap matching when a unit is being reassigned to a new call, preventing chaining into their previous incident - Both sites also pass vehicles=scene.get("vehicles") (per-scene vehicles, from the multi-scene units fix) # app/config.py - embedding_cross_tg_threshold: float = 0.85 — threshold for the new cross-TGID path
Logan
2026-05-04 01:33:03 -04:00
f6897566f8
Fix tags, titles, and hallucinations
Logan
2026-05-04 01:13:18 -04:00
531ce64eeb
Fix system AI flag bug
Logan
2026-04-27 00:58:05 -04:00
f8a9cda27e
update firestore to FieldFilter
Logan
2026-04-27 00:54:35 -04:00
640667c9f9
Implement per-system AI flags
Logan
2026-04-27 00:50:01 -04:00
357553f1ea
Issue Fix Upload 404 warning doc_set(merge=True) in upload.py — creates doc if missing MQTT call_end 404 error doc_set(merge=True) in mqtt_handler.py — same root cause Transcription 404 (saving transcript to nonexistent doc) doc_set(merge=True) in transcription.py Transcription ADC credentials error Explicit service_account.Credentials from gcp-key.json in _sync_transcribe — same pattern as storage.py
Logan
2026-04-12 22:04:11 -04:00
66316efa53
fix upload name
Logan
2026-04-12 21:58:08 -04:00
030dd2d787
File Change app/internal/storage.py Replaced make_public() + public_url with a v2 signed URL (1-year expiry, no public bucket needed) app/main.py Releases all in-use tokens at startup — tokens from previous sessions are cleared automatically app/routers/tokens.py Added POST /tokens/flush to force-release orphaned tokens on demand
Logan
2026-04-11 21:16:14 -04:00