Skip to content

homanp/vercel-langchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 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 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

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

About

Example of running LangChain on Vercel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages