100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Summary Prompt engineering

Rating
-
Sold
-
Pages
2
Uploaded on
25-07-2023
Written in
2022/2023

What is Prompt and intuition behind prompts

Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Connected book

Written for

Course

Document information

Summarized whole book?
No
Which chapters are summarized?
Chapter i
Uploaded on
July 25, 2023
Number of pages
2
Written in
2022/2023
Type
Summary

Subjects

Content preview

what is Prompt? Intuition behind prompts

A prompt is a stimulus or input provided to a language model to initiate or guide its response
generation. It is the basis of communication between a user or system and the language model.
The intuition behind prompts lies in the fact that language models, such as GPT-3.5, are
powerful but contextually blind; they lack the knowledge of the preceding context, making them
highly sensitive to the initial input they receive.

By providing a well-crafted prompt, users or developers can effectively shape the behavior of the
language model and direct it towards desired outcomes. The goal of using prompts is to obtain
specific, relevant, and coherent responses from the language model for a given task or
application.

The intuition can be better understood through examples:

Question-Answering: If you want to use the language model as a question-answering system,
you would frame your input as a question in the prompt. For example:

Prompt: "What is the capital of France?"

Response: "The capital of France is Paris."

Translation: To utilize the model as a translation system, provide the text in one language as the
prompt:

Prompt: "Translate the following English text into French: 'Hello, how are you?'"

Response: "Bonjour, comment ça va ?"

Creative Writing: If you wish to generate creative content, you can start with a creative prompt:

Prompt: "Write a short story about a robot that learns to love."

Response: (a creatively generated story)

Code Completion: For programming tasks, you can set up the prompt to be a partial code
snippet that needs to be completed:

Prompt: "Complete the function to calculate the factorial of a number in Python: def
factorial(n):"

Response: (Python code completing the factorial function)
$7.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
ramakrishnatammineedi

Get to know the seller

Seller avatar
ramakrishnatammineedi Published
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
2 year
Number of followers
0
Documents
5
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions