Skip to content

kinsta/hello-world-langchain

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

LangChain

Kinsta - Hello World - LangChain

An example of how to deploy a Flask application with LangChain on Kinsta App Hosting services.


Kinsta is a developer-centric cloud host / PaaS. We’re striving to make it easier for you to share your web projects with your users. Focus on coding and building, and we’ll take care of deployment and provide fast, scalable hosting. + 24/7 expert-only support.

Dependency Management

During the deployment process Kinsta will automatically install dependencies defined in your requirements.txt file.

Web Server Setup

Build Environment

When deploying your LangChain app, make sure to choose Dockerfile method as your build environment.

Environment Variables

ℹ️ OpenAI models

In this example, we chose OpenAI's models for the sake of simplicity, but you're free to choose the models you prefer as LangChain provides support for other models as well. In that case, we recommend you remove the OPENAI_API_KEY environment variable and the relevant application code.

To ensure your successful deployment, set the following environment variables:

# Get it from https://platform.openai.com/account/api-keys
OPENAI_API_KEY=<YOUR_API_KEY>

What is LangChain

LangChain framework is intended to develop language model-powered applications that are data-aware, agentic, and differentiated. More information is available on the LangChain website.

About

An example of how to set your πŸ¦œπŸ”— LangChain application up to enable deployment on Kinsta App Hosting services.

Topics

Resources

Stars

Watchers

Forks

Languages