Professional Documents
Culture Documents
Chatgpt For Beginners Features Foundations and Applications 1St Edition Eric Sarrion Full Chapter PDF Scribd
Chatgpt For Beginners Features Foundations and Applications 1St Edition Eric Sarrion Full Chapter PDF Scribd
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
Introduction����������������������������������������������������������������������������������������xv
iii
Table of Contents
iv
Table of Contents
v
Table of Contents
vi
Table of Contents
vii
Table of Contents
viii
Table of Contents
ix
Table of Contents
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
xvi
PART I
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!
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
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.
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
7
Chapter 1 Logging in with ChatGPT
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
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.
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
13
Chapter 1 Logging in with ChatGPT
14
Chapter 1 Logging in with ChatGPT
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.
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.
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).
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).
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.
19
Chapter 2 Dialoguing with ChatGPT
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.
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).
20
Chapter 2 Dialoguing with ChatGPT
A pop-up will appear above it, containing the button Settings (see
Figure 2-9).
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
22
Chapter 2 Dialoguing with ChatGPT
23
Chapter 2 Dialoguing with ChatGPT
24
Chapter 2 Dialoguing with ChatGPT
Let’s explain the benefits of continuing the dialogue within the same
conversation or starting a new one.
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
26
Chapter 2 Dialoguing with ChatGPT
ChatGPT: (...)
27
Chapter 2 Dialoguing with ChatGPT
Once you click the “Continue generating” button, ChatGPT will display
the continuation of its response.
28
Chapter 2 Dialoguing with ChatGPT
29
Chapter 2 Dialoguing with 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
31
Chapter 2 Dialoguing with ChatGPT
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.
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,