Skip to content

Latest commit

 

History

History

chapter3

Chapter 3 - Getting Started with LangChain

Please make sure, you set up your environment with pip, conda, poetry, or docker!

You can set up the keys for the different providers with a config.py like this:

import os

def set_environment():
    os.environ["OPENAI_API_KEY"] = "... "  # <- this has to be your api key!
    # I'm omitting all other keys

You can subsequently set all these keys for LangChain importing and executing the set_environment() function in your projects or notebooks:

from config import set_environment
set_environment()
Section File Colab Kaggle Gradient
LLMs, prompts, and chat models notebook
Running local models notebook
Customer service helper notebook
Using HuggingFace Hub models notebook
Map-reduce for summarization notebook
Tracking costs notebook