Skip to content

Instantly share code, notes, and snippets.

@jaceklaskowski
Last active February 18, 2024 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaceklaskowski/f40f67db0a97eac5ff4ad15cc3488bb1 to your computer and use it in GitHub Desktop.
Save jaceklaskowski/f40f67db0a97eac5ff4ad15cc3488bb1 to your computer and use it in GitHub Desktop.
langchain

LangChain in Action

Install poetry

Install poetry to manage dependencies (langchain, jupyter)

Requires pipx

Create Project

$ poetry new langchain
Created package langchain in langchain

Add Jupyter

poetry add --group dev jupyter

Add LangChain

$ poetry add langchain

Run Jupyter

They say:

This guide (and most of the other guides in the documentation) use Jupyter notebooks and assume the reader is as well. Jupyter notebooks are perfect for learning how to work with LLM systems because often times things can go wrong (unexpected output, API down, etc) and going through guides in an interactive environment is a great way to better understand them.

poetry run jupyter notebook

VSCode

...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment