gpt_examples  by malywut

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

Created 2 years ago
643 stars

Top 51.7% 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

1 year ago

Responsiveness

Inactive

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

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Mckay Wrigley Mckay Wrigley(Founder of Takeoff AI), and
1 more.

chatGPTBox by ChatGPTBox-dev

0.1%
11k
Browser extension for ChatGPT integration
Created 2 years ago
Updated 6 days ago
Feedback? Help us improve.