From a9d3a4eb33c380e3301b42ea24d541940a954884 Mon Sep 17 00:00:00 2001 From: Lance Walters Date: Fri, 13 Nov 2026 22:16:50 -0500 Subject: [PATCH] =?UTF-8?q?apps(osint):=20summarizer=20d04ddc9afacb=20?= =?UTF-8?q?=E2=80=94=20syndication=20dedupe=20before=20selection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR #55 collapses normalised-title duplicates (7 Hearst stations carrying one wire story) to the best-scoring representative before min_score/top_n, stores duplicates with selected=false + duplicate_of, and exposes SUMMARY_DEDUPE / SUMMARY_DEDUPE_SIMILARITY (0.85). --- apps/base/osint/configmap.yaml | 5 +++++ apps/base/osint/news-summarizer-deployment.yaml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/base/osint/configmap.yaml b/apps/base/osint/configmap.yaml index 29e5b8e..bdc0e70 100644 --- a/apps/base/osint/configmap.yaml +++ b/apps/base/osint/configmap.yaml @@ -75,6 +75,11 @@ data: # Lowest score the fallback may pick when nothing clears SUMMARY_MIN_SCORE; # below this the brief is the honest "no significant developments" one. SUMMARY_FALLBACK_MIN_SCORE: "40" + # Syndication dedupe (PR #55): identical wire copy from sister stations is + # collapsed to one representative before the threshold/cap, so top_n buys + # distinct stories. SUMMARY_DEDUPE=0 disables it. + SUMMARY_DEDUPE: "1" + SUMMARY_DEDUPE_SIMILARITY: "0.85" NEWS_SUMMARIZE_INTERVAL_S: "900" NEWS_SUMMARIZE_RUN_ON_START: "1" NEWS_RECAP_HOUR: "23" diff --git a/apps/base/osint/news-summarizer-deployment.yaml b/apps/base/osint/news-summarizer-deployment.yaml index 7e39ca1..edfec15 100644 --- a/apps/base/osint/news-summarizer-deployment.yaml +++ b/apps/base/osint/news-summarizer-deployment.yaml @@ -23,7 +23,7 @@ spec: kubernetes.io/hostname: siriussec containers: - name: news-summarizer - image: forgejo.siriusdevops.com/sirius/osint-news-summarizer:amd64-fa745ee3f7ae + image: forgejo.siriusdevops.com/sirius/osint-news-summarizer:amd64-d04ddc9afacb imagePullPolicy: IfNotPresent # Loop: batch the last window, call Nous Portal, write summaries. command: ["python", "run_news_summarizer.py"]