Skip to content

lawrencerowland/vercel-langchain1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy with Vercel

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 https://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

Deploy with Vercel

Further reading

Learn more about how to use LangChain by visiting the offical documentation or repo:

https://langchain.readthedocs.io/en/latest/

https://github.com/hwchase17/langchain