← all repositories

supabase-community/nextjs-openai-doc-search

A template that builds a custom ChatGPT for searching documentation using OpenAI completions and pgvector semantic search.

1.7k stars TypeScript RAG · SearchChat Assistants
nextjs-openai-doc-search
Velocity · 7d
+1.5
★ / day
Trend
steady
star history

This starter template processes .mdx documentation files into vector embeddings stored in Postgres via pgvector. At runtime it performs vector similarity search to retrieve relevant context, then injects that context into OpenAI GPT-3 text completion prompts and streams the response to the user. It is designed for deployment to Vercel with automatic Supabase database configuration.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.