Skip to main content
All case studies

2023 - 2025 · Founder & Lead Developer (Side Project)

Zeitgaist

Cross-Lingual Social Intelligence

You asked in English and got answers from Chinese, Russian, and Arabic sources that an English search would miss.

  • 89%

    Internal Top-10 Relevance

    Dense retrieval plus reranking vs 72% embedding-only baseline

  • 6

    Social Platforms

    Twitter, Reddit, HN, Mastodon, Bluesky, 4Chan

  • 20+

    Languages

    Cross-lingual search with automatic translation

  • <200ms

    p95 Latency

    End-to-end retrieval including re-ranking

Zeitgaist dashboard showing social sentiment analysis across multiple platforms with trend charts and source attribution

The problem

Decision-makers in finance, marketing, and research needed current public-opinion context across Twitter/X, Reddit, Hacker News, Mastodon, Bluesky, and other platforms. Manual monitoring took a lot of time, critical insights in non-English sources were missed, and traditional search lacked temporal context, source attribution, and precise filters. Asking "why did real estate prices surge recently?" against Chinese sources brought up geopolitical drivers, local policies, and cultural factors that the English answers did not mention.

The solution

Built a unified backend that served two complementary products: an AI chatbot for conversational queries and an analytics dashboard for trend visualization. In product terms, it was a Perplexity-like answer engine with a deeper social-media index and user-controlled time, language, platform, and location filters. The retrieval system used dense embedding search followed by cross-encoder reranking, which improved internally evaluated top-10 relevance from 72% to 89% over an embedding-only baseline. I first tried single-stage retrieval but found that accuracy degraded on cross-lingual queries. The two-stage approach improved result quality at acceptable latency (~200ms p95 in the retrieval path).

Tech stack

Backend
Python 3.12 · FastAPI · PostgreSQL · pgvector · Redis · Supabase
AI/ML
Sentence Transformers · Cross-Encoder · GPT-4 / Claude · FastText · RAG Pipeline
Frontend
SvelteKit · TypeScript · Tailwind CSS · DaisyUI · Chart.js
Infrastructure
Docker Swarm · Traefik · OpenTelemetry · WebSocket · MessagePack

My role: Founder & Lead Developer (Side Project)

  • Designed and built two-stage retrieval architecture with pgvector
  • Implemented Sentence Transformers retrieval with cross-encoder reranking
  • Built multi-language support for 20+ languages with automatic query translation
  • Created real-time WebSocket streaming with MessagePack binary serialization
  • Developed conversation memory that rewrote each query using the earlier conversation
  • Built two SvelteKit frontends (Chat + Social dashboard)
  • Deployed production infrastructure with Docker Swarm and Traefik

Differentiators

  • A Perplexity-style answer engine over a social-media index, with filters for time, language, platform, and location
  • One search across 6 social networks
  • Dense retrieval with cross-encoder reranking, which beat embedding-only search in internal relevance tests
  • Questions in English returned results from Chinese, Arabic, and Russian sources
  • An LLM interpreted time references in questions, such as "last week"
  • Every answer included numbered citations with timestamps

Running Zeitgaist at a competitive price cost too much for a self-funded product, so I shut it down. The service is no longer online.

Questions about this project?

I am happy to walk through the architecture and the trade-offs.

View resume

Other projects