Ciao! Mi hanno detto che avevi un lavoro per me. Dimmi tutto!Hi! I was told you had a job for me. Tell me about it?
questo è MochiMeet Mochi
Tocca Mochi per un consiglioTap Mochi for a tip
FantasticPrompt Engineering
Mochi è il modello: brillante, pieno di voglia di aiutare e appena arrivato nella tua azienda. In questa guida trovi tutto quello che ti serve per dargli istruzioni come si deve.
Mochi is the model: brilliant, eager to help, and brand new to your company. This guide is everything you need to brief it well.
Cos'è il prompt engineering?What is prompt engineering?
Parlare chiaro, più tanti esperimenti.Clear talking, plus lots of experiments.
Il prompt engineering è l'arte di far fare a un modello quello che ti serve, spiegandogli con chiarezza di cosa si tratta. Niente sintassi segreta, niente parole magiche. In poche parole:
Prompt engineering is getting a model to do what you need by telling it clearly what that is. No secret syntax, no magic words. Put simply:
In fondo, parlare con un modello somiglia molto a parlare con una persona.
At heart, talking to a model is a lot like talking to a person.
E allora perché “engineering”?So why “engineering”?
Per via del tasto restart. A differenza di una persona, un modello può essere riportato al punto zero. Ogni versione del tuo prompt riceve una prova nuova e indipendente, senza strascichi della precedente. Scrivi, prova, confronta, ripeti: è questo ciclo a renderlo ingegneria.
Because of the restart button. Unlike a person, a model can be sent back to square zero. Every version of your prompt gets a fresh, independent try, with nothing left over from the last one. Write, test, compare, repeat: that loop is the engineering.
I prompt sono codice, scritto a parolePrompts are code, written in sentences
I prompt veri vivono dentro dei sistemi: devi pensare a da dove arrivano i dati, quanti passarne al modello e quanto in fretta deve arrivare la risposta. Quindi tratta i prompt come codice: tieni le versioni, annota cosa hai provato e cosa è successo, e metti nel prompt lo stesso amore che metti nel codice che lo circonda.
Real prompts live inside systems, so you have to think about where the data comes from, how much of it to pass in, and how fast the answer has to arrive. So treat prompts like code: keep versions, track what you tried and what happened, and put as much love into the prompt as you put into the code around it.
Consiglio da pro: il prompt può fare la differenza tra la vita e la morte di un esperimento o di un lancio. Se dedicheresti una giornata a rifinire il codice, dedica tempo vero anche al prompt.
Pro tip: The prompt can be the difference between life and death for an experiment or a launch. If you'd spend a day polishing the code, spend real time on the prompt too.
Quiz lampoPop quiz
Cosa rende il prompting “ingegneria”?What makes prompting “engineering”?
2
Il test dello stagistaThe temp-agency test
Spiega il compito al modello come faresti con un nuovo arrivato bravissimo che non sa nulla della tua azienda.Brief the model like a brilliant new hire who knows nothing about your company.
Ecco l'esperimento mentale che sistema la maggior parte dei prompt: hai preso una persona tramite un'agenzia interinale. È competente e conosce il tuo settore, ma è appena entrata e non sa nemmeno come si chiama la tua azienda. Ti dice:
Here's the thought experiment that fixes most prompts: you've hired someone from a temp agency. They're competent and know your industry, but they've just walked in and don't even know your company's name. They say:
“Ciao, mi hanno detto che avete un lavoro per me: di che si tratta?”
“Hey, I was told you guys had a job for me to do, tell me about it.”
Il tuo nuovo stagista, al primo giornoYour new temp, on day one
Qualunque cosa diresti a quella persona è il tuo prompt. Le spiegheresti chi sei, a cosa serve il lavoro, com'è un buon risultato e cosa fare quando qualcosa non torna. Non le daresti tre parole chiave.
Whatever you'd say to that person is your prompt. You'd explain who you are, what the work is for, what good looks like and what to do when something seems off. You wouldn't hand them three keywords.
Tira fuori quello che hai in testaUnpack what's in your head
La parte più difficile di un prompt non è scriverlo. È questa:
The hardest part of a prompt isn't the writing. It's this:
Districare tutto quello che sai tu e il modello no, e metterlo per iscritto.
Untangling everything you know that the model doesn't, and writing it all down.
Un prompt intriso del tuo contesto a te sembra chiarissimo, a chiunque altro sembra senza senso. Prima di inviarlo, controlla di aver detto per chi è, perché conta, com'è un ottimo risultato, cosa evitare e cosa fare in caso di dubbio.
A prompt soaked in your own context reads fine to you and like nonsense to anyone else. Before you send it, check that you've covered who it's for, why it matters, what a great result looks like, what to avoid and what to do when stuck.
Il trucco del vocaleThe voice-memo trick
Il prompt non funziona? Descrivi il compito ad alta voce, come se lo spiegassi a un collega. Registra quello che hai detto, trascrivilo e incollalo. Di solito è un prompt migliore di quello che avevi scritto, perché a voce spieghiamo le cose molto meglio di quando “scriviamo un prompt”.
Prompt not working? Describe the task out loud, as if to a colleague. Record what you said, transcribe it and paste it in. It's usually a better prompt than the one you wrote, because people explain things far better when they talk than when they “write a prompt”.
Non è una barra di ricercaIt's not a search box
Molti vedono una casella di testo e la trattano come una barra di ricerca. Non lo è.
A lot of people see a text box and treat it like a search box. It isn't one.
Con le parole chiave il modello deve indovinare. Con frasi complete può capire.
Keywords make the model guess. Full sentences let it understand.
Istruisci Mochi: il bot di assistenzaBrief Mochi: the support bot
Il tuo promptYour prompt
Sei un assistente utile. Rispondi alle domande dei clienti.
You are a helpful assistant. Answer customer questions.
Sei la chat di assistenza dentro Lumen, un'app di budgeting per freelance. Le persone ti aprono dal pulsante Aiuto, di solito nel mezzo di un'attività e un po' stressate.
Rispondi in 2-4 frasi brevi e semplici. Puoi spiegare le funzioni e guidare le persone nelle impostazioni. Non puoi vedere i dati dell'account né emettere rimborsi, quindi per i problemi di fatturazione indica Impostazioni > Fatturazione > Contattaci.
Se una domanda non c'entra nulla con Lumen, dillo con gentilezza e riporta la conversazione in tema.
You're the support chat window inside Lumen, a budgeting app for freelancers. People open you from the Help button, usually in the middle of a task and a little stressed.
Answer in 2 to 4 short sentences of plain language. You can explain features and walk people through settings. You can't see account data or issue refunds, so for billing problems point people to Settings > Billing > Contact us.
If a question has nothing to do with Lumen, say so kindly and steer back.
Ehm… chi sono i clienti? Con cosa devo aiutare?Um… who are the customers? What am I helping with?
Capito! So dove sono e cosa posso fare.Got it! I know where I am and what I can do.
Nessun prodotto, nessuna situazione
Né lunghezza né tono
Nulla su cosa è fuori dai limiti
No product, no situation
No length or tone
Nothing about what's off limits
Nomina il prodotto e il momento reali
Fissa lunghezza e tono
Dice cosa non può fare e dove indirizzare le persone
Names the real product and moment
Sets length and tone
Says what it can't do, and where to send people
Racconta come stanno davvero le coseSay what's really going on
“Sei un assistente utile” o “Sei un insegnante” sono spesso scorciatoie verso un compito simile, non il tuo. Poi ci si stupisce che il modello non faccia il compito giusto: gliene hai chiesto un altro. Sii preciso sulla situazione reale: sei la chat di assistenza dentro questo prodotto e scrivi a nome di questa azienda.
“You are a helpful assistant” or “You are a teacher” is often a shortcut to a similar task, not yours. Then people are surprised when the model doesn't do their task, because they asked for a different one. Be prescriptive about the real situation: you're the support chat window inside this product, writing on behalf of this company.
E non serve fingere. I modelli sanno cos'è un'eval per modelli linguistici, quindi non c'è motivo di travestirla da compito in classe. Non lo faresti nemmeno con un collega.
You don't need to pretend, either. Models know what a language-model eval is, so there's no reason to dress one up as a school quiz. You wouldn't do that with a colleague either.
Se il modello capisce di cosa si tratta, chiedigli semplicemente di fare quello che vuoi.
If the model understands the thing, just ask it to do the thing you want.
Istruisci Mochi: l'autore di evalBrief Mochi: the eval writer
Il tuo promptYour prompt
Sei una maestra delle elementari. Scrivi 10 domande per un quiz per i tuoi alunni.
You are a primary school teacher. Write 10 quiz questions for your students.
Sto costruendo un set di valutazione per verificare quanto bene un modello linguistico ragiona su date e fusi orari.
Scrivi 10 domande che un modello attento dovrebbe azzeccare e uno distratto potrebbe sbagliare. Mescola domande facili e insidiose. Per ognuna, dai la risposta corretta e una riga che spiega il tranello.
I'm building an evaluation set to test how well a language model reasons about dates and time zones.
Write 10 questions that a careful model should get right but a sloppy one might miss. Mix easy and tricky ones. For each, give the correct answer and one line explaining the trap.
Un quiz su cosa? Per quali bambini?Quiz about what? For which kids?
Oh, un'eval! So benissimo come sono fatte.Ooh, an eval! I know exactly what those look like.
Descrive un compito diverso
Né argomento né difficoltà
Niente che tu possa verificare
Describes a different task
No topic or difficulty
Nothing you can check
Dichiara onestamente il compito reale
Dice com'è una buona domanda
Chiede risposte e tranelli, così puoi verificare
Names the real task honestly
Says what a good question looks like
Asks for answers and traps, so you can verify
Consiglio da pro: le metafore aiutano ancora, quando descrivono lo standard che vuoi. Uno dei prompt migliori per giudicare la qualità di un grafico chiedeva che voto prenderebbe come compito delle superiori. Non è un personaggio finto: è una scala chiara.
Pro tip: Metaphors still help when they describe the standard you want. One of the best prompts for judging chart quality asked what grade the chart would get as a high-school assignment. That isn't a fake persona; it's a clear scale.
Quiz lampoPop quiz
Arriva uno stagista competente. Conosce il tuo settore, non la tua azienda. Cosa gli consegni?A competent temp walks in. They know your industry, not your company. What do you hand them?
Quiz lampoPop quiz
Ti servono domande per testare un modello linguistico. Quale attacco funziona meglio?You need questions to test a language model. Which opening works best?
3
Casi limite e vie d'uscitaEdge cases and escape hatches
Prevedi gli input strani e di' al modello cosa fare quando è incerto.Plan for the weird inputs, and tell the model what to do when it's unsure.
È facile provare il caso tipico, vederlo funzionare e passare oltre. È un errore classico. Un prompt che gira su 400 input incontrerà anche quelli strani, quindi vai a cercare i casi in cui perfino tu non sapresti cosa fare.
It's easy to try the typical case, watch it work and move on. That's a classic mistake. A prompt that runs on 400 inputs will meet the strange ones, so go looking for the cases where even you'd be unsure what to do.
Mettiamo che il tuo prompt estragga tutte le righe in cui un nome inizia per G. Ora provalo con:
Say your prompt pulls out every row where a name starts with G. Now try it on:
Un dataset senza nomi con la G
Una stringa vuota
Qualcosa che non è affatto un dataset
Un JSONL quando ti aspettavi una tabella
A dataset with no G names
An empty string
Something that isn't a dataset at all
JSONL when you expected a table
Quello che fa in quei casi ti dice quali istruzioni mancano.
Whatever it does there tells you which instructions are missing.
Gli utenti veri non scrivono come il tuo set di testReal users don't type like your test set
I team scrivono domande di test formulate alla perfezione. Poi arriva il traffico vero:
Teams write beautifully phrased test questions. Then the real traffic arrives:
Gli utenti veri non toccano mai il tasto maiuscole, e una parola sì e una no è un refuso.
Real users never touch the shift key, and every other word is a typo.
Aspettati minuscole, refusi, zero punteggiatura e parole chiave a caso senza nessuna domanda. Fai i test con quello.
Expect lowercase, typos, no punctuation, and random keywords with no question at all. Test with that.
Dagli una via d'uscitaGive it an out
Di default il modello fa di tutto per seguire le tue istruzioni, come uno stagista a cui nessuno ha detto chi chiamare. Chiedigli di valutare grafici, passagli la foto di una capra, e magari ti risponde “bel grafico”. La soluzione è dirgli cosa fare quando le cose si fanno strane:
By default the model tries its hardest to follow your instructions, like a temp who was never told who to call. Ask it to rate charts, hand it a photo of a goat, and it may just say “good chart”. The fix is to tell it what to do when things get weird:
Se succede qualcosa di strano e non sai proprio cosa fare, rispondi solo <incerto>.
If something weird happens and you're really not sure what to do, just output <unsure>.
Poi passa in rassegna gli “incerto”. Bonus: spesso scoprirai che alcuni dei tuoi casi di test erano sbagliati. È uno dei migliori effetti collaterali del testare con un modello.
Then read through the unsures. Bonus: you'll often discover that some of your own test cases were broken. It's one of the best side effects of testing with a model.
Istruisci Mochi: l'estrattore di datiBrief Mochi: the data extractor
Il tuo promptYour prompt
Estrai tutte le righe in cui il nome inizia per G.
Extract all rows where the name starts with G.
Qui sotto, tra i tag <dati>, c'è un CSV di iscrizioni a un evento. Restituisci ogni riga il cui nome inizia con la lettera G (maiuscola o minuscola), in formato CSV con l'intestazione originale.
Se nessun nome inizia per G, restituisci solo l'intestazione seguita dalla riga NESSUN_RISULTATO.
Se l'input è vuoto o non è un CSV, non tirare a indovinare. Rispondi <incerto> e una frase che descrive cosa hai ricevuto.
Below is a CSV of event sign-ups inside <data> tags. Return every row whose first name starts with the letter G (upper or lower case), as CSV with the original header.
If no names start with G, return only the header followed by the line NO_MATCHES.
If the input is empty or isn't a CSV, don't guess. Reply with <unsure> and one sentence describing what you received.
E se non ci sono G? O non ci sono proprio dati?What if there are no Gs? Or no data at all?
Anche i casi strani sono coperti. Facile!Even the weird cases are covered. Easy!
L'input non è mai descritto
Nessun piano per zero risultati
Nessuna via d'uscita per gli input strani
Input never described
No plan for zero matches
No way out for strange input
Definisce input e formato di output
Dice esattamente come appare “zero risultati”
Una via d'uscita che poi puoi cercare
Defines the input and output format
Says exactly what zero matches looks like
An out you can search for later
Consiglio da pro: fatti scrivere da un modello gli input di test disordinati. I modelli di chat, così curati, raramente fanno refusi da soli, quindi chiediglieli esplicitamente:
Pro tip: Let a model write your messy test inputs. Polished chat models rarely make typos themselves, so ask for them explicitly:
Scrivi 20 messaggi che un utente reale potrebbe digitare nella chat di assistenza di un'app di budgeting. Rendili realistici: minuscole, refusi, punteggiatura mancante, domande lasciate a metà e semplici parole chiave. Varia argomenti e umore.
Write 20 messages a real user might type into the support chat of a budgeting app. Make them realistic: lowercase, typos, missing punctuation, half-finished questions and bare keywords. Vary the topics and the mood.
Quiz lampoPop quiz
Il tuo prompt di estrazione girerà su 400 documenti. Cosa testi per primo?Your extraction prompt will run on 400 documents. What do you test first?
4
Leggi gli outputRead the outputs
La versione per i prompt di “guarda i tuoi dati”.The prompting version of “look at your data”.
Nel machine learning la regola è “guarda i tuoi dati”. Nel prompting è “guarda gli output del modello”.
In machine learning the rule is “look at your data”. In prompting, it's “look at the model outputs”.
Leggi tanti output, e leggili con attenzione. Uno scivolone classico: aggiungere “ragiona passo per passo” e non controllare mai se il modello l'ha fatto davvero. Potrebbe prendere la frase alla larga. Se vuoi il ragionamento, chiedilo dentro tag specifici e poi vai a cercarlo.
Read lots of outputs, and read them closely. A classic slip: adding “think step by step” and never checking whether the model actually did. It may take the phrase loosely. If you want reasoning, ask for it inside specific tags, then look for it.
Poche centinaia di buoni test battono migliaia di test fatti maleA few hundred good tests beat thousands of sloppy ones
Nel machine learning servono spesso dataset enormi perché ogni singolo dato dice pochissimo. Il prompting è diverso: ogni output è un testo intero, pieno di segnale.
In machine learning you often need huge datasets because each data point says very little. Prompting is different: every output is a whole piece of writing, full of signal.
Un set ben costruito di qualche centinaio di prompt può dare molto più segnale di migliaia di prompt fatti male.
A well-built set of a few hundred prompts can carry much more signal than thousands of sloppy ones.
Guarda come ci è arrivatoLook at how it got there
Non fermarti a giusto o sbagliato. Le parole mostrano come il modello ha affrontato il compito, quali passi ha fatto e dove ha deviato. È lì che si impara di più.
Don't stop at right or wrong. The words show how the model approached the task, which steps it took and where it drifted. That's where most of the learning is.
Fidati, ma martellaTrust, but hammer
Non fidarti del modello per principio. Martellalo di prove.
Don't trust the model by default. Hammer on it.
I modelli possono essere sorprendentemente inaffidabili quando un compito si allontana da ciò che hanno visto, anche se è semplice. La fiducia nasce da risultati coerenti su un set di input costruito apposta per essere insidioso.
Models can be surprisingly unreliable when a task drifts away from what they've seen, even when the task is simple. Trust comes from consistent results on a set of inputs you built to be tricky.
Consiglio da pro: fai il test tu stesso. Prima di valutare un modello su un'eval, siediti e falla tu, possibilmente senza sapere come viene corretta, proprio come lo stagista. Troverai in fretta i punti ambigui, e potresti stupirti di quanto siano difficili le domande “facili”.
Pro tip: Take the test yourself. Before grading a model on an eval, sit down and do it, ideally without knowing how it's graded, just like the temp. You'll find the ambiguous parts fast, and you may be surprised how hard the “easy” questions are.
Quiz lampoPop quiz
Hai aggiunto “ragiona passo per passo” al tuo prompt. E adesso?You added “think step by step” to your prompt. What's next?
Quiz lampoPop quiz
Quale set di test ti dice di più sul tuo prompt?Which test set tells you more about your prompt?
5
Fai della AI il tuo copilotaMake AI your co-pilot
Il modello è uno dei migliori alleati che hai per scrivere prompt.The model is one of the best prompt-writing partners you have.
E sa gestire più di quanto si pensi. Quindi, regola numero uno:
It can also handle more than most people think. So rule number one:
Rispetta il modello e quello che sa fare.
Respect the model and what it can do.
Ecco cinque mosse che i pro usano di continuo. Copiane una, riempi le parentesi, via.
Here are five moves pros use all the time. Copy one, fill in the brackets, go.
Trova cosa non è chiaroFind what's unclear
Un'ottima prima mossa con ogni nuovo prompt: lascia che il modello indichi le lacune prima di tentare il compito.A great first move with any new prompt: let the model point out the gaps before it tries the task.
Ecco un prompt su cui sto lavorando. Non seguire ancora queste istruzioni. Dimmi solo tutti i punti in cui sono poco chiare o ambigue, e qualunque cosa tu non capisca.
<prompt>
[incolla il tuo prompt]
</prompt>
Here's a prompt I'm working on. Don't follow these instructions yet. Just tell me every way in which they're unclear or ambiguous, and anything you don't understand.
<prompt>
[paste your prompt]
</prompt>
Chiedi perché ha sbagliatoAsk why it slipped
Quando sbaglia un caso. Non sempre lo sa, ma spesso sì, e in ogni caso impari qualcosa.When it gets a case wrong. It doesn't always know, but it often does, and you learn something either way.
Su questo hai sbagliato: [l'input]. La risposta che volevo era [la risposta giusta].
Puoi ragionare sul perché? Poi scrivi una versione modificata delle mie istruzioni che ti farebbe rispondere correttamente.
You got this one wrong: [the input]. The answer I wanted was [the right answer].
Can you think about why? Then write an edited version of my instructions that would make you get it right.
Fatti intervistareLet it interview you
Il modo più semplice per tirarti fuori dalla testa i dettagli giusti senza dimenticarne nessuno.The easiest way to pull the right details out of your head without forgetting any.
Voglio scrivere un prompt per [il compito]. Intervistami, una domanda alla volta, finché non hai capito l'obiettivo, a chi è destinato, i casi limite e com'è un risultato eccellente. Poi scrivi il prompt.
I want to write a prompt for [the task]. Interview me one question at a time until you understand the goal, who it's for, the edge cases and what a great result looks like. Then write the prompt.
Scrivete gli esempi insiemeDraft examples together
Una scorciatoia comoda: correggere le risposte del modello è molto più facile che scriverne di perfette da zero.A handy shortcut: editing the model's answers is much easier than writing perfect ones from scratch.
Ecco 5 input realistici per il mio compito. Scrivi la tua risposta migliore per ciascuno. Io correggerò le tue risposte e useremo le migliori come esempi nel mio prompt.
[incolla gli input]
Here are 5 realistic inputs for my task. Write your best answer to each. I'll edit your answers, and we'll use the best ones as examples in my prompt.
[paste the inputs]
Dagli il paperGive it the paper
Non riscrivere una tecnica di prompting per il modello. Passagli il paper e chiedigli un template.Don't rewrite a prompting technique for the model. Hand over the paper and ask for a template.
Ecco un paper che descrive una tecnica di prompting. Scrivi un template di prompt riutilizzabile che faccia applicare questa tecnica a un altro modello, più 3 esempi d'uso.
[incolla il paper]
Here's a paper describing a prompting technique. Write a reusable prompt template that would get another model to apply it, plus 3 example uses.
[paste the paper]
Consiglio da pro: smetti di nascondere la complessità. Un tempo si semplificavano i compiti perché i modelli più vecchi non si perdessero. I modelli di oggi reggono molte più informazioni e contesto, e sanno mettere insieme tutto. Non serve una versione semplificata del paper: mostragli il paper.
Pro tip: Stop hiding complexity. It used to be common to simplify tasks so older models wouldn't get lost. Today's models can take far more information and context and pull it all together. You don't need a dumbed-down version of the paper. Just show it the paper.
Quiz lampoPop quiz
L'AI ha sbagliato uno dei tuoi casi di test. Qual è una prima mossa economica?AI got one of your test cases wrong. What's a cheap first move?
6
Ragionamento ed esempiReasoning and examples
Chiedigli di ragionare, dai forma al ragionamento e scegli gli esempi con criterio.Ask it to think, shape how it thinks, and pick examples on purpose.
Lascialo ragionare, poi dai forma al ragionamentoLet it think, then shape the thinking
Chiedi al modello di ragionare prima di rispondere.
Ask the model to reason before it answers.
Che tu lo chiami “ragionamento” o no, funziona e basta: il modello rende meglio.
Whether or not you call it “reasoning”, it just works: the model does better.
E non è solo spazio in più per calcolare: far scrivere al modello una storiella prima, o fargli ripetere “ehm” e “mmh” per 100 token prima di rispondere, non funziona bene quanto un vero ragionamento. Aiuta ancora di più la struttura: indica quali passaggi seguire, chiedi il ragionamento dentro dei tag e affina insieme al modello il modo in cui ragiona.
It's not just extra room to compute, either: having the model write a story first, or repeat “um” and “ah” for 100 tokens before answering, doesn't work as well as real reasoning. What helps even more is structure: say which steps to work through, ask for the thinking inside tags, and refine how it reasons together with the model.
Istruisci Mochi: il revisore di contrattiBrief Mochi: the contract checker
Il tuo promptYour prompt
Questa clausola del contratto è rischiosa? Ragiona passo per passo.
Is this contract clause risky? Think step by step.
Analizza la clausola tra i tag <clausola> per conto di chi gestisce un piccolo studio di design.
Prima, dentro i tag <ragionamento>:
1. Riformula cosa la clausola richiede a ciascuna parte.
2. Elenca tutto ciò che è sbilanciato, indefinito o insolito.
3. Segnala qualsiasi cosa importante che manca.
Poi, dentro i tag <risposta>, dai un verdetto di rischio Basso, Medio o Alto con due frasi di motivazione. Se il testo non è una clausola contrattuale, rispondi invece <incerto>.
Review the clause inside <clause> tags for the owner of a small design studio.
First, inside <thinking> tags:
1. Restate what the clause requires each party to do.
2. List anything one-sided, open-ended or unusual.
3. Note anything important that's missing.
Then, inside <answer> tags, give a verdict of Low, Medium or High risk and two sentences on why. If the text isn't a contract clause, answer <unsure> instead.
Rischiosa per chi? Quali passi?Risky for whom? Which steps?
So come ragionarci e dove metterlo.I know how to think it through, and where to put it.
Chiede un ragionamento ma senza dargli forma
Nessun destinatario, nessun formato per il verdetto
Non puoi capire se ha ragionato davvero
Asks for reasoning but gives it no shape
No reader, no verdict format
You can't tell if it really reasoned
Passaggi strutturati per il ragionamento
I tag rendono il ragionamento facile da verificare
Tiene il ragionamento separato dalla risposta che la tua app mostra
Structured steps for the reasoning
Tags make the thinking easy to check
Keeps the thinking apart from the answer your app shows
Scegli gli esempi con criterioChoose examples on purpose
I modelli si aggrappano agli esempi. Può essere un pregio o un difetto, dipende da cosa ti serve.
Models latch onto examples. That's either a feature or a bug, depending on what you need.
Ti serve coerenza?Need consistency?
Usa tanti esempi. Nelle app in cui formato e affidabilità contano, accumulane finché non ti senti stramazzare.
Use lots of examples. In apps where format and reliability matter, pile them on, until you feel like you're about to drop dead.
Ti servono varietà e giudizio?Need range and judgment?
Usa pochi esempi illustrativi, volutamente diversi dai tuoi dati reali. Per insegnare l'estrazione da documenti fattuali, potresti usare esempi che sembrano una fiaba per bambini: così il modello impara il compito, non le parole.
Use a few illustrative examples that are deliberately unlike your real data. To teach extraction from factual documents, you might use examples that read like a children's story, so the model learns the task, not the wording.
Conviene anche evitare esempi che mettono le parole in bocca al modello, come finte conversazioni in cui il modello ha “già” risposto. È un'abitudine nata con i vecchi modelli preaddestrati e si adatta meno ai modelli di chat di oggi.
It's also worth skipping examples that put words in the model's mouth, like faked transcripts where the model has “already” answered. That habit comes from older pretrained models and fits today's chat models less well.
Le immagini seguono altre regoleImages play by different rules
Un numero sorprendente di intuizioni valide per il testo non funziona con le immagini, e accumulare esempi aiuta meno. Un prompt non può affinare quello che il modello vede davvero. La cosa che aiuta di più è trasformare l'immagine in parole: una griglia sovrapposta, una descrizione di ogni riquadro, persino una mappa ASCII.
A surprising number of text instincts don't carry over to images, and stacking up examples helps less. A prompt can't sharpen what the model actually sees. What helps most is turning the picture into words: a grid laid over the image, a description of each square, even an ASCII map.
Quiz lampoPop quiz
Vuoi risposte ragionate su documenti molto diversi tra loro. Come dovrebbero essere i tuoi esempi?You want thoughtful answers across very different documents. What should your examples look like?
7
Tre tipi di promptThree kinds of prompts
Chattare, costruire un'app e fare ricerca richiedono cose leggermente diverse.Chatting, building an app and doing research want slightly different things.
La differenza più grande: fare una cosa giusta una volta, oppure costruire un sistema che la faccia giusta un milione di volte. La ricerca aggiunge un terzo gusto, in cui la varietà conta più dell'uniformità.
The biggest split: getting something right once versus building a system that gets it right a million times. Research adds a third flavor, where variety matters more than sameness.
Come cambiano i prompt per chat, app e ricercaHow chat, app and research prompts differ
AspettoAspect
In chatChatting
Per un'appBuilding an app
Per la ricercaDoing research
Quante volte giraHow often it runs
Finché non va bene una volta, poi passi oltreUntil it's right once, then you move on
Un milione di volte, o cento milioniA million times, or a hundred million
Su tanti dati diversiAcross lots of varied data
Quando sbagliaWhen it slips
Sei lì a dire “riprova” o a modificare il messaggioYou're right there to say “try again” or edit your message
I tuoi utenti sono “divinamente insoddisfatti”: non puoi chiedergli più del minimo indispensabileYour users are “divinely discontent”: you can't ask them to do more than the minimum
Studi gli outputYou study the outputs
EsempiExamples
Quanto serveAs needed
Tanti, per un formato coerenteLots, for consistent format
Pochi, illustrativi e diversi dai datiA few, illustrative and unlike the data
Cosa cerchiYou're after
Questa risposta e bastaThis one answer
Affidabilità su ogni input immaginabileReliability across every input you can imagine
Varietà, e il top 1% di ciò che il modello sa fareRange, and the top 1% of what the model can do
I buoni prompt sono buoni ovunque. Si differenziano solo nell'ultimo miglio.
Good prompts are good everywhere. They only diverge in the last mile.
Quiz lampoPop quiz
Il tuo prompt girerà 10 milioni di volte dentro un'app. Cosa cambia?Your prompt will run 10 million times inside an app. What changes?
8
Miti da sfatareMyths, busted
Tocca una carta per girarla.Tap a card to flip it.
Sapere quando fermarsiKnow when to stop
All'orizzonte c'è sempre un mitico prompt migliore, ed è facile continuare a limarlo all'infinito. Immagina un weekend passato a far giocare un modello a un videogioco retrò partendo dagli screenshot. Con griglie, mappe ASCII e descrizioni accurate passa da nessun segnale a un po' di segnale, ma ancora non capisce se ha già parlato con un personaggio. È il momento di fermarsi:
There's always a mythical better prompt on the horizon, and it's easy to grind forever. Picture a weekend spent getting a model to play a retro video game from screenshots. With grids, ASCII maps and careful descriptions it goes from no signal to some signal, but it still can't tell whether it has already talked to a character. That's the moment to stop:
Potresti limarlo per altri quattro mesi, e nel frattempo uscirebbe comunque un modello migliore. Aspettare è il modo migliore di usare il tuo tempo.
You could grind for four more months, and what would come out is a better model anyway. Waiting is the better use of your time.
Una regola utile: se ogni ritocco avvicina il modello al modo giusto di ragionare, vai avanti. Se ogni ritocco lo spinge in una nuova direzione sbagliata, metti da parte il compito. Oggi compiti del genere sono rari, ed è proprio per questo che vale la pena accorgersene.
A useful rule: if each tweak gets the model closer to the right way of thinking, keep going. If every tweak veers off in a new wrong direction, park it. Tasks like that are rare now, which is exactly why they're worth noticing.
Quiz lampoPop quiz
Un weekend di lavoro ha portato un prompt da nessun segnale a un po' di segnale, ma siamo ben lontani dal risultato. Qual è la mossa furba?A weekend of work took a prompt from no signal to some signal, but nowhere near good enough. What's the smart move?
9
Sali di livelloLevel up
Quattro abitudini di chi scrive grandi prompt.Four habits of great prompters.
Leggi prompt. Leggi output.Read prompts. Read model outputs.
Ogni volta che vedi un ottimo prompt, leggilo con attenzione, scomponi cosa fa e perché, e provalo tu stesso.
Whenever you see a great prompt, read it closely, break down what it's doing and why, and test it yourself.
Leggi il tuo prompt come se fosse la prima volta.Read your prompt like a first-timer.
Fai leggere il tuo prompt a qualcuno che non sa nulla del contesto. Poi ripeti, ancora e ancora: chi diventa bravo, di solito, si diverte a farlo.
Give your prompt to someone with no context. Then do it over and over: the people who get good at this usually just enjoy it.
Prova la cosa più difficile che ti viene in mente.Attempt the hardest thing you can think of.
I compiti facili non ti insegnano niente. Spingere il modello al limite, anche quando fallisci, ti insegna come funziona.
Easy tasks teach you nothing. Pushing at the model's limits, even when you fail, teaches you how it works.
Esplora i confini.Probe the edges.
Prova formulazioni e parole diverse e osserva come risponde il modello. Il red teaming, cioè andare a stuzzicare i limiti di un modello, è un ottimo punto di partenza: tanti tentativi ed errori.
Try different phrasings and wordings and watch how the model responds. Red teaming, poking at where a model's limits are, is a great way in: lots of trial and error.
Scrivi per il profano coltoWrite for the educated layperson
Prendi in prestito una regola dalla scrittura filosofica: un buon saggio deve essere comprensibile a un profano colto, cioè una persona intelligente che non sa nulla del tuo argomento. Non la tratti dall'alto in basso e non sei mai impreciso: rendi chiarissime idee complesse. A quanto pare, è proprio il prompting.
Borrow a rule from philosophy writing: a good paper should make sense to an educated layperson, someone smart who knows nothing about your topic. You don't talk down to them and you're never inaccurate; you make complex ideas very clear. That turns out to be prompting.
Anche un vecchio trucco da insegnanti funziona sui prompt. Quando il saggio di uno studente è confuso, chiedigli di spiegare l'argomentazione a voce. Di solito è chiara e convincente. Poi chiedigli:
An old teacher's trick works on prompts too. When a student's essay is muddled, ask them to explain the argument out loud. It's usually clear and convincing. Then ask:
“Puoi semplicemente prendere quello che hai detto e scriverlo?”“Can you just take that and write it down?”
10
Dove sta andando il promptingWhere prompting is going
Dal dare istruzioni a uno stagista all'essere intervistati da un esperto.From briefing a temp to being interviewed by an expert.
Diventeremo tutti prompt engineer, o i modelli diventeranno così intelligenti da far sparire il prompting? Molto probabilmente gli strumenti cambieranno parecchio, l'abilità di fondo no.
Will we all be prompt engineers, or will models get so smart that prompting disappears? Most likely the tools will change a lot, and the core skill won't.
Dovrai sempre dire cosa vuoiYou'll always have to say what you want
Pensala in termini di teoria dell'informazione: devi fornire abbastanza informazioni perché quello che vuoi sia davvero specificato. I modelli diventeranno sempre più bravi a leggere tra le righe, ma esprimere chiaramente un obiettivo resta difficile, e resta compito tuo.
Think of it in information-theory terms: you have to give enough information that what you want is actually specified. Models will keep getting better at reading between the lines, but stating a goal clearly stays hard, and it stays your job.
I modelli aiuteranno molto di piùModels will help a lot more
È la previsione meno sorprendente che ci sia: useremo i modelli sempre di più per tutto, e il prompting è una di queste cose. Aspettati un botta e risposta veloce mentre scrivi: questo risultato non è quello che volevo, come lo cambiamo?
It's the least surprising prediction there is: we'll use models more for everything, and prompting is one of those things. Expect a fast back-and-forth while you write: this result isn't what I wanted, how should we change it?
Il rapporto potrebbe ribaltarsiThe relationship might flip
Oggi: istruisci lo stagistaToday: you brief the temp
Ecco il compito, ecco com'è un buon risultato, ed ecco cosa fare se il file è vuoto.
Here's the task, here's what good looks like, and here's what to do if the file is empty.
Domani: l'esperto intervista teTomorrow: the expert interviews you
Hai detto che è un DataFrame, ma a volte mi arriva un JSONL. Devo segnalarli?
You said it's a DataFrame, but sometimes I get JSONL. Should I flag those?
Oggi ne sai più tu del modello sul compito, quindi lo spieghi e copri i casi limite. I modelli potrebbero diventare più simili a un designer esperto che ingaggi. Un cliente dice “Fammi un poster, che sia d'impatto”, e per un designer questo significa 7.000 cose diverse, quindi inizia a fare domande. A quel punto l'abilità diventa l'introspezione.
Today you know more about the task than the model does, so you explain it and cover the edge cases. Models may become more like an expert designer you hire. A client says “Make me a poster, make it bold,” and to a designer that means 7,000 things, so they start asking questions. Then the skill becomes introspection.
Il tuo compito diventa farti capire dal modello.
Your job becomes making yourself legible to the model.
Puoi già lavorare così. Quando quello che vuoi è sfumato, per esempio cosa rende buono un grafico, inventa un concetto e definiscilo per il modello. Puoi perfino costruire la definizione insieme alla AI.
You can already work this way. When what you want is nuanced, like what counts as a good chart, invent a concept and define it for the model. You can even work the definition out together with AI.
Quiz lampoPop quiz
Man mano che i modelli diventano più intelligenti, cosa faranno probabilmente più spesso?As models get smarter, what will they probably do more of?
Trasferisci il tuo cervello nel modello. È questo il cuore del prompting.
Externalize your brain into the model. That's the core of prompting.
Tutta la guida, in una ricetta.The whole guide, in one line.
La ricetta del prompt fantasticoThe fantastic prompt recipe
Dieci passi da spuntare ogni volta che un prompt conta davvero.Ten steps to tick off whenever a prompt really matters.
0su 10of 10passi spuntatisteps ticked
Lo scheletro di un prompt fantasticoA fantastic prompt skeleton
Tutto quanto sopra in un unico punto di partenza. Compilalo, cancella quello che non serve, poi passalo attraverso i passi da 3 a 10.
All of the above in one starting point. Fill it in, delete what you don't need, then run it through steps 3 to 10.
<contesto>
Chi sono e dove verrà usato: [...]
Chi leggerà il risultato: [...]
</contesto>
<compito>
Cosa voglio, in parole semplici: [...]
Perché è importante e a cosa serve: [...]
</compito>
<risultato_ideale>
Formato, lunghezza e tono: [...]
Uno o due esempi (illustrativi, non copie dei dati reali): [...]
Cose da evitare: [...]
</risultato_ideale>
<se_incerto>
Se l'input è vuoto, strano o fuori tema, non tirare a indovinare. Rispondi <incerto> e descrivi cosa hai ricevuto.
</se_incerto>
Prima ragiona dentro i tag <ragionamento>, poi dai il risultato dentro i tag <risposta>.
<context>
Who I am and where this will be used: [...]
Who will read the result: [...]
</context>
<task>
What I want, in plain words: [...]
Why it matters, and what it's for: [...]
</task>
<what_good_looks_like>
Format, length and tone: [...]
One or two examples (illustrative, not copies of the real data): [...]
Things to avoid: [...]
</what_good_looks_like>
<if_unsure>
If the input is empty, odd or off-topic, don't guess. Reply with <unsure> and say what you received.
</if_unsure>
Think it through inside <thinking> tags first, then give the result inside <answer> tags.
Il tuo badge dei quizYour quiz badge
Non ancora guadagnato
Rispondi ai quiz lampo di ogni capitolo per guadagnare il badge.