From 3,266 Items to 20: Engineering an AI News Aggregation and Briefing Pipeline

    This article walks through the engineering behind an LLM-driven system that ingests thousands of AI news items, deduplicates and clusters them into events, ranks and filters for importance, and generates a structured, fact-checked daily briefing. It covers the six-layer pipeline architecture, source layering and incremental fetching, event clustering and deduplication strategies, relevance filtering with auto-classification, explainable weighted ranking with diversity re-ranking, structured summary generation with fact verification, reusable technical takeaways, and a phased rollout plan with quality metrics. Developers building or maintaining information-processing pipelines for noisy, high-volume feeds will find concrete implementation guidance and pseudocode they can adapt.

    1. Background: Why Filtering and Distillation Are Engineering Problems

    Over the past 30 hours, a single AI news aggregation channel collected 3,266 items. After merging duplicates and removing irrelevant content, 20 items remained for the final selection, a compression ratio of roughly 0.6%. This kind of aggregation workflow had become fairly common by around 2026: a fixed cycle acts as the window, an automated pipeline performs full-scale cleaning first, then an editor or a generation model curates the highlights and outputs them in a uniform format of “one-line takeaway + source.”

    A few items in this briefing are representative of the current pace of the industry:

    • Capital and fundamentals: A leading large-model company saw its stock surge on its first day of listing, then fall more than 9% the next day, approaching its IPO price. That same week, major Asia-Pacific stock indices posted their worst weekly performance in months, with clear selling in the AI sector. The high market enthusiasm did not translate into sustained support for valuations.
    • Model iteration: A cloud vendor bundled together multiple versions released over the same period, spanning use cases such as complex engineering and scientific research, speed and efficiency, and long-cycle deep research, and gradually opened them across its app and search products.
    • Ecosystem tools: On the 100th day after an open-source coding tool’s release, the community summarized more than a dozen plugin use cases, showing that the tool’s ecosystem is moving from “usable” toward “genuinely good to use.”
    • Model form: After some users reported that a large-model version’s parameter count was too large, an AI research company switched to a recurrent Transformer architecture and released a small version with only 26 billion parameters.
    • Frontier research: Researchers used AI to produce a machine-verifiable proof of a famous number-theory conjecture, which is now under review by the mathematics community.

    Across these developments, one shared premise emerges: there is a lot of valuable information every day, but only a little of it deserves attention. The core problem developers face is how to continuously and reliably distill the signals that truly matter from the noise at low cost. The key to this problem is not “finding another model that chats better,” but designing a rigorous information-processing pipeline.

    This article frames that need as a technical problem: building an LLM-driven system for news collection, deduplication, ranking, and briefing generation. The rest of the article unfolds layer by layer, from overall architecture to the key implementation of each stage.

    2. Overall Architecture: A Six-Layer Pipeline

    The system uses a layered pipeline design. Each layer has a single responsibility and is decoupled from the others through messaging, which makes it easy to scale independently and isolate failures:

    1. Collection and ingestion layer: multi-source pulling, normalized into a standard event structure;
    2. Cleaning and filtering layer: body-text extraction, language detection, spam and ad filtering;
    3. Deduplication and clustering layer: merging multiple reports of the same event into a single “event cluster”;
    4. Ranking and selection layer: combining source, information gain, popularity, timeliness, and diversity to pick the day’s highlights;
    5. Summary generation and verification layer: producing a structured briefing and performing fact-consistency checks;
    6. Distribution and feedback layer: scheduled delivery, collection of reading and correction feedback, forming a closed loop.
    1. [Multi-source collection] → [Normalized event queue] → [Cleaning / body extraction] → [Dedup and event clustering]
    2. ↑ ↓
    3. [Distribution: briefing/Q&A] ← [Summary generation + fact check] ← [Importance ranking + diversity rerank] ← [Relevance filter / classification]
    4. ↑
    5. [Reading / correction feedback] ──────────────────────────────────────────┘

    The pipeline needs to be idempotent: no matter how many times a piece of news is collected, it should leave a trace in only one event cluster. To achieve this, each item should carry a stable unique key (a normalized URL or a content fingerprint), and raw snapshots should be archived in object storage partitioned by date, for later tracing and retrospection. On Baidu AI Cloud, this kind of system is typically hosted on general-purpose cloud products such as object storage, message queues, container platforms, log services, and monitoring and alerting.

    3. Collection and Ingestion: Coverage Breadth and Data Quality

    Source layering. It helps to divide sources into four tiers by trustworthiness:

    • Core tier: vendor official blogs, release announcements, and developer documentation;
    • Primary tier: maintainers’ public discussions and paper preprints;
    • Community tier: technical forums, Q&A communities, and developer social networks;
    • Media tier: secondary coverage and interpretation from tech media.

    The core and primary tiers carry high weight but update slowly; the community and media tiers are fast and high-volume but also the noisiest. Layered collection is what lets you balance timeliness and accuracy.

    Incremental pulling. For each source, maintain a watermark (a cursor or timestamp) and pull only new content, avoiding wasteful full re-crawls. For web sources, detect changes via sitemaps or content hashes; for sources with paginated APIs, pull sequentially by cursor.

    Collection health. Track per-source statistics such as success rate, average latency, and average daily output. When a source fails repeatedly or its output drops sharply, trigger an alert to prevent “a briefing quietly dropping a source.”

    Compliance boundaries. Respect site terms of service and robots conventions, control request rates, avoid collecting non-public or login-gated data, and honor copyright and personal-data-protection requirements.

    4. Preprocessing: Making Data from Different Sources Comparable

    A unified event structure is the foundation for every downstream stage:

    1. {
    2. "id": "sha1(normalized_url)",
    3. "url": "https://...",
    4. "title": "Title",
    5. "content": "Plain text body",
    6. "author": "Author / organization",
    7. "published_at": "2026-08-26T02:15:00Z",
    8. "fetched_at": "2026-08-26T02:20:00Z",
    9. "source_layer": "core | primary | community | media",
    10. "lang": "zh",
    11. "signals": {"likes": 0, "replies": 0, "bookmarks": 0},
    12. "media": [{"type": "image | video", "desc": "Scene or content description"}]
    13. }

    Key normalization steps:

    • URL cleaning: strip tracking parameters, normalize case and default ports, and resolve short links.
    • Body extraction: remove navigation, ads, and recommendation slots, keeping only the main text.
    • Timezone unification: convert all timestamps to UTC to avoid sorting errors across time zones.
    • Multimodal handling: image-text and video posts need a multimodal model or speech transcription to extract key information. For a hands-on video review, for example, record the test scenario, the comparison targets, the evaluation method, and the conclusion, rather than judging value from the title alone.
    • Trustworthiness labeling: the source tier should be carried as a field throughout the pipeline and used by the ranking and summary stages.

    5. Deduplication and Event Clustering: Converging 3,266 Items into a Handful of Topics

    The same event often appears simultaneously in an official announcement, community discussions, and coverage from dozens of media outlets. Without deduplication, the briefing would be flooded by repeated coverage of the same story. The industry calls this problem “News Storyline Generation,” and the typical flow is “recall candidates, compute similarity, cluster incrementally.”

    A three-tier strategy balances cost and recall:

    1. Exact deduplication: use a normalized URL and a content fingerprint (e.g., a hash of the body) to detect exact duplicates;
    2. Shallow clustering: compute text fingerprints (such as SimHash) or vector representations over the title and first paragraph, and merge when similarity exceeds a threshold;
    3. Semantic clustering: for items not yet merged, compute vector representations over “title + first paragraph,” perform online incremental clustering, and allow a single event to merge across sources.
    1. # Pseudocode: online incremental deduplication and event clustering
    2. clusters = [] # each element: {"rep": representative item, "members": [], "signals": {}}
    3. def ingest(item):
    4. key = item.id
    5. if key in seen: # exact deduplication
    6. seen[key]["signals"] = merge_signals(seen[key], item)
    7. return
    8. seen[key] = item
    9. emb = embed(item.title + " " + item.content[:300])
    10. best, score = None, 0.0
    11. for c in recent_clusters(): # compare only with recently active clusters
    12. sim = cosine(emb, c["centroid"])
    13. if sim > score:
    14. best, score = c, sim
    15. if best and score >= 0.85:
    16. best["members"].append(item)
    17. best["centroid"] = update_centroid(best["centroid"], emb, len(best["members"]))
    18. best["signals"] = merge_signals(best["signals"], item["signals"])
    19. else:
    20. clusters.append({"rep": item, "members": [item], "centroid": emb, "signals": item["signals"]})

    A few implementation lessons are worth noting:

    • Time decay: restrict comparisons to clusters active within the last 24 to 48 hours. If an event is too old, it should not be merged even when it is semantically similar.
    • Representative item selection: prefer the original text from the core or primary tier, since it is usually the most complete version; media interpretation serves only as supplementary material.
    • Citations are a strong signal: when a body text cites or links to an original announcement, prefer merging it into that announcement’s cluster.
    • Threshold calibration: 0.85 is only an example. Manually label a set of “same event / different event” sample pairs, plot the similarity distribution, and then calibrate against your business goals. Merging too loosely conflates different events; merging too tightly causes flooding.
    • Configurable cluster granularity: daily curation suits a coarser granularity; topic tracking can use finer sub-clusters.

    After this step, 3,266 items typically converge into anywhere from a few hundred to a few thousand event clusters.

    6. Relevance Filtering and Auto-Classification

    After deduplication, further filtering is still needed: recruiting ads, product promotions, AI-unrelated chatter, and emotional arguments should all be excluded.

    A combination of “rule-based recall + model judgment + LLM fallback” is recommended:

    • Rule-based recall: use keywords and regular expressions to intercept obviously irrelevant content, such as job postings and referral promotions;
    • Model judgment: use a lightweight text classifier (e.g., TF-IDF with a linear classifier, or a fine-tuned small language model) to assess relevance, at a cost far below invoking an LLM;
    • LLM fallback: only for samples whose model confidence falls in the middle range, invoke an LLM to decide, outputting “relevant/irrelevant + category + rationale.”

    A recommended taxonomy covers: model releases, hands-on reviews, engineering tools, open weights, security incidents, academic research, and capital/business. Classification results directly affect ranking and quota control. For example, if “capital/business” items make up the bulk of the raw information while the briefing is meant to favor technical content, you need quotas to rebalance the mix.

    7. Importance Ranking: What Counts as “Worth Reading”

    Relevance answers “is it relevant”; ranking answers “which matters more.” A good baseline is an explainable weighted score, followed by diversity re-ranking:

    1. score = w1·source_authority + w2·information_gain + w3·popularity + w4·timeliness
    2. + w5·audience_match - w6·clickbait_penalty
    • Source authority: core tier > primary tier > community tier > media tier; pure reposts and items of unknown origin should be weighted down significantly;
    • Information gain: whether it contains new facts, such as version numbers, parameter counts, performance data, weight-availability status, or a change in the nature of an event. Capital news needs special handling: taking “shares fell more than 9% the day after listing, approaching the IPO price” as an example, what is really worth attention is not the single-day move but “why market sentiment reversed within 24 hours.” The summary should distill the underlying reasons, such as disagreement over valuation, a sector pullback, or investors’ concerns about the pace of revenue realization.
    • Popularity: engagement data usually follows a long-tail distribution, so normalize it first and then take the logarithm to avoid a few viral items dominating the list.
    • Timeliness: introduce exponential decay exp(-Δt/τ) so that “just happened” edges out “happened earlier,” without sidelining important news from a few hours ago.
    • Audience match: vectorize event clusters against reader profiles (e.g., “backend engineer, focused on model deployment” or “ML researcher, focused on papers and weights”) and compute similarity.
    • Clickbait penalty: moderately down-weight titles with lots of exclamation marks, question-style phrasing, or sensational words like “shocking” or “explosive.”

    After selecting candidates, apply diversity-constrained re-ranking. Maximum Marginal Relevance (MMR) can trade off between relevance and difference:

    1. MMR = argmax [ λ · rel(i) − (1 − λ) · max sim(i, j) ]
    2. i∈R j∈S

    Here, R is the candidate set, S is the set already selected, and λ is typically between 0.5 and 0.8. A per-category quota provides a backstop, for example no more than N items per category, to guarantee coverage. In addition, encourage the summary to include three kinds of comparison: model versions with different positioning, models at different parameter scales, and work done with AI assistance versus results produced purely by humans. Comparison makes the briefing more informative.

    8. Summary Generation: Structured Output and Fact Verification

    Ranking decides “what to write about”; generation decides “how to write it.” For model selection, you do not need to use the largest model for everything: routine items can use a more cost-effective model, while items with complex, conflicting source text or dense data can be escalated to a model with stronger reasoning.

    The prompt should make four requirements explicit:

    1. Answer only from the original text within the cluster; do not add information the original does not mention;
    2. Each item includes a one-line conclusion (within 30 characters), 2 to 3 key points, and a clickable backlink;
    3. All numbers, version numbers, and parameter counts must match the original text;
    4. When information conflicts or is uncertain, explicitly mark it as “to be verified.”

    The following JSON structure is recommended for easy downstream template rendering:

    1. {
    2. "date": "2026-08-26",
    3. "stats": {"ingested": 3266, "clusters": 840, "selected": 20},
    4. "items": [
    5. {
    6. "rank": 1,
    7. "category": "Model release",
    8. "title": "One-line conclusion",
    9. "points": ["Point 1", "Point 2"],
    10. "source_type": "core | primary | community | media",
    11. "source": "Original link or source name",
    12. "confidence": 0.93,
    13. "need_review": false
    14. }
    15. ]
    16. }

    Fact verification. Generation is only the beginning; verification is just as important:

    • Numerical checks: use regular expressions to extract numbers (including percentages, monetary amounts, parameter counts, and dates) from both the generated text and the cluster’s original text, and compare them one by one. When a number does not match, rewrite first; if it still fails, flag it for manual review;
    • Consistency checks: use an LLM to cross-check “whether the generated conclusion is supported by the original text,” which can significantly reduce hallucinations;
    • Link checks: confirm that each backlink is reachable and points to the cluster’s representative item;
    • Human spot checks: in the early stage after launch, sample 10% to 20%; once stable, reduce to around 5%, and accumulate the correction samples into an evaluation set.

    9. Reusable Technical Takeaways

    In light of the developments in the briefing, the following technical points have broader value for developers:

    1. Model evaluation: look at the method, but also the scenario. When multiple frontier models are released in succession, the community quickly runs head-to-head tests, comparing scenarios such as 3D scenes, games, UI generation, and data visualization. The lesson from such comparisons:

    • General benchmark scores struggle to reflect real experience, so build a small, reproducible evaluation set for your own business;
    • Comparisons must control variables: use identical prompts and decoding parameters, sample multiple times, and record latency and cost;
    • Distinguish official self-evaluation from third-party testing. Official figures are worth referencing, but independent tests are more convincing.

    2. Small-parameter models: putting capability on target within budget. In response to feedback that “the model has too many parameters,” a small version with about 26 billion parameters built on a recurrent Transformer architecture shows that model miniaturization is shifting from “compressing an existing large model” to “considering efficiency from the very start of architecture design.” The recurrent structure lets the same set of parameters participate in computation repeatedly at different depths, trading compute for capacity; combined with techniques such as distillation, quantization, and pruning, it can strike a balance in cost-sensitive scenarios. But fewer parameters usually come with capability trade-offs, so always validate on your own task set before migrating.

    3. Tool ecosystems: from “usable” to “second nature.” The fact that the community summarized more than a dozen plugin use cases within 100 days of a tool’s release shows that competition among developer tools is shifting from core capability toward ecosystem richness and user experience. When choosing a tool, look at whether the plugin mechanism is open, whether configuration can be versioned, and whether it integrates with your existing development workflow, to avoid being locked into a single tool.

    4. Inference protection: defense in depth, not single-point reliance. Strengthening protection against “internal reasoning being extracted” in a new generation of models reflects the fact that a model’s reasoning chain may contain sensitive information, or may be induced to leak it under attacks such as prompt injection. On the engineering side, you can adopt multiple layers of measures:

    • Authentication and quotas, to identify abnormally frequent, patterned calls;
    • Sensitive-information masking and output filtering;
    • A tool-call allowlist;
    • Rate limiting and alerting.

    At the same time, be clear that protection capabilities require ongoing adversarial evaluation and cannot be assumed to be a one-time fix.

    5. Desktop automation: the stronger the capability, the more you must constrain permissions. Automation capabilities for desktop applications let a model click, type, and operate local files and websites in the background to complete multi-step tasks. Power comes with risk, so adoption should follow these principles:

    • Least privilege: run only inside an isolated virtual machine or sandbox;
    • Human confirmation: operations involving payments, deletions, or outbound sending must be confirmed by the user;
    • Full auditability: record every step and support rollback;
    • Content filtering: intercept prompt injection and malicious pages.

    6. AI for Science: verifiability is the foundation of trust. The fact that researchers used AI to obtain a machine-verifiable proof of a famous number-theory conjecture, while the mathematics community reviews it, shows that in formalized mathematics, AI output can be verified by a machine rather than merely “looking plausible.” Note that the machine verifies the proof derivation itself; whether the statement is correct and truly corresponds to the original conjecture still depends on expert judgment. The broader lesson is this: design “verifiable steps” into model outputs, such as unit tests, compilation, numerical checks, and formal proofs, and build a “generate–verify–correct” loop, which is often more effective than simply pursuing stronger generation.

    10. Implementation Roadmap and Effectiveness Evaluation

    Phased rollout:

    Phase Duration Goal Key deliverables
    Pilot 1–2 weeks Get a minimal loop working end to end 3–5 core sources, dedup and clustering, a manual briefing of up to 10 items
    Expansion 3–4 weeks Broaden coverage and automation All sources integrated, structured summaries, fact verification, scheduled distribution
    Optimization Ongoing Personalization and quality improvement Ranking-model iteration, subscription-based Q&A, evaluation-set-driven tuning

    Quality metrics:

    • Coverage: recall of hot events (the share of confirmed important events that are captured);
    • Precision: the share of “irrelevant items” reported by readers;
    • Factual accuracy: the rate of numerical mismatches and the hallucination rate;
    • Diversity: the deviation between category distribution and target quotas;
    • Performance: end-to-end latency (from event occurrence to briefing publication) and cost per briefing.

    Evolution direction. Once a stable stream of briefings accumulates into a knowledge base, it can further support natural-language Q&A, such as “What small-parameter models with open weights have appeared recently?” or “What security incidents are there around desktop automation?” By answering with retrieval-augmented generation and citing sources, the system upgrades from “daily push” to “retrieval on demand.”

    Conclusion

    From 3,266 items to 20, on the surface this is content curation, but in essence it is a microcosm of information engineering. Collection solves “seeing everything,” deduplication and clustering solve “no repetition,” relevance filtering solves “staying on topic,” importance ranking solves “catching the key points,” structured summaries and fact verification solve “being trustworthy,” and the feedback loop solves “getting more accurate with use.”

    The faster AI models iterate and the denser information becomes, the more valuable this pipeline is. For developers and enterprises, rather than chasing every piece of news, it is better to invest energy in a stable, transparent, and evaluable information-processing capability, so that the truly important technical changes are not drowned out by noise.