ai-sdk-preview-internal-knowledge-base  by vercel-labs

Next.js template for retrieval-augmented generation (RAG)

created 10 months ago
263 stars

Top 97.6% on sourcepulse

GitHubView on GitHub
Project Summary

This repository provides a template for building an internal knowledge base using Vercel's AI SDK and Next.js. It demonstrates retrieval-augmented generation (RAG) and guardrail enforcement for AI applications, targeting developers building AI-powered internal tools.

How It Works

The project leverages the AI SDK's Language Model Middleware to integrate with various AI providers. It facilitates RAG by enabling the retrieval of relevant information from a knowledge base to augment LLM responses, and implements guardrails to control AI behavior and ensure safe, relevant outputs.

Quick Start & Requirements

  • Install: npx create-next-app --example https://github.com/vercel-labs/ai-sdk-preview-internal-knowledge-base ai-sdk-preview-internal-knowledge-base-example
  • Prerequisites: Accounts and API keys for AI providers (e.g., OpenAI, Anthropic), Node.js environment.
  • Setup: Requires setting environment variables from .env.example to .env and running npm install.
  • Learn More: AI SDK Documentation, Next.js Documentation

Highlighted Details

  • Demonstrates retrieval-augmented generation (RAG).
  • Enforces guardrails for AI applications.
  • Built with Vercel AI SDK and Next.js.

Maintenance & Community

This is a Vercel Labs project, indicating potential for integration with Vercel's ecosystem. Further community or maintenance details are not provided in the README.

Licensing & Compatibility

The repository's license is not specified in the README. Compatibility for commercial use or closed-source linking would require clarification of the license.

Limitations & Caveats

The project is presented as a preview and internal template, suggesting it may not be production-ready. Specific AI provider integrations and guardrail configurations are left to the user to implement based on their chosen providers and requirements.

Health Check
Last commit

6 months ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
27 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Taranjeet Singh Taranjeet Singh(Cofounder of Mem0), and
1 more.

fragments by e2b-dev

0.6%
6k
Next.js template for AI-generated apps
created 1 year ago
updated 1 week ago
Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Didier Lopes Didier Lopes(Founder of OpenBB), and
4 more.

stagehand by browserbase

1.0%
15k
AI browser automation framework for production
created 1 year ago
updated 1 day ago
Feedback? Help us improve.