Inspiration

Every second, over 9,000 tweets, 500 hours of YouTube videos, and millions of social updates flood the internet. With 86% of people struggling to distinguish truth from falsehood, misinformation is now a global crisis — influencing elections, public health, and markets.

We wanted to build something that could verify information in real time — across domains, formats, and intent. That’s why we turned to Snowflake Cortex, which lets us play with industry-leading LLMs (Mistral, Claude, Llama) under a single account via its REST API. Adding AI capabilities to our application became as simple as a single curl command — no complex infra setup, just instant scalability.

What it does

TruthGuard AI is a multi-modal misinformation detection platform powered by Snowflake Cortex APIs. It analyzes text, image, and video content across six critical domains — news, elections, climate, health, deepfakes, and mental health — to detect and explain misinformation.

Key features include:

  • ⚙️ Real-time multi-model consensus analysis (Mistral, Claude, Llama)
  • 💾 Streaming logs and audit trails written directly to Snowflake tables
  • 🧠 Category-specific analysis for each misinformation domain
  • 🔌 Production-ready REST API built on enterprise-grade infrastructure
  • 📊 Exportable compliance reports (JSON/CSV) with traceable verdicts

BEST README FOR OPEN SOURCE DEVS

TruthGuard AI delivers instant, verifiable insights while maintaining 100% transparency through Snowflake’s unified data backbone.

How we built it

We built TruthGuard AI to be cloud-native and developer-friendly:

  • Frontend: Built using Streamlit with a modern, glassmorphism-inspired UI for interactive testing and visualization.
  • Backend: Python microservices call Snowflake Cortex REST APIs, leveraging requests.post() for seamless integration with mistral-large2, claude-3.5-sonnet, and llama3.1-70b.
  • Data Infrastructure:

    • Every query and response is logged into Snowflake tables for compliance and performance analytics.
    • Consensus engine aggregates multi-model responses and computes a weighted credibility score.
    • Dashboards use Snowflake SQL to display performance metrics and verdict history.
  • Deployment: Built as a modular architecture capable of being embedded into any enterprise verification pipeline.

Challenges we ran into

  • Managing secure authentication and API token lifecycle for Snowflake’s REST interface.
  • Handling streaming multi-model responses in real time within Streamlit’s reactive UI.
  • Designing a domain-adaptive prompt system that balances factual reasoning and contextual nuance.
  • Achieving low latency (<5 seconds) while running three models concurrently.
  • Maintaining structured audit logs inside Snowflake for every analysis run.

Accomplishments that we're proud of

  • ✅ Integrated three enterprise-grade LLMs into a single verification pipeline using Snowflake Cortex.
  • ✅ Built a complete misinformation detection suite with real-time consensus and deepfake analysis.
  • ✅ Designed a fully auditable system with every response logged into Snowflake tables.
  • ✅ Achieved sub-5-second response times for multi-model content analysis.
  • ✅ Developed a production-ready REST API with consistent, explainable results.

What we learned

  • The power of Snowflake Cortex in orchestrating multiple top-tier LLMs through a single, scalable API.
  • How to design LLM-based consensus mechanisms that increase reliability across diverse domains.
  • The importance of structured data governance — audit logs are not optional for trustworthy AI.
  • How to build explainable AI systems that justify their verdicts with transparent reasoning.
  • That REST-first architectures make AI integration fast, reproducible, and enterprise-friendly.

What's next for TruthGuard AI

  • 🌍 Multilingual detection: Extend misinformation analysis to regional languages.
  • 🎥 Media authenticity checks: Integrate image and video verification with Snowflake’s vector search.
  • 🤝 Partnerships: Collaborate with news outlets, policy institutions, and social media platforms.
  • 🧩 Native app deployment: Package TruthGuard as a Snowflake Native App for enterprise customers.
  • 🚀 Public API launch: Release open developer endpoints for misinformation detection at scale.

-

Built With

  • genai
  • llm
  • python
  • snowflake
  • snowflake-cortex-ai
Share this project:

Updates