Skip to content

jeantessier/langchain-python-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LangChain Python Example

A sample script that uses LangChain to talk to LLMs.

Based on https://python.langchain.com/docs/tutorials/llm_chain/

You’ll need an API key for each LLM. So just follow the instructions linked below to obtain your API keys.

Save the keys to the app/src/main/resources/.env file as the corresponding ..._API_KEY environment variable. You can use app/src/main/resources/.env.template as a guide to structure your .env file.

Environment

(Re)create the Virtual Environment

python3 -m venv .venv
. .venv/bin/activate
pip install langsmith
conda create --name langchain
conda install --name langchain --file requirements.txt --channel conda-forge

Activate the Virtual Environment

. .venv/bin/activate
conda activate langchain

About

An example of using LangChain in Python with langchain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages