#2929th of 34 in RAG and search
nextjs-openai-doc-search
Build-time embeddings of your MDX docs into Supabase pgvector
- Stars
- 1.7k
- License
- Apache-2.0
- Last commit
- May 2026
- Language
- TypeScript
1,690 on 28 Mar 20261,724 on 21 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Supabase is hiring: 83 open roles
Overview
A Next.js starter that chunks the .mdx files in pages/ at build time, embeds each section with OpenAI and stores vectors in Supabase pgvector, skipping files whose checksum has not changed. At runtime an Edge function embeds the question, runs a similarity search and streams a completion with the matched sections in the prompt; the schema ships as a Supabase migration. For teams adding chat search to a Next.js docs site.
Who it is for: Teams adding chat search to a Next.js docs site
Strengths
- Checksum table avoids re-embedding unchanged files on every build
- pgvector schema is a checked-in Supabase migration
- One secret (OPENAI_KEY) when deployed with the Vercel Supabase integration
Weaknesses
- Uses the legacy OpenAI text completion endpoint; expect to port it
- Only .mdx in pages/ is indexed; other sources need code
- No auth, no conversation history, no tests
- Design dates from 2023; last commit 2026-05
What it needs
- TypeScript, openai
- Needs supabase, postgres-pgvector, openai-api-key, docker-for-local-supabase
- env example file
Also in RAG and search
See all 34| Rank | Project | Score |
|---|---|---|
| #27 | ragbitsModular Python toolkit for LLM prompts, RAG ingestion, agents and chat APIs | 33 out of 100 |
| #28 | nano-graphragCompact Python GraphRAG library with swappable LLM, vector and graph storage | 32 out of 100 |
| #30 | azure-search-openai-demo-csharp.NET RAG chat sample over your documents with Azure OpenAI and AI Search | 30 out of 100 |
| #31 | lightningragGo and Vue RAG platform with knowledge bases, agent canvas and admin UI | 22 out of 100 |
| #32 | natural-language-postgresNext.js text-to-SQL over Postgres with auto-picked charts | 18 out of 100 |