← 开源
malywut

gpt_examples

TutorialsTool-specific tutorialsPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
684
Star
287
Fork
+-1
本周
2
贡献者
创建于 2023-04-17 · 更新于 2026-10-15 · 今日第 14920 名
主要开发者
malywutocaelen
README

This repository contains different examples and use cases showcased in the book Developing Apps with GPT-4 and ChatGPT.

If you are coming from the first edition, you will find that the code has been updated to use a more recent OpenAI Python library version. You will also find additional code examples that are not in this book's first edition. To switch back to the original code, go to this tag. The chapters and numbering of the examples are identical across book editions.

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
排名相邻
同类项目