/langchain-0.1-guides

Primary LanguageJupyter NotebookMIT LicenseMIT

langchain-0.1-guides

These notebooks show off different functionality associated with langchain 0.1.

Setup

To setup, please install requirements:

pip install -r requirements.txt

Then set required environment variables. We will use OpenAI for our language model, and Tavily for our search provider.

export OPENAI_API_KEY=...
export TAVILY_API_KEY=...

We will also use LangSmith for observability:

export LANGCHAIN_TRACING_V2="true"
export LANGCHAIN_API_KEY=...
export LANGCHAIN_ENDPOINT=https://api.langchain.plus

After that, we can start the Jupyter notebook server and follow along from there:

jupyter notebook

Notebooks

The following notebooks are provided: