gpt_examples  by malywut

Code examples for a GPT-4 and ChatGPT app development book

created 2 years ago
628 stars

Top 53.5% on sourcepulse

GitHubView on GitHub
Project Summary

This repository provides code examples and use cases for developing applications with GPT-4 and ChatGPT, targeting developers and researchers. It offers updated code for the latest OpenAI Python library and includes new examples beyond the first edition of its accompanying book.

How It Works

The examples are structured to mirror chapters and numbering from the book "Developing Apps with GPT-4 and ChatGPT." Code is provided as Jupyter notebooks or Python scripts, demonstrating various applications and integrations with large language models.

Quick Start & Requirements

  • Install all requirements: pip install -r requirements.txt
  • Run Python examples: python [example_folder]/run.py
  • Specific examples require additional setup:
    • Chap3_03_QuestionAnseringOnPDF: Requires Redis via docker-compose up -d.
    • Chap3_04_VoiceAssistant: Gradio interface address is displayed on output.
    • Chap5_04_LlamaIndexCustomization: Requires Weaviate via docker-compose up -d or docker run -p 8080:8080 -p 50051:50051 cr.weaviate.io/semitechnologies/weaviate:1.24.9.

Highlighted Details

  • Updated code for recent OpenAI Python library versions.
  • Includes additional examples not present in the first edition of the book.
  • Examples cover diverse use cases, including PDF question answering, voice assistants, and LlamaIndex customization.
  • Supports both Jupyter notebooks and standalone Python scripts for execution.

Maintenance & Community

No specific information on contributors, community channels, or roadmap is provided in the README.

Licensing & Compatibility

The README does not specify a license. Compatibility for commercial use or closed-source linking is not detailed.

Limitations & Caveats

The repository's primary purpose is to supplement a book, and its maintenance or community support status is unclear. Some examples have complex setup requirements involving Docker and specific services like Redis and Weaviate.

Health Check
Last commit

10 months ago

Responsiveness

1 week

Pull Requests (30d)
0
Issues (30d)
0
Star History
45 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.