Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A retrieval-augmented generation Next.js chatbot using the AI SDK's middleware interface.
This template provides an Internal Knowledge Base, a retrieval-augmented generation (RAG) Next.js chatbot. It leverages the Vercel AI SDK's Language Model Middleware to perform advanced RAG and enforce guardrails, ensuring responses are accurate and controlled. Built with Next.js, this solution offers a robust foundation for creating intelligent chatbots that can interact with your internal documentation or data.
Key Features:
Use Cases:
How to Use:
To get started with this template, you can bootstrap it using create-next-app with npm, Yarn, or pnpm:
npx create-next-app --example https://github.com/vercel-labs/ai-sdk-preview-internal-knowledge-base ai-sdk-preview-internal-knowledge-base-example
# or
yarn create next-app --example https://github.com/vercel-labs/ai-sdk-preview-internal-knowledge-base ai-sdk-preview-internal-knowledge-base-example
# or
pnpm create next-app --example https://github.com/vercel-labs/ai-sdk-preview-internal-knowledge-base ai-sdk-preview-internal-knowledge-base-exampleTo run the example locally, you will need to:
OPENAI_API_KEY, AUTH_SECRET) in a new file named .env, based on the .env.example.npm install.npm run dev.This template is an excellent starting point for building powerful, AI-driven applications that require intelligent information retrieval and controlled content generation.