https://github.com/hwchase17/langchain-0.1-guides
https://github.com/hwchase17/langchain-0.1-guides
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hwchase17/langchain-0.1-guides
- Owner: hwchase17
- License: mit
- Created: 2024-01-07T20:00:34.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-25T20:45:25.000Z (about 1 year ago)
- Last Synced: 2024-12-13T23:48:06.495Z (4 months ago)
- Language: Jupyter Notebook
- Size: 54.7 KB
- Stars: 93
- Watchers: 4
- Forks: 19
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - hwchase17/langchain-0.1-guides - (Jupyter Notebook)
README
# langchain-0.1-guides
These notebooks show off different functionality associated with `langchain` 0.1.
## Setup
To setup, please install requirements:
```shell
pip install -r requirements.txt
```Then set required environment variables.
We will use [OpenAI](https://platform.openai.com/docs/introduction) for our language model, and [Tavily](https://app.tavily.com/sign-in) for our search provider.```shell
export OPENAI_API_KEY=...
export TAVILY_API_KEY=...
```We will also use [LangSmith](https://docs.smith.langchain.com/) for observability:
```shell
export LANGCHAIN_TRACING_V2="true"
export LANGCHAIN_API_KEY=...
```After that, we can start the Jupyter notebook server and follow along from there:
```shell
jupyter notebook
```## Notebooks
The following notebooks are provided:
- [Observability](observability.ipynb)
- [Composition](composability.ipynb)
- [Streaming](streaming.ipynb)
- [Output Parsing](output_parsers.ipynb)
- [Retrieval](retrieval.ipynb)
- [Agents](agents.ipynb)