A Docusaurus template with hybrid search capabilities and AI-powered response functionality. This template enables your documentation to have:
- 🔍 Vector-based semantic search
- 🤖 AI-powered responses based on your documentation
- Semantic search powered by Upstash Vector
- AI chat responses using OpenAI
- Serverless functions for handling search and AI requests
- Modern and responsive UI
- Dark/Light mode support
- Click the
Use this template
button to create a new repository - Clone your new repository and install dependencies:
npm install
- Add your documentation to the
docs
directory - Set up your environment:
- Create an index in Upstash Console
- Copy
.env.example
to.env
and fill in your credentials
- Index your documentation:
npm run index-docs
- Deploy to Vercel:
vercel
Important: After deploying, make sure to add your environment variables in your Vercel project dashboard.
vercel dev
This starts a local development server with full functionality, including search and AI features.
Note: While
npm run start
is available, it only serves static content. Usevercel dev
for full functionality including serverless features.
This template uses a hybrid architecture:
- Static content: Your documentation pages (handled by Docusaurus)
- Dynamic features: Search and AI functionality (handled by serverless functions)
Vercel provides both:
- Static site hosting for your documentation
- Serverless function hosting for search and AI features
npm run format
Formats the codebase using Prettier.
vercel
Deploys your site to Vercel.
This website is built using Docusaurus, a modern static website generator with the following commands, which are suggested to be used for creating a new Docusaurus project.
npx create-docusaurus@latest docusaurus-ai-search classic --typescript
npm install --save-dev typescript @docusaurus/module-type-aliases @docusaurus/tsconfig @docusaurus/types