Skip to content

malywut/gpt_examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains different examples and usecases showcased in the book Developing Apps with GPT-4 and ChatGPT - 2nd Edition. Book cover

Check the branches and releases for different versions of the OpenAI API.

Usage

All examples

Install the requirements for all the examples with:

pip install -r requirements.txt

Each example contains either a jupyter notebook, or a python file that can be run with:

python [example_folder]/run.py

Some examples require some additional setup.

Chap3_03_QuestionAnseringOnPDF

Start Redis with

docker-compose up -d

Chap3_04_VoiceAssistant

The gradio interface is available at the address displayed in the output.

Chap5_04_LlamaIndexCustomization

Customize if needed the docker-compose.yml file and start weaviate with

docker-compose up -d

Alternatively, run:

docker run -p 8080:8080 -p 50051:50051 cr.weaviate.io/semitechnologies/weaviate:1.24.9