0% found this document useful (0 votes)
22 views6 pages

2.1 GAI002-Introduction To Prompts

-Introduction to Prompts

Uploaded by

Pancresio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views6 pages

2.1 GAI002-Introduction To Prompts

-Introduction to Prompts

Uploaded by

Pancresio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

INTRODUCTION TO

PROMPTS
Genie of Generative AI…
A prompt is a structured input given to a language model to
guide its response. It serves as the instruction for the
language model, influencing the nature and content of the
generated output.

Content

WHAT IS A
PROMPT? PROMPT

Context
• CONTEXT • ROLE

Providing Assigning the AI


background of a with desired
situation attributes

ANATOMY OF
E.g. Designated
E.g. Journalism
Audience of the
Expert, Poet,
desired output.
Quantum Physicist
Tone of the output
etc.
etc.

Instructing the AI
to perform the
task

E,g. Write a Poem,


Defining the
desired structure
of an output

E.g. Paragraph,
A PROMPT
Create a code etc. Step by step etc.
• ACTION • OUTPUT
ANATOMY OF A PROMPT CONTD.
CONTEXT

ACTION
ROLE

OUTPUT
TYPES OF PROMPTS
❑ Direct Prompts
❑ Direct prompts request straightforward information or completion
without ambiguity.
❑ Example: "Complete the sentence: 'The capital of Japan is ___.'"

❑ Inferential Prompts
❑ Inferential prompts encourage the language model to make educated
guesses or draw conclusions.
❑ Example: "What might happen if you leave an ice cream cone in the
sun?"
❑ Conditional Prompts
❑ Conditional prompts set specific conditions or constraints for the
language model's response.
❑ Example: "Translate the following sentence into French, using formal
language: 'Hello, how are you?'"
❑ Multimodal Prompts
❑ Multimodal prompts combine text with other types of input like images
or audio to guide the language model.
❑ Example: "Describe the emotions of the person in the image using a few
sentences."
❑ Zero-Shot Prompting
❑ Zero-shot prompting requires no specific training on a task. The model
uses its pre-existing knowledge to respond.
❑ Example: Instructing the model with: "Translate the following English text
to Spanish: 'Good morning.'"
❑ Few-Shot Prompting
❑ Few-shot prompting involves minimal training on a task. The model learns
from a few examples before responding.
❑ Example: Providing a couple of sample questions and answers, then

PROMPTING asking: "Answer the following question: 'What's the capital of France?'"
❑ Role-Based Prompting

APPROACHES ❑ Role-based prompts guide the model to assume a specific role or


perspective for generating responses.
❑ Example: Prompting the model to write as a poet: "Compose a short
poem about the beauty of nature."
❑ Fine-Tuning Prompting
❑ Fine-tuning involves training the model on task-specific data to enhance
its performance in a particular domain.
❑ Example: Adapting a general language model to become an efficient
customer support chatbot for a specific company.

You might also like