100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Samenvatting

Summary Randomness in prompts

Beoordeling
-
Verkocht
-
Pagina's
1
Geüpload op
25-07-2023
Geschreven in
2022/2023

Prompt engineering Randomness

Instelling
Vak








Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Gekoppeld boek

Geschreven voor

Vak

Documentinformatie

Heel boek samengevat?
Nee
Wat is er van het boek samengevat?
Chapter i
Geüpload op
25 juli 2023
Aantal pagina's
1
Geschreven in
2022/2023
Type
Samenvatting

Onderwerpen

Voorbeeld van de inhoud

Prompt engineering-Randomness



Randomness in outputs refers to the generation of unpredictable or diverse responses from a
language model when given the same prompt multiple times. Prompt engineering involves
designing and utilizing prompts to guide the language model's behavior and produce desired
outputs.

To achieve randomness in outputs, you can introduce randomness in various ways during
prompt engineering:

Temperature: Language models like GPT-3.5 use a parameter called "temperature" to control
the randomness of their output. A higher temperature (e.g., 0.8 or 1.0) leads to more diverse and
creative responses, while a lower temperature (e.g., 0.2 or 0.5) produces more focused and
deterministic outputs.

Random Sampling: Instead of selecting the most likely word at each step of generation, you can
randomly sample words from the model's distribution of possible words. This technique
introduces a degree of randomness into the output.

Nucleus (Top-p) Sampling: This is a variant of random sampling where you sample from the
smallest possible set of words that make up a certain cumulative probability (e.g., 90% of the
probability mass). This approach helps maintain the overall coherence of the response while
still allowing for diverse outputs.

Prompts with Diverse Endings: Crafting prompts that have multiple possible ways to conclude
or resolve a task can encourage the model to generate varied responses.

Random Seed: You can introduce randomness by using a random seed value that affects the
model's internal processes, such as selecting different initial states or generating random noise
during sampling.

Reinforcement Learning: Employing reinforcement learning techniques can encourage the
model to explore different outputs and reward it for generating diverse and desirable responses.

It's essential to strike a balance between randomness and coherence when using these
techniques. Too much randomness might lead to incoherent outputs, while too little could result
in the model being too deterministic and repetitive.

Ultimately, the goal of using randomness in prompt engineering is to enhance the creativity and
diversity of the language model's responses while still ensuring they remain relevant and useful
for the given task or application.
€7,01
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten

Maak kennis met de verkoper
Seller avatar
ramakrishnatammineedi

Maak kennis met de verkoper

Seller avatar
ramakrishnatammineedi Published
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
0
Lid sinds
2 jaar
Aantal volgers
0
Documenten
5
Laatst verkocht
-

0,0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo eenvoudig kan het zijn.”

Alisha Student

Veelgestelde vragen