Send a request

Technology · 2 min · Andrey Atmorsky

One news story posted three times

A stack of folded newspapers lying on a wooden table

In short

A story about GPT-6.1 Sol went out on my channel three times in two days, because the dedupe check compared only words and the wording on the three sites was different. I added a second check by meaning, plus a rule to run new sources through the dedupe check first. The takeaway: word matching knows nothing about meaning, so duplicates like that need a separate check.

The GPT-6.1 Sol story went out on my channel three times in two days, and every time from a different site. All three posts appeared on October 3 and 4.

The channel is a simple one: a few lines about artificial intelligence news. The texts are collected and written by my Python script, which runs on its own on a schedule on a server (cron, a built-in alarm clock for programs).

What the script does with every story

The script collects news every 15 minutes, but publishes by the clock: roundups at 10:00, 13:00 and 19:00 Moscow time, and a digest at 21:30. Anything really important goes out right away, at any hour.

Before the script writes a text, a story passes through three sieves. First the stop topic filter: war, politics and sanctions get cut. Then the dedupe check, that is, a check of whether this already went out on my channel before. Then the importance score, from S to C.

Why the duplicate slipped through

Back then the dedupe check compared only words, and the search brought the same event from three different sites, each with its own wording. To the script those were three different stories, and it honestly did what I asked it to do.

A dedupe check like that is like a doorman who recognizes people by their clothes: if you changed your outfit, you are a new person.

What I changed

I added a second check, by meaning. It is a separate question to the model: is this the same story that went out earlier. The word comparison stayed in place, it is fast and cheap.

I also made a rule for new sources: first I run a new site through the dedupe check on its own feed, and only then do I let it into the channel.

What is worth taking from this

A script that compares words knows nothing about meaning, so duplicates like that have to be caught by a separate check. Running a new source through it in advance is cheaper than explaining three posts about the same thing afterwards.

Questions on the topic

Why did the same story go out three times?

Back then the dedupe check compared only words, and the search brought the same event from three sites, each with its own wording. To the script those were three different stories.

How does the script pick and publish news?

It collects news every 15 minutes and publishes roundups at 10:00, 13:00 and 19:00 Moscow time, with a digest at 21:30, while anything really important goes out right away. Before a text is written, a story passes a stop topic filter, the dedupe check, and an importance score from S to C.

What did I change after this?

I added a second check by meaning: a separate question to the model about whether this is the same story that went out earlier, while keeping the word comparison. I also made a rule to run a new site through the dedupe check on its own feed before letting it into the channel.

Andrey Atmorsky

Digital concierge, Second Sun

THE FIRST CALL IS FREE

book a call

Second Sun services

Get in touch

The first call is free, 30 minutes.

Message on Telegram
Telegram
@mderth
Instagram*
@atmorskis

Owned by Meta, which is designated an extremist organization and banned in Russia.

157A Pobedy Ave, Kaliningrad
Mon–Fri: 8:00–18:00

Send a request

Discuss your task