Programming GPTs π¦


Book available on Amazon π
https://www.amazon.com/dp/B0DP76LL4D
π Read the book online
The full content of the book is available here, one page per chapter:
- Preface
- Who is this book for
- About the author
- What you will learn
- Setting up the Programming Environment
- 1. Introducing GPTs
- 1.1. Large Language Models Are Next-Word Predictors
- 1.2. Generative Pretrained Transformers: Building Blocks of Language Intelligence
- 1.3. Evolution of GPTs
- 1.4. Building Your Own GPT
- 2. OpenAI APIs
- 2.1. Quick tour of the OpenAI developer platform
- 2.2. Getting started with the chat completion API
- 2.3. Prices of the API
- 2.4. Build your first chatbot app
- 2.5. Advanced parameters
- 3. Prompting, Chaining and Summarization
- 3.1. The art of prompting
- 3.2. Prompt engineering techniques in app development
- 3.3. Why chaining
- 3.4. Summarizing long documents
- 4. Vector search & Question Answering
- 4.1. Map Rerank
- 4.2. Retrieval-Augmented Generation
- 4.3. Application: Question answering on Book
- 5. Agents & Tools
- 5.1. Agents select tools
- 5.2. OpenAI Functions
- 5.3. OpenAI Assistants
- 6. Speech-to-Text and Text-to-Speech
- 6.1. Transcription
- 6.2. Voice synthesis
- 6.3. Application: Daily tech podcast
- 7. Vision
- 7.1. From traditional computer vision to multi-modal language models
- 7.2. Object detection
- 7.3. From mock to web UI
- 7.4. Video understanding
- 8. DALL-E image generation
- 8.1. Generation
- 8.2. Edits
- 8.3. Variations
- 8.4. Application: GPT Journey β choose your own adventure
- 9. Deploying GPTs
- 9.1. Deploy on the OpenAI GPT Store
- 9.2. Deploy GPT Apps on Streamlit Cloud
- 10. Appendix
- 10.1. More AI theory
- 10.2. More LLMs: open-source and local alternatives
- 10.3. More Applications
- 10.4. More copilots
In this repo, you will learn how to program GPTs primarily leveraging OpenAIβs APIs. If you donβt know what an API is (Application Programming Interface), then this is not the repo youβre looking for. Go look it up on the internet, and come back after learning some basics of programming, preferably in Python, as this will be the language used for the tutorials in each chapter.
Generative Pre-Trained Transformers are quite complicated general-purpose machines that can do a lot of different things, like handling sequences of text, images, and sounds. You will learn the basic concepts and principles behind GPTs, and how they work under the hood. But more importantly, you will learn how to integrate them inside of your applications.
The repo is divided into 10 chapters, each covering a different topic and a different aspect of programming GPTs. The chapters are:
-
Chapter 1: π€ Introducing GPTs. How they work and their evolution.
-
Chapter 2: π±π¬ OpenAI APIs. In this chapter, you will learn how to use the OpenAI APIs, a simple way to create AI agents with GPT Models. You will start by learning how to create your own chatbot.
- Chapter 3: π Prompting, Chaining & Summarization. In this chapter, you will learn how to engineer prompts, chain calls to a Large Language Model and use it to summarize texts, such as articles, books, or transcripts. You will use the OpenAI API together with the LangChain package to enhance GPTs.
- Chapter 4: πβ Vector search & Question Answering. In this chapter, you will learn how to use embeddings and vector search as a way to retrieve informative answers to answer questions while quoting sources.
- Chapter 5: π΅οΈββοΈπ οΈ Agent & Tools. In this chapter, you will learn to build an Agent, called Smith, that has access to tools, such as getting the current weather. You will also learn how to use the Assistant API provided by OpenAI, and to extend their capabilities with tools to integrate GPTs with external services. This will be illustrated with the implementation of your own Code Interpreter, that can help you write and run code with GPTs.
- Chapter 6: π£οΈπ’ Text to Speech & Synthesis. In this chapter, you will learn how to use GPTs to transcript text from speech (such as Youtube videos), and synthetize speech from text (such as articles).
- Chapter 7: π Vision API. In this chapter, you will learn how to use GPTs to process and analyze images, such as mock-ups or drawings. You will learn how to use the Vision API, to perform various tasks with GPTs, such as text recognition, or video captioning.
- Chapter 8: π¨ποΈ Dall-E image generation. In this chapter, you will learn how to use Dall-E 2 & 3, which can create stunning and creative images from any text input. You will also learn how to use the outpainting, inpainting and variations APIs, which can complete or modify existing images.
- Chapter 9: π Deploying GPTs. In this chapter, you will reuse what you have learned, and you will deploy your own GPTs. This will be made concrete with a small team of GPTs covering each one chapter of the book.
- Chapter 10: π Appendix. In this chapter, you will find additional resources to keep up with the latest developments and innovations in the field of GPTs.