Muse AI
Truth, Verified — AI that grounds every answer
Created on 14th October 2025
•
Muse AI
Truth, Verified — AI that grounds every answer
Description of your solution
We built a RAG-powered misinformation agent that combines retrieval, evidence attribution, and a conservative LLM policy to detect and explain false or misleading news claims. The system ingests a curated news corpus, indexes it with Jina embeddings into a vector store, and retrieves the most relevant passages for any user claim. Google Gemini synthesizes those passages into a concise verdict with source citations and an explicit confidence score. Redis stores session provenance so every answer is auditable. Our UX highlights evidence next to the agent’s claim, enabling users to verify sources quickly. The result: faster, more transparent fact-checking that scales to newsroom workflows and public education.
A RAG-powered chat agent that detects, explains, and corrects misinformation in news articles by retrieving supporting evidence from a curated news corpus and generating concise, source-attributed rebuttals using Google Gemini.
What it does (user perspective)
User pastes a news excerpt, URL, or asks a question about a claim.
The agent retrieves relevant passages from the ~50-article news corpus, finds corroborating or contradicting evidence, and returns a short verdict: True / Misleading / False / Unverifiable, with a 2–3 sentence explanation and 2–3 source citations (passage snippets + links).
For ambiguous claims it lists what additional evidence is needed and provides a suggested next step (fact-check links, official sources).
Sessions are tracked so the agent can follow up on prior claims and show provenance for earlier answers.
How it solves misinformation (key points)
Retrieval first: RAG ensures answers are grounded in the corpus (not hallucinated).
Evidence attribution: Returned text includes the top-k passages and source metadata so users can verify.
Claim scoring: The agent computes a simple confidence score using retrieval similarity + LLM judgment.
Conservative output policy: When evidence is thin, the agent refuses definitive claims and suggests verification steps.
Session provenance: Redis stores session history and evidence used per answer so users and reviewers can audit the decision trail.
Architecture mapped to assignment requirements
RAG pipeline
Ingest ~50 vetted news articles (RSS / scraped HTML).
Create embeddings with Jina Embeddings (or open-source alternative).
Store vectors in a Vector DB (Qdrant or Chroma).
For each query: retrieve top-k passages → pass retrieved context + user prompt to Google Gemini → Gemini crafts the final verdict and explanation.
Backend (Node.js + Express)
REST endpoints (and optional WebSocket) for:
POST /chat → query + session_id → returns streaming or typed reply
GET /session/:id/history → returns message + evidence history
POST /session/:id/reset → clear session
Redis:
Cache session history and store per-response evidence (keys like session:{id}:history)
TTLs configured (e.g., 30 days by default) with docs describing how to change
Optional Postgres/MySQL to persist transcripts and audit logs (for moderation/analysis)
Frontend (React + SCSS)
Chat screen with:
Input box, attachments (URLs), and “Claim” mode
Streaming or typed-out Gemini replies
Inline evidence cards showing passage snippet, source, and link
“Request deeper audit” button to trigger a full-explain mode
Reset session button
Caching & Performance
Redis for fast session lookups, cache top-k retrieval results per frequent claim, and TTLs to control storage.
Vector DB for retrieval; warm cache on app start for hot topics.
Rate limit + batching requests to Gemini for cost control.
Tracks Applied (1)
Misinformation: Bring your own problem in Misinformation, leveraging Agentic AI.
Technologies used