LangChain + Next.js Starter
Type: Code
Framework: Next.js
CSS: Tailwind
Database: Supabase
The LangChain + Next.js Starter Template is an application template that demonstrates the use of LangChain.js and Next.js for various use cases. It provides examples of:
- Simple chat
- Returning structured output from an LLM call
- Answering complex, multi-step questions with agents
- Retrieval augmented generation (RAG) with a chain and a vector store
- Retrieval augmented generation (RAG) with an agent and a vector store
The template uses Vercel’s AI SDK to stream tokens to the client and display incoming messages. It’s designed to be free-tier friendly.