Skip to content
T

Theasians

Bridging the Gap

Created on 15th March 2026

•

T

Theasians

Bridging the Gap

The problem Theasians solves

💡 The Problem it Solves

In the current digital landscape, news consumption suffers from three major "toxins": fragmentation, bias/echo chambers, and information overload.

1. The "First-Look" Fallacy

Most news aggregators simply pull a headline and a snippet. If the source is thin, the reader gets no depth. This workflow solves this by using a Researcher Agent that doesn't just read the link; it performs multi-engine searches and social sentiment analysis to synthesize a "360-degree" view before a single word is written.

2. The Fragmentation of Context

News happens in a vacuum on most sites. By implementing Vector-Based Semantic Linking (Cosine Similarity), this system automatically connects new stories to historical context (AI Memory). It prevents "news amnesia" by ensuring every story is anchored to related past events stored in the database.

3. Editorial Bottlenecks & Human Error

Scaling a news platform usually requires a massive team of editors to categorize, find images, and check for bias. This pipeline automates the "grunt work":

  • Auto-Categorization: Uses LLMs to map stories to niche subcategories with >70% confidence thresholds.
  • Asset Management: Automatically scrapes, deduplicates, and self-hosts images to Supabase to prevent broken links or hotlinking issues.
  • Quality Guardrails: A Reviewer Agent acts as an automated "Sub-Editor," filtering emojis and banned phrases before the story even hits the persistence layer.

🚀 How It Makes Life Easier

For Readers

  • Noise Reduction: The clustering logic (Jaccard + Cosine) merges 50 different articles about the same event into one "Representative Story," saving users from reading the same headline 10 times.
  • Multilingual Accessibility: The Writer Agent can output drafts in multiple languages, breaking down the barrier for non-English primary speakers.
  • Rich Media Experience: Even if a source lacks a good image, the Gemini Image API generates contextually relevant visuals, ensuring a high-quality UI/UX.

For Platform Admins (The "Asians" Team)

  • Hands-Free Growth: The system runs on a Cron-based Orchestration layer. It discovers, researches, writes, and publishes news 24/7 without manual intervention.
  • Smart Backlog Management: The "Lane Assignment" (Fresh vs. Backlog) ensures that breaking news is prioritized for the AI Workers, while older stories are processed during "quiet" times.
  • Safety First: By flagging stories that fail the ReviewerAgent quality check, the system creates a "Review Queue" rather than blindly posting low-quality AI hallucinations.

For Developers (The Technical Edge)

  • Infinite Scalability: Using RabbitMQ lanes allows developers to spin up more AI Workers or Persist Workers as the volume of news increases.
  • Data Integrity: The Postprocess Worker ensures that every story—no matter how it was ingested—ends up with a high-dimensional vector embedding for future search and recommendation features.

🌍 Impact

The Comprehensive News Workflow transforms how digital media is synthesized and delivered. By moving away from simple RSS aggregation and toward Agentic Synthesis, the impact is three-fold:

  • Combatting Information Symmetry: By merging data from NewsData.io, RSS, and MultiSearch (YaCy/DDG), the system ensures that diverse perspectives—not just mainstream ones—are captured in the "Discovery" phase.
  • Operational Efficiency: What would normally take a team of 10 journalists and SEO specialists hours (researching, cross-referencing, image sourcing, and tagging), this pipeline completes in less than 120 seconds per story group.
  • Zero-Maintenance Reliability: The self-healing nature of the "Reviewer Fix" branch and "Asset Fallback" logic means the platform (new.theasians.co.uk) stays populated with high-quality, hosted content even if source images break or APIs fluctuate.
  • Semantic Intelligence: Unlike traditional keyword-based sites, our use of Vector Embeddings ($Cosine \ Similarity$) creates a "Web of Knowledge," allowing users to discover deeply relevant historical context that they didn't even know to search for.

🔭 Future Scope

While the current implementation covers the end-to-end lifecycle, the modular architecture is designed for the following evolutions:

1. Cross-Platform "Social Listening" Expansion

Currently, the ResearcherAgent analyzes news and social themes. The next phase involves integrating direct Twitter/X and Reddit API hooks to detect "Trending Bubbles" before they hit mainstream news wires, moving the platform from reactive to predictive.

2. Hyper-Localized News Injection

Leveraging the user’s geolocation data to weight the Discovery Stage. The goal is to use the existing Category-Driven Query logic to fetch hyper-local news (city or borough level) and inject it into the global feed seamlessly.

Challenges we ran into

🚧 Challenges I Ran Into

1. The "Hallucination Loop" in Self-Correction

The Hurdle: During the Reviewer Stage, I initially prompted the AI to "fix the text if it contains emojis or bad formatting." However, the LLM would sometimes "over-fix," changing the actual facts of the story or stripping out valid HTML tags needed for the UI.

The Fix: I implemented a Dual-Agent Validation pattern. Instead of one prompt doing everything, I split it:

  1. ReviewerAgent only outputs a JSON "Report Card" (Boolean flags for issues).
  2. AutoFixAgent only triggers if the report card has false flags, and it is strictly constrained by a "System Prompt" that forbids changing proper nouns or dates.
  3. I added a Character Diff check; if the "fixed" version is more than 20% different in length than the original, it's flagged for human review instead of auto-publishing.

2. The "Slug Collision" Deadlock

The Hurdle: Since the discovery stage merges stories from multiple sources, many stories had identical or very similar titles. My initial slug generation (title-to-slug) caused database unique-constraint errors because multiple "fresh" workers were trying to insert the same story at the exact same millisecond.

The Fix: I moved away from simple slugging to a Recursive Slug Resolver.

  • The system now checks the DB for the existence of a slug.
  • If it exists, it appends a short-hash or a date-suffix.
  • I wrapped the persistence logic in a Supabase RPC (Postgres Function) to handle the "Check-then-Insert" as a single atomic transaction, preventing race conditions between parallel AI workers.

3. Media Reliability & "Hotlinking" Anxiety

The Hurdle: Discovery sources often provided image URLs that were either expired, protected by hotlink-protection, or extremely slow to load. Relying on external URLs made the frontend look broken.

The Fix: I built a Resilient Asset Pipeline.

  • The Logic: Every image is now passed through a Download -> Optimize -> Upload flow.
  • The Catch: If the source image fails (404 or Timeout), the worker doesn't crash. It triggers the Gemini Image API to generate a "Synthetic Feature Image" based on the story summary. This ensures 100% UI uptime with high-quality visuals, regardless of the source's stability.

4. Vector "Noise" in Semantic Search

The Hurdle: Initially, my find_similar_stories RPC was returning stories that were technically similar in keywords but contextually different (e.g., a story about "Apple stock" and a recipe for "Apple pie").

The Fix: I refined the Embedding Strategy. Instead of embedding the entire raw text, I now embed a "Semantic Payload" which is a concatenation of:
{Category} + {Title} + {Key Research Themes}.
By including the category and specific themes synthesized by the Researcher Agent, the vector math ($Cosine \ Similarity$) became significantly more accurate, effectively filtering out the "keyword noise."


🛠️ Tech Debt Turned Into "Features"

These hurdles forced me to move from a "simple script" to a robust worker-queue architecture. Using RabbitMQ to separate "Discovery" from "AI Processing" meant that if one stage hit a hurdle, it didn't take down the entire site—it just queued the task for a retry.

Tracks Applied (3)

Electrothon 8.0 Winners

Track 1: Best Use of Gemini 3 [Google Deepmind] Our project, new.theasians.co.uk, is a direct implementation of the Gem...Read More

Google Cloud

Track: Google Cloud new.theasians.co.uk leverages the Google Cloud ecosystem to power a highly scalable, distributed wo...Read More
Major League Hacking

Major League Hacking

Best Use of Gemini 3 [Google Deepmind]

Gemini 3: The Multimodal Intelligence Orchestrator Our project, new.theasians.co.uk, leverages the Gemini 3 family as t...Read More

Google Deepmind

Discussion

Builders also viewed

See more projects on Devfolio