osint-dashboard/news/summerizer/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
hermes-backend 853e87b7c5 feat(summarizer): score articles in the map phase, brief only the important ones
The map prompt now grades every article 0-100 against an explicit rubric as
the first line of its block; the summarizer parses Score:, falls back to the
Importance: label when the line is missing, ranks blocks best-first and passes
only score >= SUMMARY_MIN_SCORE (capped at SUMMARY_TOP_N) to the reduce phase.

- new pure helpers in intel.py: parse_map_scores(), select_graded(), join_blocks()
- reduce prompts drop the 'fill the brief with minor incidents and crime'
  filler instructions and the 'fill ticker with medium then low' clause
- new article_scores table (ensure_tables + alembic 012) persists every grade
  with selected/summary_id/model so thresholds can be tuned from data
- SUMMARY_MIN_SCORE (60), SUMMARY_TOP_N (12), SUMMARY_FALLBACK_TOP (3) env knobs
2026-11-13 21:47:30 -05:00
..
conftest.py feat: 23:00 daily news recap; prompts drop futures 2026-08-28 22:53:31 -04:00
test_grading.py feat(summarizer): score articles in the map phase, brief only the important ones 2026-11-13 21:47:30 -05:00
test_grading_pipeline.py feat(summarizer): score articles in the map phase, brief only the important ones 2026-11-13 21:47:30 -05:00
test_intel.py fix(map): geofence delete, vessel snapshots, sentinel cache, news briefs 2026-08-29 20:40:27 -04:00
test_nous_client.py fix(map): geofence delete, vessel snapshots, sentinel cache, news briefs 2026-08-29 20:40:27 -04:00
test_prompts.py feat(summarizer): score articles in the map phase, brief only the important ones 2026-11-13 21:47:30 -05:00
test_scheduler.py feat: 23:00 daily news recap; prompts drop futures 2026-08-28 22:53:31 -04:00
test_summarizer.py feat: 23:00 daily news recap; prompts drop futures 2026-08-28 22:53:31 -04:00