Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jaredpalmer/nextjs-langchain-example

Demo of using LangChain.js with Next.js and Vercel Edge Functions (to stream the response)
https://github.com/jaredpalmer/nextjs-langchain-example

langchain langchain-js nextjs vercel

Last synced: about 15 hours ago
JSON representation

Demo of using LangChain.js with Next.js and Vercel Edge Functions (to stream the response)

Awesome Lists containing this project

README

        

# Next.js x LangChain x Vercel Edge Functions

This basic demo shows that [LangChain.js](https://github.com/hwchase17/langchainjs) x [Next.js](https://github.com/vercel/next.js) and the Edge Runtime

To use, grab an [OpenAI API key](https://platform.openai.com/account/api-keys) and rename the `.env.local.example` to `.env.local`.

```
git clone
pnpm i
pnpm dev
```