Next.js OpenAI Doc Search Starter
This starter provides a template for building a custom ChatGPT-style documentation search application. It leverages Next.js, OpenAI, and Supabase to create an AI-powered search experience for your documentation.
Key Features:
- Custom Context: Processes
.mdx
files to use as custom context for OpenAI Text Completion prompts. - pgvector Embeddings: Stores document embeddings in Postgres using the
pgvector
extension for efficient similarity searches. - Vector Similarity Search: Performs vector similarity search at runtime to find relevant content based on user queries.
- OpenAI Integration: Injects relevant content into OpenAI GPT-3 prompts and streams the response to the client.
- Supabase Integration: Uses Supabase for database management and automatically configures the database schema.
Use Cases:
- Creating intelligent documentation search for software libraries.
- Building custom chatbots that can answer questions based on a specific knowledge base.
- Developing AI-powered search for internal company documentation.