Book Image

Modern Generative AI with ChatGPT and OpenAI Models

By : Valentina Alto
4.9 (8)
Book Image

Modern Generative AI with ChatGPT and OpenAI Models

4.9 (8)
By: Valentina Alto

Overview of this book

Generative AI models and AI language models are becoming increasingly popular due to their unparalleled capabilities. This book will provide you with insights into the inner workings of the LLMs and guide you through creating your own language models. You’ll start with an introduction to the field of generative AI, helping you understand how these models are trained to generate new data. Next, you’ll explore use cases where ChatGPT can boost productivity and enhance creativity. You’ll learn how to get the best from your ChatGPT interactions by improving your prompt design and leveraging zero, one, and few-shots learning capabilities. The use cases are divided into clusters of marketers, researchers, and developers, which will help you apply what you learn in this book to your own challenges faster. You’ll also discover enterprise-level scenarios that leverage OpenAI models’ APIs available on Azure infrastructure; both generative models like GPT-3 and embedding models like Ada. For each scenario, you’ll find an end-to-end implementation with Python, using Streamlit as the frontend and the LangChain SDK to facilitate models' integration into your applications. By the end of this book, you’ll be well equipped to use the generative AI field and start using ChatGPT and OpenAI models’ APIs in your own projects.
Table of Contents (17 chapters)
1
Part 1: Fundamentals of Generative AI and GPT Models
4
Part 2: ChatGPT in Action
11
Part 3: OpenAI for Enterprises

Setting up a ChatGPT account

To start using ChatGPT, you first need to create an OpenAI account. Follow the instructions here:

  1. Navigate to the OpenAI website here: https://openai.com.
  2. Scroll down and click on ChatGPT under the FEATURED menu as shown here:
Figure 3.1 – OpenAI landing page

Figure 3.1 – OpenAI landing page

  1. Then you need to click on TRY CHATGPT:
Figure 3.2 – ChatGPT landing page

Figure 3.2 – ChatGPT landing page

  1. On the next page, you need to fill out the form to sign up for an OpenAI account. This is the same account you can use to access the OpenAI Playground and generate your API keys.
Figure 3.3 – ChatGPT landing page with Log in and Sign up options

Figure 3.3 – ChatGPT landing page with Log in and Sign up options

  1. Now you can start using the ChatGPT web app. Once you have found the ChatGPT web app, click on it to launch it. You will be able to interact with ChatGPT and perform various natural language processing tasks directly in your web browser.
  2. ...