EnkrateiaLucca / oreilly_live_training_agents

Repository for all the code and notebooks for the O'Reilly live-training: "Getting Started with LLM Agents using Langchain"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

O'Reilly Live Trainining - Getting Started with LLM Agents using LangChain

Setup

Conda

  • Install anaconda
  • This repo was tested on a Mac with python=3.10.
  • Create an environment: conda create -n oreilly-agents python=3.10
  • Activate your environment with: conda activate oreilly-agents
  • Install requirements with: pip install -r requirements/requirements.txt
  • Setup your openai API key

Pip

  1. Create a Virtual Environment: Navigate to your project directory. Make sure you have python3.10 installed! If using Python 3's built-in venv: python -m venv oreilly-agents If you're using virtualenv: virtualenv oreilly-agents

  2. Activate the Virtual Environment:

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

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

Remember to deactivate the virtual environment afterwards: deactivate

Setup your .env file

  • Change the .env.example file to .env and add your OpenAI API key.
OPENAI_API_KEY=<your openai api key>

To use this Environment with Jupyter Notebooks:

  • conda install jupyter -y
  • python -m ipykernel install --user --name=oreilly-agents

Notebooks

Here are the notebooks available in the notebooks/ folder:

  1. Intro Agents Open In Colab

  2. Intro Agents OpenAI Functions Open In Colab

  3. Intro LangChain Open In Colab

  4. Intro Agents with LangChain Open In Colab

  5. Building LLM Agents with LangChain Open In Colab

  6. Simple RAG Agent with LangChain Open In Colab

  7. LangChain GitHub Agent Prototype Open In Colab

  8. Building a Simple Research Agent Open In Colab

About

Repository for all the code and notebooks for the O'Reilly live-training: "Getting Started with LLM Agents using Langchain"


Languages

Language:Jupyter Notebook 96.4%Language:HTML 2.1%Language:Python 1.4%Language:Makefile 0.0%Language:Dockerfile 0.0%