AI Dictionary › Prompting
Active prompting is a technique that selectively chooses which examples to include in a few-shot prompt, prioritizing those on which the model shows greater uncertainty or variability in its responses, rather than choosing them randomly or in arbitrary order. The goal is to focus the examples precisely where the model needs them most.
Active prompting is a technique that selectively chooses which examples to include in a few-shot prompt, prioritizing those on which the model shows greater uncertainty or variability in its responses, rather than choosing them randomly or in arbitrary order. The goal is to focus the examples precisely where the model needs them most.
The process involves testing the model on a set of candidate examples, measuring how much its responses vary or how uncertain they appear for each one, and then building the final prompt using primarily the examples that proved most difficult or ambiguous. This way, the prompt does not merely show easy cases the model already handles well, but reinforces precisely the areas of weakness.
This technique is useful when building reusable few-shot prompts for recurring tasks, where selecting the right examples can make a significant difference in response quality: classifying ambiguous texts, solving math problems with multiple variants, or handling edge cases in a customer support flow.
The term "active" echoes the concept of active learning, an idea already familiar in machine learning where a model or system actively chooses which data to label to maximize learning, here transposed to the selection of examples within a prompt.
L'active prompting e' una tecnica che seleziona in modo mirato quali esempi includere in un prompt few-shot, dando priorita' a quelli su cui il modello mostra maggiore incertezza o variabilita' nelle risposte, invece di sceglierli a caso o in ordine casuale. L'obiettivo e' concentrare l'attenzione dell'esempio proprio dove il modello ne ha piu' bisogno.
Il processo prevede di testare il modello su un insieme di potenziali esempi, misurare quanto le sue risposte variano o quanto risultano incerte per ciascuno, e poi costruire il prompt finale usando prioritariamente gli esempi che si sono rivelati piu' difficili o ambigui. In questo modo il prompt non si limita a mostrare casi facili gia' gestiti bene dal modello, ma rinforza proprio le aree di debolezza.
Questa tecnica e' utile quando si costruiscono prompt few-shot riutilizzabili per compiti ricorrenti, dove selezionare gli esempi giusti puo' fare una differenza significativa nella qualita' delle risposte: nella classificazione di testi ambigui, nella risoluzione di problemi matematici con piu' varianti, o nella gestione di casi limite in un flusso di assistenza clienti.
Il termine "active" richiama il concetto di apprendimento attivo, un'idea gia' nota in ambito di machine learning dove il modello o il sistema sceglie attivamente quali dati etichettare per massimizzare l'apprendimento, qui trasposta alla selezione degli esempi in un prompt.
From our network
INDACO TMS — Transport Management for European Logistics
Shipment tracking, multi-carrier EDI and automated invoicing in one cloud platform. Invoices generated in under 10 seconds.
Visit indacotms.com →From the Agora Intelligence blog
📱 Download the Android app (beta) iOS coming soon
Say what you mean. Get what you need.
Grace Certified — the AI coach that trains and certifies your prompt engineering — by Agora Intelligence.