Practical AI for Instructors and Students Part 3: Prompting AI
Summary
TLDREste video ofrece una introducción a cómo interactuar con la inteligencia artificial (IA) de manera efectiva, con un enfoque especial en la educación. Ethan Malek, profesor de la Universidad de Pensilvania, y Angelina Malik, investigan cómo se puede dar instrucciones claras a la IA para que realice tareas específicas. Destacan la importancia de proporcionar contexto, dar ejemplos y establecer restricciones para que la IA entienda y ejecute las tareas deseadas. A lo largo del video, se muestra cómo construir un 'prompt' o indicación para la IA, paso a paso, y se discuten técnicas avanzadas como pedir a la IA que piense paso a paso. Además, se abordan las limitaciones y se enfatiza la necesidad de una interacción activa con la IA, donde el usuario guía y da feedback continuamente para mejorar los resultados. El video concluye destacando la importancia de la experiencia y la práctica para optimizar el uso de la IA en entornos educativos.
Takeaways
- 📝 **Contexto es clave**: Indicar a la IA quién es y proporcionar contexto para que pueda comenzar con la información adecuada.
- 📌 **Instrucciones claras**: Dar instrucciones precisas a la IA sobre lo que se desea que realice, ya que no tiene conocimiento de tus circunstancias.
- 💡 **Ejemplos y pasos**: Proporcionar ejemplos y pasos específicos para que la IA pueda aprender y ejecutar tareas de manera más efectiva.
- 🔍 **Revisar y ajustar**: La IA puede requerir ajustes y se debe revisar su trabajo para asegurar la calidad y la pertinencia.
- 🚀 **Experimentación continua**: La creación de un prompt perfecto no es mágica; es un proceso iterativo que mejora con la experiencia.
- 💬 **Diálogo con la IA**: Tratar la interacción con la IA como una conversación, no como un lenguaje de programación técnico.
- 🔗 **Integración de conocimientos**: Incluir en el prompt conocimientos propios para que la IA no genere información aleatoria, sino que se integre con lo que se desea comunicar.
- 🤔 **Pensamiento paso a paso**: Pedir a la IA que piense y escriba de manera secuencial para mantener el enfoque y mejorar la calidad del contenido.
- 🔄 **Iteración y retroalimentación**: La IA puede dar respuestas diferentes cada vez, lo que permite la selección de la mejor opción y el uso de la retroalimentación para mejorar.
- ✅ **Interacción activa**: Ser el encargado de dirigir y dar forma al contenido, actuando como editor y dando instrucciones a la IA.
- 🧐 **Conciencia de la aleatoriedad**: Darse cuenta de que hay un elemento de aleatoriedad en los sistemas de IA y aprovecharlo para obtener una variedad de respuestas.
Q & A
¿Qué es lo primero que debemos recordar al interactuar con una inteligencia artificial?
-Debemos decirle a la IA quién es ella, ya que esto le proporciona el contexto correcto para comenzar, basándose en los miles de documentos en los que ha sido entrenada.
¿Por qué es importante proporcionar contexto y perspectiva a la IA?
-El contexto y la perspectiva cambian la forma en que la IA entiende y responde a una solicitud, permitiéndole generar contenido más relevante y alineado con las expectativas del usuario.
¿Cuáles son los dos puntos clave que se deben tener en cuenta antes de crear un prompt para la IA?
-Primero, que el prompting no es mágico y depende en gran medida de la experiencia. Segundo, que la interacción con la IA es más importante que tener un prompt perfecto.
¿Cómo puede la IA ayudar a mejorar la calidad de un texto?
-Al proporcionar ejemplos, pasos y restricciones específicas, la IA puede generar contenido que se ajuste más estrechamente a las necesidades y deseos del usuario.
¿Por qué es recomendable incluir ejemplos y pasos al dar instrucciones a la IA?
-Incluir ejemplos ayuda a la IA a aprender lo que el usuario quiere, y dar pasos ayuda a la IA a pensar de manera secuencial, lo que resulta en un trabajo más efectivo.
¿Cómo se puede mejorar un prompt básico para obtener resultados más específicos y deseados?
-Se puede mejorar un prompt básico agregando contexto, perspectiva, restricciones y pasos específicos que indiquen claramente lo que se busca lograr.
¿Cómo se puede aprovechar la capacidad de Bing para buscar en la web al crear un prompt?
-Al utilizar el modo creativo de Bing, que utiliza el mismo modelo que GPT-4, se puede pedir a la IA que busque investigaciones académicas o información específica en la web para mejorar la calidad de la respuesta.
¿Por qué es importante incluir puntos específicos que uno quiera destacar en la IA?
-Incluir puntos específicos asegura que la IA no genere información aleatoria, sino que incluya la información relevante y que el usuario quiera que se destaque en la tarea final.
¿Qué técnica avanzada se puede utilizar para hacer que la IA piense paso a paso?
-Pide a la IA que siga un conjunto de pasos, como 'outline the paragraph', 'prove the outline', y 'write the paragraph', lo que se conoce a veces como pensamiento secuencial o 'Chain of Thought' thinking.
¿Cómo se puede interactuar con la IA de manera más efectiva?
-Interactuar con la IA de manera efectiva implica dar retroalimentación, pedir expansiones o ediciones en puntos específicos, y guiar al AI para que se ajuste a las expectativas del usuario.
¿Por qué es importante ser el encargado de la creación de contenido al trabajar con la IA?
-Al ser el encargado, se asegura de que el contenido generado tenga en cuenta la perspectiva y el conocimiento del usuario, mejorando así la calidad y la relevancia del trabajo final.
¿Cómo afecta la aleatoriedad en los sistemas de IA la calidad de las respuestas?
-La aleatoriedad hace que la IA pueda proporcionar diferentes respuestas cada vez que se le da un prompt, lo que permite al usuario seleccionar la respuesta que mejor se ajuste a sus necesidades.
Outlines
😀 Introducción a la interacción con IA
Este primer párrafo presenta la serie de videos sobre la introducción a la inteligencia artificial (IA) y su uso en educación. Ethan Malek y Angelina Malik, profesores de la Universidad de Pensilvania, discuten cómo indicar a la IA lo que se desea que realice de manera efectiva. Destacan la importancia de proporcionar contexto a la IA, dar instrucciones claras y ofrecer ejemplos y pasos para proyectos específicos. Además, advierten que la formulación de un buen prompt (solicitud) no es una fórmula mágica y que la interacción y experimentación con la IA son clave para obtener mejores resultados.
🔍 Uso avanzado de herramientas de IA con acceso a Internet
En el segundo párrafo, se explora el uso de Bing en modo creativo, que utiliza el mismo modelo de IA que GPT-4 pero con acceso a Internet. Se muestra cómo la IA puede buscar investigaciones académicas y cómo se puede integrar el conocimiento del usuario en la generación de contenido. Se destaca la técnica de 'thinking step by step' (pensamiento paso a paso) para que la IA siga un proceso lógico y se pueda revisar y ajustar el resultado a medida que se va construyendo. Además, se menciona la importancia de la interacción continua y la retroalimentación para mejorar la calidad de la salida de la IA.
👩🏫 Incorporación del rol del usuario en la creación de contenido con IA
El tercer párrafo enfatiza la necesidad de que el usuario tome un papel activo en la generación de contenido con IA, actuando como editor y orientando al AI con instrucciones precisas. Se discute la naturaleza aleatoria de las respuestas de la IA y cómo esto puede ser ventajoso para obtener múltiples perspectivas. Se sugiere realizar múltiples intentos y experimentos con retroalimentación para afinar la solicitud y obtener resultados deseados. El párrafo concluye resaltando la importancia de la experiencia y la práctica en la interacción con la IA, comparándola con un arte en lugar de una ciencia exacta.
Mindmap
Keywords
💡AI
💡Prompting
💡Contexto
💡Instrucciones claras
💡Ejemplos y pasos
💡Interacción con la AI
💡Experiencia
💡Académico
💡Trabajo en grupo
💡Diseño cuidadoso
💡Pensamiento paso a paso
Highlights
Introducción a la inteligencia artificial (IA) con enfoque en educación
Importancia de proporcionar contexto a la IA al interactuar
Necesidad de dar instrucciones claras a la IA para una efectividad óptima
La IA no conoce el contexto del usuario, por lo que es crucial proporcionar información de contexto
Proporcionar ejemplos y pasos específicos mejora la capacidad de la IA para cumplir con las expectativas
La construcción de un prompt (solicitud) paso a paso para la IA
La interacción con la IA es más importante que el prompt perfecto
La IA puede acceder a la web y buscar información académica para mejorar las respuestas
Inclusión de puntos específicos que el usuario desea que la IA aborde
Técnica avanzada de 'thinking step by step' para una construcción de contenido más efectiva
Revisión y retroalimentación continua de la IA para obtener mejores resultados
La IA ofrece diferentes salidas cada vez, lo que permite al usuario elegir entre varias opciones
La interacción con la IA implica un papel activo del usuario como editor y director
La IA puede entrar en bucles, y es posible reiniciar la conversación para obtener una nueva salida
La optimización del uso de la IA implica múltiples intentos y experimentos
La experiencia en la interacción con la IA es clave para mejorar la calidad de las salidas
La IA como herramienta pedagógica en el aula, tanto para estudiantes como para profesores
Transcripts
[Music]
hi welcome to video three of our series
of videos where we're trying to give you
an introduction to Ai and how to use it
with a special focus on education from
the ground up I'm Ethan Malek a
professor at Wharton who has been
studying AI
and Angelina Malik and I study Ai and
interactive pedagogy at the Wharton
School of the University of Pennsylvania
in this video we're going to talk to you
about how to prompt and how to tell the
AI exactly what you'd like it to do and
how to do so effectively
thank you
the first thing to remember is that you
want to tell the AI who it is the reason
you want to do that is because the AI
has been trained on billions of
documents telling it who it is gives it
the right context from which to start
once you tell the AI who it is the
second thing to do is to give the AI
very clear instructions about what you
wanted to do you have to remember that
the AI doesn't know you and doesn't know
any of your contexts so the more context
you give it the more effective it can be
the third thing to remember is to always
give AI examples and steps if you have a
specific project you'd like it to take
on if you have specific directions that
you'd like to give it giving it examples
helps it learn what you want and giving
it steps helps it think step by step and
we'll do a more effective job for you so
let's see how this works in practice
so I'm going to show you how to
construct a prompt sort of Step by Step
there are two important caveats that you
have to know before we do this first off
don't follow this exactly prompting
isn't Magic eighty percent of prompting
is about experience and prompting is
just getting easier with each generation
of these models so this is not a magical
formula you can actually experiment and
the more you use AI the more you'll find
out what's good or bad and how to make
it do what you'd like and even just ask
the AI to help you say I want to
accomplish this task what should I ask
you it will help you with that so that's
the first thing is this isn't magical
there is not a technical programming
language here this is a conversation
with the AI and the second is as you
will talk about it a little bit
prompting is just a piece of this so
getting the right perfect prompt is less
important than interacting with the AI
which we'll talk to you after we show
you how to create a problem so with that
said let's talk about how to create a
good first prompt so let's work out a
prompt together and see how we can make
it better we're going to start with
something basic and build it out for
this particular use case we're going to
use gpt4 and chat GPT which as we
discussed last time is one of a series
of foundational models you're going to
use so you could also do this in
Microsoft Bing which in its creative
mode uses chat GPT for the same model or
you can use it Google's Bard which works
a little bit differently but we're going
to just use gpt4 for this again
prompting Works fairly similarly across
different AI models so let's start with
an example let's say we wanted to write
me a paragraph
about
why group work
is important
and so gpd4 is a very powerful model
it's a little bit slow it will produce
the results here that we need here about
this so that is a good prompt and it's
coming up with a perfectly fine essay
but you'll notice it doesn't know what
context to use what perspective to write
this from
so the first thing we can start to do is
we can add context and perspective so we
can say
act like
an experienced teacher
write a paragraph about why group work
is important and you'll notice that the
entire context of the conversation
changes because now it's like a pedagogy
and it's talking about from a teacher's
perspective we haven't made it into a
teacher and it's not magic but we've
given it context to work in and a
perspective to take and you'll see it
uses that perspective throughout now we
can make this even more advanced by
adding in constraints by telling it
exactly what we want to see so we can
say that act like experienced teacher
write a paragraph about why group Works
important make their writing engaging
but smart to pick a style and by the way
if you don't know what style to use you
can paste in your favorite text into any
of these AIS and ask it to describe that
text to you and then use that
description when you're giving a
constraints we might also want to say
make sure there is
an example and again you can see I'm
just using normal human text to do this
there's nothing magical here and say now
it's being a little bit too engaging and
fun right same group work my deal
Scholars is a vital Cornerstone of
education so maybe you think that's too
flowery we're learning as we go with
this prompt we'll talk more about how
you revise it as you go along but you
can see we get a better more constrained
more interesting piece of writing as a
result of this
so now we can do something a little bit
different
for this example we're going to switch
over to a tool that has access to the
internet which is Bing Bing is using in
creative mode purple mode the exact same
model as chat gpt's gpt4 but it has an
internet connection so here we're going
to paste in the exact same thing that we
had before
and we're going to add a additional
qualifier we're going to say
look up the academic research on group
work
now this would not work in GPT it's not
connect to the internet but it works
here
well in bing so let's try this with look
up the academic research work and what
you'll see is Bing is now going to
actually do that for us here so it's now
looking up doing actual web search to
find the answer and we're going to get a
better result you'll also notice that
Bing will provide sources as a result
these sources are not always 100 correct
you'll want to again check the work to
make sure there's no hallucinations but
I think you can see how we get better
results now here that are both including
the example including the context but
now including actual academic research
we can go one step further with this by
adding ourselves into this model we
wanted to make particular points we're
smart we're experts we don't want the AI
to be the expert so we can tell it make
the following points
[Music]
so now to make the AI Not Just Produce
random work we want to actually insert
what we know into the prompt and we give
it instructions that are more explicit
so in this case we wanted to make the
following points that group work allows
students to support each other but group
work also needs to be carefully designed
so up till now there's been none of us
in the AI which is of course kind of
boring because you'd like to make sure
that as humans we're in the loop that we
are making playing a role in the
creation of this content so it's really
important to add that in so we're going
to add in a couple of points that we
know that we want to make sure the AI
covers so it doesn't just make up its
own information we're going to say that
we wanted to include that group work
allows students to support each other
and the group work needs to be carefully
designed and then when we do this prompt
the AI will do what it did before which
is look up the information like we
requested it'll still do the work it did
before from the context of a teacher
with the same tone but you'll notice now
including the points that we wanted to
include as opposed to just being AI work
now it's starting to be integrated work
between human and AI sometimes it's
called being a centaur half person half
horse and that's what we're seeing here
there's one even more advanced technique
that we can include which research shows
makes the am more effective and this is
a little bit trickier but it is asking
the AI to think step by step so remember
the AI is just trying to guess what the
next word is in a series of words and I
ask you to think step by step allows it
to create content that it can then look
at and build from so we could say follow
these steps outline the paragraph
prove the outline
write the paragraph so now we're giving
it steps to follow this step-by-step
thinking sometimes called Chain of
Thought thinking is a useful way to get
the AI to stay on task and also for us
to check the output as we go along to
make sure that it's good so you can see
it's outlining the parallel graph it's
going to do first it's giving us the
sentences it's going to make the points
it's going to make the example it's
going to include which we all asked for
and now it's going to improve the
outline so it's going to go back and you
can see it's going to actually already
revising what it's doing so asking it to
look back at its own work often gets
much better output as a result and you
can see it's actually doing a better
transition it's doing better points and
it's going to then produce the final
content here which is the actual end
goal that we wanted and so you can see
you have the sophistication level
increases the quality level increases
and we can check the results to see what
goes wrong if anything does
so I've just spent a bunch of time
showing you how to do a prompt but this
is actually not the right way to
optimally use the AI you don't want to
try and create the world's perfect
prompt instead you want to work with it
interactively and to work with it
interactively you have to push back and
this is really where the magic happens
for instance you could ask it to expand
I like a second Point can you expand on
that
and you can ask it to edit I don't like
the example you used in this paragraph
why don't you change the example
in addition you can also ask it to
include more of your thinking you can
add a point about how group work
requires you as a teacher to choose
whether teams have the same ability
level
and all of this including your own
thinking your own interaction improves
the paragraph if you look back at the
beginning of the paragraph to the final
output you can see that you in the loop
guiding the AI you being in charge and
giving a direction vastly improves the
work
[Music]
sometimes the AI can get into a loop you
may need to clear the memory by hitting
for instance in bing on new topic where
the broom is and just start again each
time you prompt the AI it'll give you a
different output and so you have to take
the lead thank you
so because you have to take the lead
that means you have to do many different
kinds of tasks that aren't normally part
of writing not only are you thinking
about whether the writing is good or bad
but you're also kind of acting as an
editor you're selecting what work you
like you're figuring out whether it's
hey in the right direction you're even
instructing the AI like a teacher which
is part of our teachers are often very
good at working with AI and prompting it
to do things so
an important thing to note about all
this is the AI will give you different
answers every time there's Randomness
built into all of these systems and so
when you give it one prompt you may get
different outputs from different systems
at different times or even the same
system in different ways it's something
you actually take advantage of so you
could say something like give me five
examples of a particular paragraph and
it will give you five different examples
and you can pick the one that you like
you could tell them doing very different
styles and get very different outcomes
but sometimes you'll have to hit refresh
clear the memory on the system and try
again so it's about multiple efforts
multiple attempts to try the same prompt
multiple experiments with you giving
feedback to get a prompt response that
you like so prompting becomes more art
than science which brings us back to the
point of experience this is not magic it
is about practicing until you get good
at this it's about trying the AI for the
tasks that you want to use it for it's
about treating it a bit like a human
again even though it's not a human and
giving it feedback and instructions
about what you want to see have happen
in the next set of videos we're going to
dive into how to use this in a classroom
both as a teacher and as a student
[Music]
5.0 / 5 (0 votes)