All case studies
AI / SaaSClient: Confidential

Confidential - AI Knowledge System with RAG

A secure, AI-enabled personal knowledge system that stores, retrieves, and answers questions over markdown notes using Retrieval-Augmented Generation (RAG). Combines vector search with an LLM to deliver grounded, cited answers from a private knowledge base.

The problem

Build a minimal, secure knowledge system allowing the user to ask natural language questions and receive grounded answers sourced from their own private markdown files.

What I built

Built a Next.js App Router application with Firebase Auth, implemented a full RAG pipeline using pgvector on Neon Postgres with Prisma ORM, integrated OpenAI API for grounded Q&A, and deployed on Vercel with optimised caching.

Outcome

  • Semantic vector search across a private markdown knowledge base via pgvector
  • Grounded AI answers with live citation links to source documents
  • Secure access behind Firebase authentication with session cookies
  • Fast retrieval and response with Neon Postgres and Vercel edge deployment

Stack

Next.jsReactTypeScriptshadcn/uiFirebase AuthNeon PostgrespgvectorPrismaOpenAI APIVercel

Running into something similar?

Start with a fixed-scope audit of your Supabase/Postgres app. If there is nothing worth fixing, I will tell you that too.