LangChain running on Vercel
A minimal example on how to run LangChain on Vercel using Flask.
Installation
1. Virtualenv
Create and activate virtualenv
.
virtualenv MY_ENV
source MY_ENV/bin/activate
2. Install requirements
pip install requirements.txt
3. Start development server
vercel dev
4. Example API route
GET http://localhost:3000
Environment Variables
To run this project, you will need to add the following environment variables to your .env file
OPENAI_API_KEY
One-Click Deploy
Further reading
Learn more about how to use LangChain by visiting the offical documentation or repo: