• Stars
    star
    163
  • Rank 223,383 (Top 5 %)
  • Language
    Python
  • Created over 1 year ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Example of running LangChain on Vercel

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