Skip to content

EnkrateiaLucca/oreilly_live_training_llm_apps

Repository files navigation

O'Reilly Live Trainining - Building Text Based Applications with the ChatGPT API and Langchain

Setup

Conda

  • Install anaconda
  • This repo was tested on a Mac with python=3.11.
  • Create an environment: conda create -n oreilly-chatgpt-apps python=3.11
  • Activate your environment with: conda activate oreilly-chatgpt-apps
  • 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 python 3.11 installed! If using Python 3's built-in venv:

    python -m venv oreilly-chatgpt-apps

    If you're using virtualenv:

    virtualenv oreilly-chatgpt-apps
  2. Activate the Virtual Environment:

    • On Windows:
      .\oreilly-chatgpt-apps\Scripts\activate
    • On macOS and Linux:
      source oreilly-chatgpt-apps/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:

  • pip install jupyter
  • python3 -m ipykernel install --user --name=oreilly-chatgpt-apps

Notebooks

Here are the notebooks available in the notebooks/ folder:

  1. Intro to ChatGPT API & Prompt Basics

    Open In Colab

  2. Intro to OpenAI Function Calling

    Open In Colab

  3. Extraction Use Case

    Open In Colab

  4. Applying Prompt Engineering Strategies

    Open In Colab

  5. Fine-tuning ChatGPT API

    Open In Colab

  6. Intro to LangChain

    Open In Colab

  7. Q&A with LangChain

    Open In Colab

  8. Quiz PDF with LangChain

    Open In Colab

  9. LangChain Deploy Recipe Walkthrough

    Open In Colab

  10. LangChain Adept Demo

    Open In Colab

  11. Quiz Generator App

    Open In Colab

  12. General Intro to LLMs

    Open In Colab

  13. Prompt Engineering Techniques: Knowledge Generation

    Open In Colab

  14. Prompt Engineering Techniques

    Open In Colab

About

Notebooks for the live trainining about llm app development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published