oreilly_live_training_llm_apps

oreilly_live_training_llm_apps

Notebooks for the live trainining about llm app development

Stars: 63

Visit
 screenshot

This repository provides resources and notebooks for building text-based applications using the ChatGPT API and Langchain. It includes guides on prompt engineering, fine-tuning ChatGPT, using LangChain, and creating applications like a quiz generator and notes summarizer. The repository aims to help users understand and implement various natural language processing tasks with pre-trained language models.

README:

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.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. Applying Prompt Engineering Strategies

    Open In Colab

  3. Prompt Engineering Guide

    Open In Colab

  4. Fine-tuning ChatGPT API

    Open In Colab

  5. Intro to LangChain

    Open In Colab

  6. Q&A with LangChain

    Open In Colab

  7. Quiz Generator App

    Open In Colab

  8. Notes Summarizer App

    Open In Colab

  9. General Intro to LLMs

    Open In Colab

  10. Prompt Engineering Techniques: Knowledge Generation

    Open In Colab

  11. Prompt Engineering Techniques

    Open In Colab

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for oreilly_live_training_llm_apps

Similar Open Source Tools

For similar tasks

For similar jobs