← all repositories

vercel-labs/ai-sdk-preview-rag

A Next.js application template that implements retrieval-augmented generation using the Vercel AI SDK and PostgreSQL vector storage.

409 stars TypeScript RAG · SearchApp Builders
ai-sdk-preview-rag
Not currently ranked — collecting fresh signals.
star history

This repository provides a production-ready RAG template for building AI applications that can reason over external data outside a model’s training knowledge. It uses the Vercel AI SDK’s streamText function for tool-based information retrieval and the useChat hook for real-time response streaming. Vector embeddings are stored in PostgreSQL using DrizzleORM, enabling semantic search over user-provided documents.

Frequently asked

What is vercel-labs/ai-sdk-preview-rag?
A Next.js application template that implements retrieval-augmented generation using the Vercel AI SDK and PostgreSQL vector storage.
Is ai-sdk-preview-rag open source?
Yes — vercel-labs/ai-sdk-preview-rag is open source, released under the MIT license.
What language is ai-sdk-preview-rag written in?
vercel-labs/ai-sdk-preview-rag is primarily written in TypeScript.
How popular is ai-sdk-preview-rag?
vercel-labs/ai-sdk-preview-rag has 409 stars on GitHub.
Where can I find ai-sdk-preview-rag?
vercel-labs/ai-sdk-preview-rag is on GitHub at https://github.com/vercel-labs/ai-sdk-preview-rag.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.