vercel-labs/ai-sdk-preview-rag
Retrieval-augmented generation (RAG) template powered by the AI SDK.
Implements tool-based document retrieval through `streamText` with vector embeddings persisted in PostgreSQL via DrizzleORM, enabling the model to access custom knowledge bases. Combines real-time response streaming via the `useChat` hook with a Next.js frontend, providing end-to-end integration within Vercel's ecosystem. Uses the AI Gateway for unified model access across multiple providers.
394 stars.
Stars
394
Forks
79
Language
TypeScript
License
MIT
Category
Last pushed
Dec 12, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/rag/vercel-labs/ai-sdk-preview-rag"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
upstash/rag-chat
Prototype SDK for RAG development.
merefield/discourse-chatbot
An AI bot with RAG capability for Topics and Chat in Discourse, currently powered by OpenAI
ajac-zero/example-rag-app
Open-Source RAG app with LLM Observability (Langfuse), support for 100+ providers (LiteLLM),...
rag-web-ui/rag-web-ui
RAG Web UI is an intelligent dialogue system based on RAG (Retrieval-Augmented Generation) technology.
skaldlabs/skald
Context layer platform in your infrastructure