/oreilly_live_training_getting_started_with_langchain

Repo for my live-training about getting started with langchain

Primary LanguageJupyter Notebook

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

Overview

Notebooks

  1. Getting Started with LangChain

  2. Composing and Utilizing Chains

  3. Advanced Query and Dynamic Content

  4. Building Intelligent Agents

  5. Demonstrations and Practical Applications

  6. Deployment and Integration

Setup

Conda

  • Install anaconda
  • Create an environment: conda create -n oreilly-langchain python=3.11
  • 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.