seanreed1111 / oreilly_live_training_getting_started_with_langchain

Repo for my live-training about getting started with langchain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Notebooks for the O'Reilly live-training: "Getting Started with LangChain"

Overview

Notebooks

  1. Introduction to LangChain
  2. Composing Chain Pipelines with LangChain
  3. QA with LangChain
  4. LangChain Query CSV
  5. LangChain Dynamic Quiz
  6. Building LLM Agents with LangChain
  7. Agent + Memory with LangChain
  8. Research Workflows
  9. LangServe Deployment Example

Setup

Conda

  • Install anaconda
  • Create an environment: conda create -n oreilly-langchain
  • Activate your environment with: conda activate oreilly-langchain
  • Install requirements with: pip install -r requirements.txt
  • Setup your openai API key

Pip

  1. Create a Virtual Environment: Navigate to your project directory. If using Python 3's built-in venv:

    python -m venv oreilly_env

    If you're using virtualenv:

    virtualenv oreilly_env
  2. Activate the Virtual Environment:

    • On Windows:
      .\oreilly_env\Scripts\activate
    • On macOS and Linux:
      source oreilly_env/bin/activate
  3. Install Dependencies from requirements.txt:

    pip install python-dotenv
    pip install -r requirements.txt
  4. Setup your openai API key

Remember to deactivate the virtual environment once you're done by simply typing:

deactivate

Setup your .env file

  • Change the .env.example file to .env and add your OpenAI API key.

To use this Environment with Jupyter Notebooks:

python3 -m ipykernel install --user --name=oreilly-langchain

Official Training Website

For more information about the live-training, visit the official website.

About

Repo for my live-training about getting started with langchain


Languages

Language:Jupyter Notebook 93.3%Language:HTML 4.5%Language:Python 1.9%Language:AppleScript 0.3%