Download as pdf or txt
Download as pdf or txt
You are on page 1of 67

ChatGPT for Beginners: Features,

Foundations, and Applications 1st


Edition Eric Sarrion
Visit to download the full and correct content document:
https://ebookmass.com/product/chatgpt-for-beginners-features-foundations-and-appli
cations-1st-edition-eric-sarrion/
ChatGPT for
Beginners
Features, Foundations,
and Applications

Eric Sarrion
ChatGPT for Beginners
Features, Foundations,
and Applications

Eric Sarrion
ChatGPT for Beginners: Features, Foundations, and Applications
Eric Sarrion
Paris, France
ISBN-13 (pbk): 978-1-4842-9803-9 ISBN-13 (electronic): 978-1-4842-9804-6
https://doi.org/10.1007/978-1-4842-9804-6

Copyright © 2023 by Eric Sarrion


This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or
part of the material is concerned, specifically the rights of translation, reprinting, reuse of
illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way,
and transmission or information storage and retrieval, electronic adaptation, computer software,
or by similar or dissimilar methodology now known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark
symbol with every occurrence of a trademarked name, logo, or image we use the names, logos,
and images only in an editorial fashion and to the benefit of the trademark owner, with no
intention of infringement of the trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if
they are not identified as such, is not to be taken as an expression of opinion as to whether or not
they are subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of
publication, neither the authors nor the editors nor the publisher can accept any legal
responsibility for any errors or omissions that may be made. The publisher makes no warranty,
express or implied, with respect to the material contained herein.
Managing Director, Apress Media LLC: Welmoed Spahr
Acquisitions Editor: Celestin Suresh John
Development Editor: Laura Berendson
Coordinating Editor: Gryffin Winkler
Cover designed by eStudioCalamar
Cover image by Sofind on Freepik (www.freepik.com)
Distributed to the book trade worldwide by Apress Media, LLC, 1 New York Plaza, New York, NY
10004, U.S.A. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@springer-sbm.com,
or visit www.springeronline.com. Apress Media, LLC is a California LLC and the sole member
(owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance
Inc is a Delaware corporation.
For information on translations, please e-mail booktranslations@springernature.com; for
reprint, paperback, or audio rights, please e-mail bookpermissions@springernature.com.
Apress titles may be purchased in bulk for academic, corporate, or promotional use. eBook
versions and licenses are also available for most titles. For more information, reference our Print
and eBook Bulk Sales web page at http://www.apress.com/bulk-sales.
Any source code or other supplementary material referenced by the author in this book is
available to readers on GitHub (https://github.com/Apress). For more detailed information,
please visit https://www.apress.com/gp/services/source-code.
Paper in this product is recyclable
Table of Contents
About the Author���������������������������������������������������������������������������������xi

About the Technical Reviewer�����������������������������������������������������������xiii

Introduction����������������������������������������������������������������������������������������xv

Part I: Getting Started with ChatGPT�������������������������������������������1


Chapter 1: Logging in with ChatGPT�����������������������������������������������������3
Accessing the OpenAI Website That Hosts ChatGPT���������������������������������������������3
Creating an Account on ChatGPT with Your Email Address�����������������������������������7
Description of the Main ChatGPT Window�����������������������������������������������������������13
Using GPT-3.5 or GPT-4?�������������������������������������������������������������������������������������15
Conclusion����������������������������������������������������������������������������������������������������������15

Chapter 2: Dialoguing with ChatGPT���������������������������������������������������17


Starting a Conversation with ChatGPT����������������������������������������������������������������17
Modifying the Label for a Conversation��������������������������������������������������������������19
Deleting a Conversation��������������������������������������������������������������������������������������20
Deleting All Conversations����������������������������������������������������������������������������������21
Modifying the Last Response Displayed by ChatGPT������������������������������������������23
Continuing the Dialogue Within the Same Conversation�������������������������������������25
Obtaining a Summary of an Entire Conversation������������������������������������������������25

iii
Table of Contents

What to Do If ChatGPT’s Response Is Cut Off������������������������������������������������������26


Using the OpenAI ChatGPT Application���������������������������������������������������������������28
Conclusion����������������������������������������������������������������������������������������������������������33

Chapter 3: Discovering ChatGPT���������������������������������������������������������35


Why the Name ChatGPT?������������������������������������������������������������������������������������35
Definition of ChatGPT������������������������������������������������������������������������������������������38
Knowledge Domains of ChatGPT�������������������������������������������������������������������������40
Does ChatGPT Have an Answer to Everything?���������������������������������������������������47
Conclusion����������������������������������������������������������������������������������������������������������48

Part II: Understanding ChatGPT�������������������������������������������������49


Chapter 4: The Foundations of ChatGPT���������������������������������������������51
The Basics of Natural Language Processing�������������������������������������������������������51
Machine Learning and NLP���������������������������������������������������������������������������������53
Neural Networks and ChatGPT����������������������������������������������������������������������������56
Conclusion����������������������������������������������������������������������������������������������������������58

Chapter 5: Tips for Using ChatGPT Effectively������������������������������������59


Asking Good Questions to ChatGPT���������������������������������������������������������������������59
Examples of Poorly Formulated Questions Asked to ChatGPT����������������������������62
Examples of Well-Formulated Questions Asked to ChatGPT�������������������������������64
Learning to Formulate Questions to ChatGPT�����������������������������������������������������66
Presenting ChatGPT as an Expert in a Field��������������������������������������������������������68
Ask ChatGPT to Express Itself Simply�����������������������������������������������������������������73
Adding Custom Instructions to ChatGPT�������������������������������������������������������������78
Other Recommendations������������������������������������������������������������������������������������82
Conclusion����������������������������������������������������������������������������������������������������������85

iv
Table of Contents

Chapter 6: Parameters Used in ChatGPT���������������������������������������������87


Why ChatGPT’s Responses Are Different for the Same Question������������������������87
Managing the Randomness of ChatGPT’s Responses with
the temperature Parameter��������������������������������������������������������������������������������90
Managing the Randomness of ChatGPT’s Responses with the
frequency_penalty and presence_penalty Parameters��������������������������������������94
Using the ChatGPT Playground Tool��������������������������������������������������������������������98
Using the OpenAI API�����������������������������������������������������������������������������������������105
Conclusion��������������������������������������������������������������������������������������������������������105

Part III: Using ChatGPT�������������������������������������������������������������107


Chapter 7: Writing Letters����������������������������������������������������������������109
Writing a Cover Letter���������������������������������������������������������������������������������������109
Writing a Resignation Letter�����������������������������������������������������������������������������111
Writing a Loan Application��������������������������������������������������������������������������������114
Writing a Lease Termination Letter�������������������������������������������������������������������116
Writing a Love Letter�����������������������������������������������������������������������������������������119
Writing a Reconciliation Letter��������������������������������������������������������������������������121
Conclusion��������������������������������������������������������������������������������������������������������123

Chapter 8: Creating Emails���������������������������������������������������������������125


Scheduling a Team Meeting������������������������������������������������������������������������������125
Responding to a Dissatisfied Customer������������������������������������������������������������129
Replying to a Received Email����������������������������������������������������������������������������131
Automating the Process of Responding to Received Emails�����������������������������136

v
Table of Contents

Organizing a Team Challenge����������������������������������������������������������������������������139


Farewell Party Invitation�����������������������������������������������������������������������������������143
Conclusion��������������������������������������������������������������������������������������������������������144

Chapter 9: Commercial Writing��������������������������������������������������������145


Crafting an Advertising Message����������������������������������������������������������������������145
Crafting an Advertising Message as an Expert in Professional Marketing��������148
Adding More Details When Describing the Product������������������������������������������150
Product Copywriting for SEO�����������������������������������������������������������������������������152
Presenting a Product Concisely������������������������������������������������������������������������155
Writing a Classified Ad��������������������������������������������������������������������������������������157
Conclusion��������������������������������������������������������������������������������������������������������159

Chapter 10: Text Translation�������������������������������������������������������������161


Benefits of ChatGPT for Translations�����������������������������������������������������������������161
Available Languages with ChatGPT�������������������������������������������������������������������163
Translation in Various Languages���������������������������������������������������������������������166
Automated Translation��������������������������������������������������������������������������������������171
Checking the Translations Performed���������������������������������������������������������������178
Conclusion��������������������������������������������������������������������������������������������������������182

Chapter 11: Learning a Language�����������������������������������������������������183


Creating Specialized Vocabulary Lists��������������������������������������������������������������184
Creating General Vocabulary Lists��������������������������������������������������������������������190
Grammar Accuracy Improvement���������������������������������������������������������������������201
Learning a language interactively���������������������������������������������������������������������204
Conclusion��������������������������������������������������������������������������������������������������������210

vi
Table of Contents

Chapter 12: Recruiting for a Company���������������������������������������������211


Writing Job Postings�����������������������������������������������������������������������������������������211
Creating Recruitment Tests�������������������������������������������������������������������������������215
Creating Interview Templates���������������������������������������������������������������������������221
Conclusion��������������������������������������������������������������������������������������������������������226

Chapter 13: Applying to a Company�������������������������������������������������229


Crafting a Customized Résumé�������������������������������������������������������������������������229
Responding to an Online Job Posting���������������������������������������������������������������233
Researching Targeted Companies���������������������������������������������������������������������235
Preparing for a Job Interview���������������������������������������������������������������������������239
Conducting a Job Interview Simulation������������������������������������������������������������243
Knowing How to Answer Frequently Asked Questions��������������������������������������247
Transforming Weaknesses into Strengths��������������������������������������������������������256
Conclusion��������������������������������������������������������������������������������������������������������258

Chapter 14: Writing a Speech�����������������������������������������������������������259


Celebration Speech�������������������������������������������������������������������������������������������259
Gratitude Speech����������������������������������������������������������������������������������������������261
Commemorative Speech�����������������������������������������������������������������������������������264
Wedding Speech�����������������������������������������������������������������������������������������������266
Motivational Speech������������������������������������������������������������������������������������������268
Sales Speech����������������������������������������������������������������������������������������������������271
Political Speech������������������������������������������������������������������������������������������������273
Conclusion��������������������������������������������������������������������������������������������������������275

vii
Table of Contents

Chapter 15: Finding Inspiration��������������������������������������������������������277


Invent a Unique Name for a Product�����������������������������������������������������������������278
Generating Innovative New Products����������������������������������������������������������������280
Composing Original Songs��������������������������������������������������������������������������������285
Crafting Creative Poetry������������������������������������������������������������������������������������290
Writing a Blog Article����������������������������������������������������������������������������������������295
Creating Engaging Narratives���������������������������������������������������������������������������302
Conclusion��������������������������������������������������������������������������������������������������������315

Chapter 16: Improving Human Relationships�����������������������������������317


Managing a Difficult Child���������������������������������������������������������������������������������318
Managing Family Conflict���������������������������������������������������������������������������������321
Managing a Difficult Client��������������������������������������������������������������������������������328
Managing an Authoritarian Boss�����������������������������������������������������������������������333
Requesting a Salary Raise��������������������������������������������������������������������������������340
Conclusion��������������������������������������������������������������������������������������������������������343

Chapter 17: Establishing an Action Plan������������������������������������������345


Planning a Trip��������������������������������������������������������������������������������������������������345
Organizing an Event������������������������������������������������������������������������������������������352
Launching a Product or Service������������������������������������������������������������������������368
Building an Argument to Address Objections����������������������������������������������������372
Developing a Fitness Plan���������������������������������������������������������������������������������382
Getting Multiple Solutions and Selecting the Best One�������������������������������������390
Action Plan Toward Happiness��������������������������������������������������������������������������402
Conclusion��������������������������������������������������������������������������������������������������������410

viii
Table of Contents

Chapter 18: Obtaining Answers on Various Topics���������������������������411


Philosophical Questions������������������������������������������������������������������������������������411
Religious Questions������������������������������������������������������������������������������������������417
Historical Questions������������������������������������������������������������������������������������������424
Geographical Questions������������������������������������������������������������������������������������429
Technological Questions�����������������������������������������������������������������������������������435
Medical Questions���������������������������������������������������������������������������������������������443
Conclusion��������������������������������������������������������������������������������������������������������449

Chapter 19: Playing with ChatGPT����������������������������������������������������451


What to Play with ChatGPT?������������������������������������������������������������������������������451
Playing the Question and Answer Game�����������������������������������������������������������453
Finding a Word by Its Definition������������������������������������������������������������������������459
Collaborative Storytelling����������������������������������������������������������������������������������462
Playing Sudoku�������������������������������������������������������������������������������������������������467
Conclusion��������������������������������������������������������������������������������������������������������473

Part IV: The Future of ChatGPT�������������������������������������������������475


Chapter 20: The Strengths and Limitations of ChatGPT��������������������477
The Strengths of ChatGPT���������������������������������������������������������������������������������478
The Limitations of ChatGPT�������������������������������������������������������������������������������482
Conclusion��������������������������������������������������������������������������������������������������������484

ix
Table of Contents

Chapter 21: The Future of ChatGPT���������������������������������������������������485


Ongoing Advancements������������������������������������������������������������������������������������485
Paid Uses of ChatGPT����������������������������������������������������������������������������������������490
The Challenges Ahead���������������������������������������������������������������������������������������490
Contributing to Improving ChatGPT�������������������������������������������������������������������495
Conclusion��������������������������������������������������������������������������������������������������������497

Conclusion of the book���������������������������������������������������������������������499

Index�������������������������������������������������������������������������������������������������501

x
About the Author
Eric Sarrion is a trainer, a developer, and an independent consultant. He
has been involved in all kinds of IT projects for more than 30 years. He is
also a longtime author of web development technologies and is renowned
for the clarity of his explanations and examples. He resides in Paris, France.

xi
About the Technical Reviewer
Jagatheesh Ramakrishnan is a seasoned
Group Manager at Atlassian, bringing
21 years of tech industry experience to the
table. In his leadership role, he’s focused on
operational excellence and strategic initiatives,
particularly in the realms of big data, cloud
computing, and artificial intelligence. A
sought-after thought leader in these
cutting-edge domains, Jagatheesh has been
a driving force in technological innovation.
Outside the office, he is an avid reader with a
penchant for nonfiction, offering a well-rounded, informed perspective to
the ever-evolving world of technology.

xiii
Introduction
ChatGPT for Beginners is an informative and practical book that enables
readers to acquire the knowledge and skills necessary to effectively use
ChatGPT. With a comprehensive exploration of ChatGPT’s features,
foundations, and applications, this guide is a valuable resource for
beginners venturing into the world of conversational AI (where one
interacts with a computer program such as ChatGPT).
Part 1: Getting Started with ChatGPT provides a step-by-step
introduction to using ChatGPT. From accessing the OpenAI website (the
website that hosts ChatGPT is OpenAI’s official website) and creating an
account to initiating conversations, modifying responses, and obtaining
conversation summaries, readers will gain a solid understanding of the
features offered by ChatGPT.
Part 2: Understanding ChatGPT explores the foundations of this
language model. It covers topics such as ChatGPT’s knowledge domains
and settings, the basics of natural language processing, machine learning
techniques applied to language processing, and the role of neural networks
in the functioning of ChatGPT. This part concludes with a presentation of
tips for effectively using ChatGPT.
Part 3: Using ChatGPT allows readers to discover a wide range of
practical applications. From writing letters to creating commercial content,
translating texts, language learning, recruitment processes, artistic content
creation, as well as fostering innovation and creativity, this part provides
advice and examples for effectively using ChatGPT in various scenarios.
Part 4: The Future of ChatGPT examines the strengths and limitations
of ChatGPT, as well as future advancements and upcoming challenges, and
provides insights into the evolving landscape of conversational AI.

xv
Introduction

With user-friendly instructions and tips for effective usage, this


book ensures that readers will be able to fully leverage the potential of
ChatGPT. Whether you are a student, a professional, or simply curious
about the capabilities of this artificial intelligence technology, this book
will be your essential companion for confidently exploring the possibilities
of ChatGPT.

xvi
PART I

Getting Started with


ChatGPT
CHAPTER 1

Logging in with
ChatGPT
We explain in this chapter how to log in with ChatGPT and start using it.
To do this, be in front of your computer or mobile phone and follow the
instructions. Let’s get started!

 ccessing the OpenAI Website That


A
Hosts ChatGPT
The first step is to open your browser and enter the URL https://openai.
com/blog/chatgpt. Alternatively, simply type the keyword chatgpt into
a search engine to display the OpenAI company’s website among the top
results. Select the OpenAI company’s website as it is the official site for
ChatGPT.
ChatGPT was created by the American company OpenAI. It was made
available to the public on November 30, 2022. Within three months, there
were already more than 100 million users worldwide, and this number
continues to grow!
The letters “AI” (from OpenAI) stand for artificial intelligence.
Figure 1-1 shows the screen displayed when we enter the keyword
chatgpt in a search engine, in this case, Google.

© Eric Sarrion 2023 3


E. Sarrion, ChatGPT for Beginners, https://doi.org/10.1007/978-1-4842-9804-6_1
Chapter 1 Logging in with ChatGPT

Figure 1-1. Accessing the official website of ChatGPT from the Google
search engine

Let’s click the displayed link (here the first one in the results,
corresponding to the OpenAI company’s website), and we will arrive at the
official website of ChatGPT (see Figure 1-2).

4
Chapter 1 Logging in with ChatGPT

Figure 1-2. Login window to access ChatGPT

In this window, ChatGPT asks us to log in. The first time you
connect, you need to click the “Sign up” button to register for
ChatGPT. Subsequently, you can click the “Log in” button to directly
access ChatGPT.
Registration with ChatGPT is necessary as it allows you to keep
track of all your interactions with ChatGPT, and you can retrieve all your
conversations with it.

5
Chapter 1 Logging in with ChatGPT

When you click the “Sign up” button, the window shown in Figure 1-3
appears.

Figure 1-3. Signing up for ChatGPT using an email address

This window offers the option to enter your email address or use a
Gmail (Google) or Outlook/Hotmail (Microsoft) email address. If you have
an email address on Gmail or Outlook/Hotmail, click the corresponding
button (Continue with Google or Continue with Microsoft Account) to
make the registration process easier.
Otherwise, enter your email address in the input field.

6
Chapter 1 Logging in with ChatGPT

 reating an Account on ChatGPT with Your


C
Email Address
Let’s assume that you don’t want to log in using a Gmail or Outlook/
Hotmail email address. For example, you want to use your professional
email address, such as eric@ericsarrion.com.
As mentioned earlier, if you have a Gmail or Outlook/Hotmail email
address, click the corresponding button on the displayed page. The
registration process on ChatGPT will be much simpler and faster than the
one described here.
Enter your email address in the displayed input field, and then click
the Continue button, as shown in Figure 1-4.

7
Chapter 1 Logging in with ChatGPT

Figure 1-4. Creating an account on ChatGPT using an email address

You will then see the screen shown in Figure 1-5, which allows you to
choose a password for logging into ChatGPT.

8
Chapter 1 Logging in with ChatGPT

Figure 1-5. Choosing the login password for ChatGPT

After entering your password, click the Continue button again.


A verification email will be sent to the provided email address. You
need to go to your email inbox and click the confirmation button in the
received email.
A new window appears, requesting additional information: your first
name, last name, and date of birth (see Figure 1-6).
The date of birth is used to ensure that you are of legal age and have the
right to use ChatGPT, as described in the terms and conditions of ChatGPT.

9
Chapter 1 Logging in with ChatGPT

The letters DD, MM, and YYYY in the date represent the day (DD),
month (MM), and year (YYYY) of birth. The order of entering these three
pieces of information (DD, MM, and YYYY) may vary depending on the
country you are in, and you must follow the order indicated during entry.
Additionally, the day and month should be entered with two digits (using
a leading zero if the day or month is less than or equal to 9), while the year
should be entered with four digits.

Figure 1-6. Entering your first name, last name, and date of birth

Let’s enter the requested information and click the Continue button.

10
Chapter 1 Logging in with ChatGPT

A new window asks us to verify our phone number (see Figure 1-7). An
SMS will be sent to this number to further confirm our identity.
You may wonder why there are so many precautions taken during
the registration process on ChatGPT. It’s because, unlike using a search
engine like Google (which doesn’t require any personal information to
use), ChatGPT keeps a record of the conversations each user has with it. To
ensure that this conversation history can be maintained and kept private,
the information requested helps to verify that each user is associated with
their respective user account.

Figure 1-7. Entering a phone number to receive the


confirmation SMS
11
Chapter 1 Logging in with ChatGPT

Let’s enter the phone number on which we want to receive the


confirmation SMS and then click the “Send code” button.
A message will be received via SMS, containing a six-digit code that
needs to be entered in the displayed window (see Figure 1-8).

Figure 1-8. Entering the code received via SMS

Once the code is entered, the main ChatGPT window will appear. The
registration process on ChatGPT is complete, and ChatGPT can finally
be used.
Let’s get started!

12
Chapter 1 Logging in with ChatGPT

Description of the Main ChatGPT Window


Once registration on ChatGPT is completed, the main (and only) ChatGPT
window will appear (see Figure 1-9). It will be displayed each time you
log in to the ChatGPT website by clicking the Try ChatGPT button on the
initial page.

Figure 1-9. Main window of ChatGPT

13
Chapter 1 Logging in with ChatGPT

The window is divided into three parts:

• The left part, with a black background, represents the


area where the list of conversations with ChatGPT
is stored. The button at the top of this left part is the
“New chat” button, which allows you to create a new
conversation.

• The central part, with a white background, is where the


exchanges with ChatGPT for a specific conversation
will be displayed. Each time a new conversation is
initiated (by clicking the “New chat” button), this part
is cleared to display the new conversation that started.
It is also possible to display an old conversation by
clicking a conversation stored in the list on the left side.

• The bottom part of the window is where the user enters


their query to ChatGPT. Once the query is written,
ChatGPT displays it in the central part and provides
a response to the query by displaying the response
text gradually. As soon as a conversation is initiated,
ChatGPT provides text that identifies the conversation
in the list of conversations (left part of the window).
This text identifying the conversation can be modified
by the user, and the conversation can also be deleted.

In our future dialogues with ChatGPT, we will be using these three


parts of the ChatGPT window.
At the top of the central part, two buttons are displayed, allowing you
to choose between GPT-3.5 (default) or GPT-4. Let’s now explain what
this means.

14
Chapter 1 Logging in with ChatGPT

Using GPT-3.5 or GPT-4?


The two buttons, GPT-3.5 and GPT-4, displayed at the top of the window,
allow you to choose the data model that ChatGPT will use to retrieve the
information it displays in response to our questions.
By default, the GPT-3.5 button is selected. It corresponds to the free
version of ChatGPT. The GPT-4 model is the paid version of ChatGPT,
currently priced at $20 per month.
One might assume that using the paid version of ChatGPT would
provide more information. Having used it, I did not notice that it provided
additional information after paying for it. Rather, we will get relevant
information by asking ChatGPT the right questions. Knowing how to ask
the right questions to ChatGPT will be explained in Chapter 5 and will be
extensively utilized throughout the book.
However, the paid version of ChatGPT is evolving day by day. As of
today (November 2023), it allows you to create virtual images, analyze
text files, and use external programs called plugins. For businesses using
ChatGPT, these additions can be quite interesting, considering the low cost
to use them.
The entire remainder of this book was written using only the free
version of ChatGPT, which utilizes the GPT-3.5 version of the data model.

Conclusion
In this chapter, you learned how to connect with ChatGPT and display the
main window between the user and ChatGPT.
Now, let’s start a conversation with ChatGPT right away!

15
CHAPTER 2

Dialoguing
with ChatGPT
In this chapter, we will start using ChatGPT and understand how it can be
useful in providing answers to our questions and also in memorizing our
conversations with it.

Starting a Conversation with ChatGPT


To initiate a new conversation with ChatGPT, click the “New chat” button
in the left part of the window (top-left corner) and then enter text in the
input field at the bottom of the window (see Figure 2-1).

Figure 2-1. “New chat” button to initiate a conversation


with ChatGPT

If no conversation has been selected from the list in the left part of the
window, clicking the “New chat” button is not necessary. You can start a
new conversation by directly typing text in the input field at the bottom of
the window.

© Eric Sarrion 2023 17


E. Sarrion, ChatGPT for Beginners, https://doi.org/10.1007/978-1-4842-9804-6_2
Chapter 2 Dialoguing with ChatGPT

As an example, let’s type the following text in the input field: How to
make pizzas? We validate the entered text by pressing the Enter key on
the keyboard or by clicking the button located to the right of the input field
(see Figure 2-2).

Figure 2-2. Entering the text “How to make pizzas?”

Once the text entered by the user has been validated, it appears in the
central part of the window, and ChatGPT starts displaying its response to
the question asked (see Figure 2-3).

Figure 2-3. Conversation “How to make pizzas?” with ChatGPT

18
Chapter 2 Dialoguing with ChatGPT

As this is a new conversation initiated with ChatGPT, the label for this
conversation appears in the left part of the window, which displays the list
of conversations. The text of the label is created by ChatGPT (here, “Pizza-
making instructions,” but it may be different in your case).
It is possible to modify the text of the label using the first button
following the label (represented as a pen writing on a sheet of paper). Let’s
proceed.

Modifying the Label for a Conversation


The label for the new conversation is displayed in the left part of the
ChatGPT window in the format shown in Figure 2-4.

Figure 2-4. Conversation label

Two buttons are positioned after the label text.

• The first button is a pen and allows you to modify the


label text.
• The second button is a trash can icon, allowing you to
delete the entire conversation.

In this case, we are interested in the first button, which allows us to


modify the conversation label text.
Clicking the pen icon opens a text input field where we can edit the
conversation label. After making the desired changes, we can click the
adjacent button to confirm the new label, or we can press the Enter key on
our keyboard to confirm it (see Figure 2-5).

19
Chapter 2 Dialoguing with ChatGPT

Figure 2-5. Text of the conversation label being modified

Let’s replace the previous text with the shorter text “Pizza instructions”
(see Figure 2-6). Then, confirm the modification by pressing the Enter key
or clicking the first button.

Figure 2-6. Modified conversation label

The conversation label now appears modified in the list of


conversations.

Deleting a Conversation
As mentioned earlier, the second button displayed after the conversation
label text (symbolized by a trash can) is used to delete the entire
conversation.
After clicking this button, you need to confirm the deletion by clicking
the Delete button that appears in a new pop-up window (see Figure 2-7).

Figure 2-7. Validation of conversation deletion

20
Chapter 2 Dialoguing with ChatGPT

Once the conversation deletion is confirmed, the conversation will be


removed from the displayed list. It will no longer be accessible.

Deleting All Conversations


When using ChatGPT, you may accumulate a large number of
conversations in the list. It is possible to delete them all at once, which is
much faster than deleting them one by one.
To do this, simply click your login ID located at the bottom left of the
window, below the list of conversations (see Figure 2-8).

Figure 2-8. Clicking your login ID

A pop-up will appear above it, containing the button Settings (see
Figure 2-9).

Figure 2-9. Modifying the settings

Let’s click the Settings button. A window appears, in which the Clear
button allows us to delete all conversations (see Figure 2-10).

21
Chapter 2 Dialoguing with ChatGPT

Figure 2-10. Confirming clearing conversations

Let’s click the Clear button. A confirmation window asks us to confirm


the requested deletion. After confirmation, all conversations will be
cleared from the list (see Figure 2-11).

Figure 2-11. Empty conversation list after deleting all conversations

22
Chapter 2 Dialoguing with ChatGPT

Is it possible to delete part of a conversation (instead of the entire


conversation as described earlier)? No, it is not possible because each
conversation is managed by ChatGPT as a whole.
Although we cannot delete part of the conversation, it is possible
to request ChatGPT provide us with a new response instead of the last
response displayed in that conversation.
This option to obtain a new response for a question is available only for
the last response displayed in a conversation. If the question is not the last
one in the conversation, you can simply ask it again to ChatGPT, and it will
respond to it as a new question.
To obtain a new response for the last question asked, we use the
Regenerate button displayed above the input field. Let’s examine this
process.

 odifying the Last Response Displayed


M
by ChatGPT
Once a response is fully displayed on the screen by ChatGPT, the
Regenerate button is shown above the input field, allowing us to request
a new response from ChatGPT for the previously asked question (see
Figure 2-12).
We can use this button when we are not fully satisfied with ChatGPT’s
answer and we want to get another one.

Figure 2-12. Regenerate response button

23
Chapter 2 Dialoguing with ChatGPT

Let’s click the Regenerate button. The previously displayed response


from ChatGPT disappears and is replaced by a new response that appears
in its place (see Figure 2-13).

Figure 2-13. Getting a new response to the question asked

As we asked ChatGPT to regenerate its previous answer, it proposes


that we indicate if its new answer is better than the previous one. By
choosing one of the three choices offered, we help ChatGPT to improve
according to our needs.
In this example, we initiated a conversation with ChatGPT with the
initial topic of “How to make pizzas?” If we continue the conversation
with ChatGPT on this topic (making pizzas), we can stay within the same
conversation. However, if we switch to a different topic, it’s preferable to
start a new conversation.

24
Chapter 2 Dialoguing with ChatGPT

Let’s explain the benefits of continuing the dialogue within the same
conversation or starting a new one.

 ontinuing the Dialogue Within


C
the Same Conversation
ChatGPT remembers all the conversations we have with it. This means
that when we continue a conversation, everything that has been previously
said in that conversation is known by ChatGPT. In the case of a long
conversation (which is often the case), there’s no need to start from
scratch, saving us valuable time.
If the topic of the conversation remains the same as the initial one, it’s
best to continue within that same conversation. This way, we can benefit
from everything that has been previously discussed in that conversation.
However, if the topic changes, it’s better to start a new conversation by
clicking the “New chat” button. This ensures that the two conversations are
kept separate and have their own context.
In the case of a long conversation, we can even ask ChatGPT to provide
us with a summary of everything that has been said. This helps refresh our
memory. Let’s see how we can do that.

 btaining a Summary of an
O
Entire Conversation
Assuming we have had a long conversation with ChatGPT on the topic of
“How to make pizzas,” let’s ask ChatGPT to provide us with a summary
of what has been discussed in that conversation. This will be useful if we
want to quickly recall what has been talked about and potentially continue
the conversation or start a new one.

25
Chapter 2 Dialoguing with ChatGPT

We can simply ask ChatGPT, “Can you summarize in a maximum of


five points what has been discussed in this conversation?” or “Can you
summarize what has been said in this conversation?”
The dialogue with ChatGPT is similar to what we would have with a
human, except that ChatGPT, being a computer program, can respond
more quickly than any human. Let’s ask ChatGPT, for example, to provide
a five-point summary of the conversation (see Figure 2-14).

Figure 2-14. Asking ChatGPT to summarize the conversation

What to Do If ChatGPT’s Response Is Cut Off


Sometimes ChatGPT’s response may stop in the middle of a word or
sentence. This happens often, but there is an easy way to address it.

26
Chapter 2 Dialoguing with ChatGPT

This issue is related to the settings of ChatGPT. One of the settings,


max_length, determines the maximum number of tokens (similar to
words) that the provided response can contain. ChatGPT stops displaying
its response if this limit is reached (by default, it is set to 2,048 tokens).
For example, let’s say we asked ChatGPT to explain the consequences
of climate change. We know that this is a complex topic and the response
will be long, so there is a chance that it may not be fully displayed,
especially if we ask for detailed information.

 User: What are the consequences of climate change? Please detail


each of the points with a lot of details.

ChatGPT starts providing its response but abruptly stops. We display


only the end of its response here to show how to make it continue and
display the rest of the answer.

ChatGPT: (...)

5 - Human health impacts:

Increased heat-related illnesses: Rising temperatures contribute to


more heat-related illnesses and deaths. Heatwaves can cause heat
exhaustion, heatstroke, and exacerbate existing health conditions.
Vulnerable populations, including the elderly, children, and those
with pre-existing health conditions, are at higher risk.

Spread of diseases: Climate change affects the geographical


distribution of disease-carrying vectors. Warmer temperatures and
altered precipitation patterns expand the range of mosquitoes,
ticks, and other disease vectors, leading to the spread of diseases
such as malaria, dengue fever, Lyme disease, and Zika virus.

27
Chapter 2 Dialoguing with ChatGPT

Water and foodborne diseases: Changes in precipitation patterns


and extreme weather events can contaminate water sources and
impact food safety. Floods can lead to the spread of waterborne
diseases like cholera, while crop contamination and improper food
storage can increase the risk

To make ChatGPT continue, simply click the “Continue generating”


button displayed at the bottom of the window (see Figure 2-15). This
button is shown only if ChatGPT’s response has been interrupted due to its
length, as explained earlier.

Figure 2-15. “Continue generating” button

Once you click the “Continue generating” button, ChatGPT will display
the continuation of its response.

Using the OpenAI ChatGPT Application


OpenAI has recently developed an iPhone and Android application for
conveniently using ChatGPT on your mobile phone (see Figure 2-16). This
application allows you to type the text of your question, but it also allows
you to dictate the text that will be submitted to ChatGPT.

28
Chapter 2 Dialoguing with ChatGPT

Figure 2-16. iPhone app

The application also enables users to access previous conversations


conducted via the website, which is very convenient.
Let’s type a message in the message input field. For example, let’s
type “What are the differences between the website and the ChatGPT’s
application?” See Figure 2-17.

29
Chapter 2 Dialoguing with ChatGPT

Figure 2-17. Sending the question to ChatGPT

Let’s send the question to ChatGPT by clicking the send button located
to the right of the question asked (see Figure 2-18).

30
Chapter 2 Dialoguing with ChatGPT

Figure 2-18. ChatGPT’s response

The operation of the application and the website is identical.


Let’s click the... button located at the top right of the window. A menu
will appear allowing you to choose an action to perform on the following
conversation (see Figure 2-19).

31
Chapter 2 Dialoguing with ChatGPT

Figure 2-19. Conversation menu

You’ll find the usual actions associated with a conversation, as well as


the option to share the conversation with others (“Share chat” menu). A
link to this conversation can then be sent (via SMS, WhatsApp, Email, etc.)
to others who can also contribute new messages to it.

32
Another random document with
no related content on Scribd:
FANIO
Dessas espero el medio que
conviene.

LIRIA
¿Es mi amiga quien tiene tu
alegría?

FANIO
Si tanto fuera mía, en tal
fortuna,
poca quexa ó ninguna se
tuviera.

LIRIA
Pues di dessa manera mal
tan duro,
que, por mi fe, te juro de
hablalla
y á tu amor incitada. F. Que
me place;
á mí me satisface tu
promessa,
aunque en la alma me pesa de
probarte;
y antes quiero mostrarte
aquesta carta,
que con angustia harta tengo
escrita,
para aquella que quita mi
contento;
jamás mi pensamiento fué
adivino,
que fueras, papel, dino de
hallarte
donde pudo llegarte mi osadía:
leedle, Liria mía, parte á
parte.

CARTA
La libertad ganada,
porque en tan buena empresa
va perdida;
la voluntad prendada,
el alma enriquecida,
viéndose en su servicio de
partida,
Indignas de llamarte,
sin tu licencia, el nombre de
señora,
vienen á suplicarte
que se la des ahora,
y cada cual se llamará
deudora.
Recibe por cautivas
las que este nombre en su
sepulcro escriben;
verás, si no te esquivas
y tal merced reciben,
cómo en mí solo mueren, en ti
viven.
Inclina á mis cansadas
razones tus orejas, por
ventura;
no sean despreciadas
en afición tan pura
las mismas obras de tu
hermosura.
Al fin mi fe y mi pena,
pues de ti nacen, tuyo será el
cargo,
y aquí cesse la vena
de estilo tan amargo,
corto en hablarte y en pedirte
largo.

LIRIA
La carta está tan buena que,
aunque pruebe
de mil maneras, no sabré
loalla,
porque es, en fin,
compendiosa y breve.

FANIO
¿Parécete que puedo
aventuralla?

LIRIA
Paréceme que pierdes de
ventura
lo que te detuvieres en
cerralla.

FANIO
¿Parécete que llegará
segura
de que puedan culparme de
arrogante?

LIRIA
Paréceme un retrato de mesura.
FANIO
¿Al fin me juzgas verdadero
amante?

LIRIA
Y que mereces ser galardonado.

FANIO
Quiera Dios que assí digas
adelante.

LIRIA
Pero ya que la carta me has
mostrado,
dime, ¿quién fue la causa de
hacella?
Pues sé la pena, sepa quién la
ha dado.

FANIO
En cinco partecillas que hay
en ella,
pedrás saber el todo que
pretendo,
si adivinares el secreto della.

LIRIA
Tórnamelo á decir, que no lo
entiendo.

FANIO
De cada cinco estancias ve
tomando
la primer letra y velas
componiendo:
Porque estas cinco letras
ayuntando,
por el orden que digo,
fácilmente
el nombre de mi alma irás
formando.

LIRIA
No te he entendido
verdaderamente,
¿acaso dice Leria? F. Con
dos ies
no puede pronunciar Leria el
leyente.

LIRIA
¿Dice por dicha Libia? F. No
porfíes,
¿con erre Libia? Buen
descuido es esse.

LIRIA
Pues menester será que tú me
guíes.

FANIO
Habrélo de hacer, aunque
me pese,
que Liria dice. L. Siria. ¿Pues
entiendes
que no lo sé decir si lo
leyesse?

FANIO
Pues, Siria, digo yo, ¿por
qué me vendes
descuidos, cuando el alma me
has robado,
y con falsa ignorancia te
defiendes?
¿Dónde te vas, pastora? L.
A mi ganado.

FANIO
Mira, pastora, tente. L.
¿Qué locura
es ésta que tan presto te ha
tomado?
¿Estás loco, pastor? F. Que
no hay cordura
en quien no la perdiesse,
contemplando
mi amor y tu desdén y
hermosura.

LIRIA
Déjame, ¿qué pretendes? F.
Que llorando
me veas fenecer. L. Deja mi
mano.

FANIO
Y tú mi alma, que la estás
matando.

LIRIA
¡Oh solitario valle! ¡oh
campo llano!
¿Habrá quien lastimoso me
defienda
deste pastor perdido, deste
insano?

FANIO
Escucha, Liria, ya solté la
rienda
á lo osadía para detenerte,
no bastará aunque Júpiter
descienda.

LIRIA
¿Qué quieres? F. Quiero en
todo obedecerte,
si no es ahora en esta fácil
cosa,
que estés presente al passo
de mi muerte.

LIRIA
Otra podrás buscas más animosa.

FANIO
Pues para dar la muerte eres
osada,
para verme morir no seas
medrosa.

LIRIA
Suéltame, Fanio. F. Ya
serías soltada,
por no enojarte, si tuviesse
cierto
que escucharías un rato
sossegada.

LIRIA
Suéltame, que no aprietas como
muerto.

FANIO
Asido á las aldabas de la
vida,
pensar muerte prenderme es
desconcierto.

LIRIA
Suelta ya. F. Sí haré; mas
sei servida
de me escuchar. L. Como no
fuesses largo.

FANIO
Esso, tu voluntad será medida.
Y si te pareciere que me
alargo,
mándame tú callar, y verás
luego
cómo procuro en todo echarte
cargo.
Ser contigo atrevido no lo
niego;
mas ¿qué derecho guardará el
forzado
ó cómo no cairá sin luz el
ciego?

LIRIA
Esso me agrada, llámate
culpado,
y yo te escucharé de buena
gana.

FANIO
Y aun si quieres me doy por
condenado.
Mira esta parra fértil tan
lozana,
cómo por este olmo infrutuoso
se abraza, y lo que él gana y
ella gana.
El con ella se muestra más
hermoso,
y ella sin él cayera por el
suelo,
do no fuera su fruto
provechoso.
La flor desamparada quema
el hielo,
no hay cosa sola en la
Naturaleza,
y lo que no aprovecha no es
del cielo.
Goza con tiempo de tu
gentileza,
que el día passado no puede
cobrarse,
ni como rosa torna la belleza.
Cuando un estado tiene de
tomarse,
hallando la ocasión que es
conveniente,
¿qué sirve ó qué aprovecha
dilatarse?
No te niego yo, Liria, que al
presente
podrías escoger otro que
fuesse
en bondad y en hacienda
preminente;
Mas si tomasses á quien
más valiesse
que yo, yo juraré que no
hallases
otro que más ni tanto te
quisiesse.
Demás desto, pastora, si
mirasses
mi edad y mi hacienda y mis
respetos,
podría ser que no me
despreciasses.
Y sobre todo, mira los efetos
que en mí hacen tu gracia y
hermosura,
que bastan á suplir muchos
defetos.
LIRIA
Basta, pastor; que Dios te
dé ventura;
yo te agradezco amor tan
verdadero,
y escúchame otro poco, por
mesura.
¿Qué sabes tú si por
ventura quiero
y amo otro pastor, de tal
manera
que, como tú por mí, por él me
muero;
Y le tengo una fe tan
verdadera,
que aunque la vida su afición
me cueste,
ha de ser la primera y la
postrera?
¿Qué es esto, Fanio? ¿qué
desmayo es éste?
¿háceslo adrede? No, que
estás muy frío.
¿Hay algún Dios que su favor
te preste?
Recuerda, Fanio. ¡Oh
Ninfas deste río,
venidme á socorrer un caro
amigo,
porque no me castigue el error
mío!
Recuerda ya, los Dioses
sean contigo,
mira que lo que dije fué
burlando,
y ahora es verdadero lo que
digo.
FANIO
¿Yo muero, ó vivo, ó veo, ó
estoy soñando?
¿qué ha sido, Liria? L. A lo
que entiendo,
ibaste con el sueño
transportando;
Que como yo te estaba
persuadiendo
que te dejasses de tan vana
empresa,
con el placer quedástete
durmiendo.

FANIO
Más que esso, Liria, á lo
que entiendo pesa:
paréceme que me ponías un
caso
donde el extremo de miserias
cesa.

LIRIA
De esso, pastor, no hagas
mucho caso,
si le haces de mí, porque son
cosas,
que en efeto las digo y no las
passo.
Mas porque son razones
peligrosas,
estas que aquí passamos,
quiero irme,
que bien bastan dos horas
para ociosas.

FANIO
Yo de ti y de la vida
despedirme,
que aqueste lazo acabará mis
días
si como tú se me mostrare
firme.

LIRIA
Mira, pastor, no hagas
niñerías,
que para verme y aun para
hablarme
no faltará lugar más de dos
días.

FANIO
Esso, pastora mía, ¿es
engañarme?

LIRIA
Es gran llaneza. F. Y
aunque no lo sea,
bien bastará para resucitarme.

LIRIA
Fanio, lo que yo digo se me
crea,
y forzada me voy de aquí tan
presto,
adiós. F. El haga que otra vez
te vea.
Publicar tanto bien,
¿seráme honesto,
ó á poderlo callar, seré
bastante?
¿A quién iré que me aconseje
en esto?

DELIO
Tu verdadero amigo está delante.

FANIO
¡Oh, caro Delio mío, y cómo
atas
mi voluntad con lazos de
diamante!
¿Fuístete ó hasme oído? D.
Mal me tratas.
¿Irme tenía viéndote en tal
punto?

FANIO
¿Pues dónde estabas? D.
Entre aquellas matas.
Con tu desmayo me quedé
difunto,
pero decirte mi placer no
puedo
viendo á Liria en valerte tan á
punto.
Bien quisiera salir, mas tuve
miedo
de darte sobresalto ó
descontento,
y entre pena y placer me
estuve quedo.

FANIO
¿Pues hizo en mi desmayo
sentimiento?

DELIO
Tú como transportado no lo
viste;
mas cree de mí, que la verdad
te cuento,
Que se mostró tan alterada
y triste,
que comenzó á pedir al cielo
ayuda,
y mesuróse cuando en ti
volviste.
Sabe disimular, como es
sesuda,
mas de quererte como tú la
quieres,
no tengo yo (ni tú la tengas)
duda.

FANIO
Ya yo sé, Delio, que á
doquier que fueres,
ó tus consejos fueren
admitidos,
no faltarán contentos y
placeres.
DELIO
Essos tengas de Liria muy
cumplidos,
aunque en lo que quedaste
aquí hablando
cuando se fué, ofendiste á mis
oídos.
No sé qué te decías, no
bastando
á cerrar en tu pecho la alegría,
ora el callar, ora el hablar
dudando.
Pues mira qué consejo te
daría,
que, en lo que toca á Amor,
antes rebientes
que confieses agora que es de
día.
Bien pareces sencillo, pues
no sientes
cuánto debe excusar el
hombre sabio
la envidia y la malicia de las
gentes.
Al que te arrima dulcemente
el labio
no le fíes el dedo, que á tu
costa
podrá ser que conozcas su
resabio.
Porque la fe del mundo es
tan angosta,
tan ancha y prolongada la
malicia,
que la virtud escapa por la
posta.
Aquel que te hiciere más
caricia,
si te escudriña con industria el
pecho,
cree que tu mal y no tu bien
codicia.
Los bienes que el Amor te
hubiere hecho,
Fanio, tesoros son de duen de
casa,
cállalos, y entrarante en buen
provecho.
Y aquel refrán, que tan valido
passa,
que pierde el bien si no es
comunicado,
no atraviesse las puertas de tu
casa.
Calla con el amigo más
fundado,
que en prisión, en discordia ó
en ausencia,
no te arrepentirás de haber
callado.
Sabe que es general esta
dolencia,
entre la gente moza
respetarse
amigo á amigo sólo en la
presencia.
Que ya hemos visto alguno,
por fiarse
de un gran amigo, hecha su
jornada,
pensar que es todo un tiempo,
y engañarse.
Y alguno vi con suerte
confiada,
lleno de vanagloria en sus
favores,
después hallarse un nido con
no nada.
Y cuando la ocasión destos
temores
cessasse (que impossible me
parece),
por ley han de callar los
amadores.
Y en lo que ahora de tu bien
se ofrece,
no te descuides, menos te
apressures,
que lo extremado apenas
permanece.
¿Qué me respondes,
Fanio? F. Que no cures,
de decir más, que poco daño
temo
con tal que tú por mi salud
procures.
Demás que siempre huigo
yo el extremo,
y callo bien, como si fuesse un
canto,
y de mi hermano en mi afición
blasfemo.

DELIO
Cumple que assí lo hagas; y
con tanto
me voy, que tengo lejos el
abrigo,
y desdobla la noche apriessa
el manto.
Y porque pienso luego dar
conmigo
en el monte de pino, á las
paranzas,
quédate en paz. F. Y vaya
Dios contigo.

DELIO
Allá te avén con vanas
esperanzas,
que aunque se muestra tu
fortuna mansa,
quizá te arrastrarán tus
confianzas.

FANIO
Delio me espanta cómo no
descansa,
si topa con quien ha de
respetarle,
que habla tanto, que, aunque
bueno, cansa;
ya yo lo estaba casi de
escucharle.

Con tales afectos representaron


los discretos pastores, que á los
oyentes no les parecía
representación, sino propio caso,
y aunque agradó á todos, á Filida
mucho más, porque sabía más
por entero aquella historia. Liria
era su amiga y Fanio y Delio muy
conocidos de todos, y assí,
estuvo con gran atención desde el
principio hasta el cabo; que le
hizo gran donaire verlos despedir
murmurándose, y agradeciendo á
los pastores la curiosidad con que
la entretenían, pidió á Sasio que
rematasse la fiesta, el cual, las
manos en la lira y el pensamiento
en Silvera, pastora gentil, á quien
nuevamente amaba, cantó con
gran dulzura aquestos versos
suaves:

SASIO
Esto que traigo en mi pecho
no puede ser sino amor,
pues me siento en su rigor
agraviado y satisfecho;
yo oso en la cobardía
y en el osar me acobardo;
¿qué me guardo,
si la nieve que me enfría
es el fuego en que me ardo?
Guárdome de tal manera
que me guardo del contento,
pues la causa del tormento
fué mi ventura primera.
Ampárome con mi ofensa
porque sé que aunque más
pene,
me conviene
no hacer jamás defensa
sino al bien que sin vos viene.
En la empresa comenzada
no puede faltarme gloria,

You might also like