RealtimeKeep your app up to date
AuthenticationOver 80+ OAuth integrations
Convex Components
ComponentsIndependent, modular, TypeScript building blocks for your backend.
Open sourceSelf host and develop locally
AI CodingGenerate high quality Convex code with AI
Compare
Convex vs. Firebase
Convex vs. Supabase
Convex vs. SQL
DocumentationGet started with your favorite frameworks
SearchSearch across Docs, Stack, and Discord
TemplatesUse a recipe to get started quickly
Convex for StartupsStart and scale your company with Convex
Convex ChampionsAmbassadors that support our thriving community
Convex CommunityShare ideas and ask for help in our community Discord
Stack
Stack

Stack is the Convex developer portal and blog, sharing bright ideas and techniques for building with Convex.

Explore Stack
BlogDocsPricing
GitHub
Log inStart building
Back

Retrieval-Augmented Generation

Enhance AI apps with RAG

In the age of AI, large language models (LLMs) like OpenAI's GPT let you build chatbots and other AI apps that can answer questions with natural language. But these general-purpose LLMs lack the specialized context relevant to your use case. Retrieval-Augmented Generation (RAG) is a technique for surpassing the capabilities of generic AI apps by pulling domain-, app-, and/or user-specific data into the generation pipeline.

Convex supports several different strategies for building tailored AI experiences by using your Convex data for RAG. Whether using Convex's built-in vector database or popular tools like Langchain, you can build bespoke AI interfaces that augment standard LLM outputs with additional context retrieved from your Convex data.

Screen grab of Retrieval-Augmented Generation in action

Resources

πŸ’‘BLOG
Build a RAG chatbot with Convex & OpenAI
stack.convex.dev/ai-chat-using-openai-assistants-api
πŸ’‘BLOG
Use Langchain with Convex to build a chatbot with RAG
stack.convex.dev/ai-chat-using-langchain-and-convex
πŸ’‘BLOG
Store embeddings in Convex & use built-in vector search for RAG
stack.convex.dev/ai-chat-with-convex-vector-search
🎞️VIDEO
Learn how to build augmented AI chat with Convex
stack.convex.dev/aicamp-augmented-chat
πŸ“„DOCS
Read more about vector search in Convex
docs.convex.dev/vector-search
🎞️VIDEO
Watch a 5-minute intro to vector search
www.youtube.com/watch?v=m6eWdnRhBpA
Get your app up and running in minutes
Start building
Convex logo
ProductSyncRealtimeAuthOpen sourceAI codingChefFAQPricing
DevelopersDocsBlogComponentsTemplatesStartupsChampionsChangelogPodcastLLMs.txt
CompanyAbout usBrandInvestorsBecome a partnerJobsNewsEventsTerms of servicePrivacy policySecurity
SocialTwitterDiscordYouTubeLumaBlueskyGitHub
A Trusted Solution
  • SOC 2 Type II Compliant
  • HIPAA Compliant
  • GDPR Verified
Β©2025 Convex, Inc.