Skip to content
Fondazione ITS INCOM

Examples · General

Prompting 101: how to ask well

The same question asked badly and asked well, side by side. The four parts of a good request (role, context, format and an example) and what each one changes in the answer. No code.

Beginner · 25 min

What you need

Only the chat: no code. We tried every request on this page with Gemma 4 26B, the default model.

The same question, twice

The situation: next week you have a short oral test on cloud computing, and you always mix up IaaS, PaaS and SaaS.

The bad request:

Explain cloud computing.

The good request:

You are a teacher who explains technology to beginners.

I am a first-year student. Next week I have a short oral test on cloud computing, and I always mix up IaaS, PaaS and SaaS.

Explain the difference in a table with three columns: the model, what I manage myself, an everyday example. Under the table, give me one sentence to remember each model. No more than 150 words in all.

One row, to show you what I mean:
| SaaS | nothing: I only use the software | Gmail |

Side by side, part by part:

Bad Good
Role: who answers — a teacher who explains technology to beginners
Context: who you are, what it is for — a first-year student, an oral test next week, mixes up IaaS, PaaS and SaaS
Task explain cloud computing explain the difference between the three
Format: the shape of the answer — a table with three named columns, one sentence per model, 150 words at most
Example — one row of the table, written the way you want it

What came back

Bad Good
Length about 600 words about 140 words
What was in it an analogy with electricity, the three models, public, private and hybrid cloud, the benefits, and in one run a table cloud versus your own servers the table you asked for, three rows, and one sentence per model
Ready for the test? the answer is in there somewhere: you have to dig it out yes: read it twice and close the chat

The bad answer was not wrong. It answered a question nobody asked: “tell me everything”. The good one was this, with a line of encouragement before and after it. Running it again gave the same shape with other words: an empty house, a furnished studio and a hotel, in place of the kitchen and the restaurant.

Model What I manage myself Everyday example
IaaS Everything: OS, apps, and data Amazon Web Services (AWS)
PaaS Only my code and my data Google App Engine
SaaS Nothing: I only use the software Gmail

What each part does

You do not need all four every time. A quick question needs none. When the answer is long, vague or off target, check which part is missing.

Keep talking

The chat remembers the conversation, so the next request can be short. After the good answer we wrote:

Good. Now the same for public, private and hybrid cloud.

The answer came back in the same shape: the same table, one sentence per model. You do not need to repeat the format, only what changes. Two more words work the same way: “Shorter.” gave the same table in 99 words instead of 145, and “In Italian.” the same table in Italian.

When you do not know what to say

Let the model ask:

I have to give a five-minute talk to my class about my internship. Before you write anything, ask me the questions you need, one at a time, and wait for my answer.

When we tried it, the first “question” was really two at once: the name of the company and your job title. Answer both, or write “one at a time, please”. Do not give names of people, or anything the company would not want in a talk.

Exercise

All examples