Leave me a note

It goes straight to my inbox. I reply within a day or two.

What's it about?
or find me on
← back to the desk

~/work/nexus/README.md

Product · 2026 · Live

Nexus

Ask a creator's whole catalog. Every claim cites the exact moment.

A chat app over an ingested creator catalog, currently Alex Hormozi's videos. It searches the transcripts, answers with a short synthesis, and cites every claim to the timestamp it came from. If the catalog doesn't say it, Nexus says so instead of guessing.

role: Retrieval pipeline, evals, and the chat app.

Nexus answering a question, with the cited video and its timestamps under the answer

The problem

Advice bots hallucinate confidently. The bar here was an answer you could check: which video, and which minute of it.

How it works

  1. 01Transcripts are ingested into Postgres and searched with hybrid retrieval, fused with reciprocal rank fusion, strictly reranked, then widened with neighbouring chunks for context.
  2. 02A Mastra agent with native memory and a single search tool answers. Catalog claims must come from returned evidence; ordinary conversation skips search.
  3. 03Citations use stable chunk IDs, so they resolve while the answer is still streaming and after the thread is reloaded.
  4. 04A golden eval set grades faithfulness, relevancy and precision, and mixes in questions the catalog can't answer to check that Nexus refuses instead of inventing.

Where it landed

  • Deployed on Vercel with accounts and a source library you can import into.
  • Every answer carries timestamped citations you can click through to the moment.
  • Evals run as a regression gate between retrieval changes.

Stack

  • Next.js
  • Mastra
  • AI SDK
  • Postgres + pgvector
  • Drizzle
  • tRPC
  • Clerk
  • Vercel Workflow