You don't have access to this class

Keep learning! Join and start boosting your career

Aprovecha el precio especial y haz tu profesi贸n a prueba de IA

Antes: $249

Currency
$209
Suscr铆bete

Termina en:

0 D铆as
6 Hrs
9 Min
34 Seg

Ajustando la Temperatura y el Top P

16/16
Resources

Prompt for the class:

Act as Social Media Manager. Your goal is to create tweet proposals that generate lots of impressions, likes and retweets. <instructions> Step 1: Reviewinformation about the <topic> and <audience>, considering documents if provided. Step 2: Define three clear objectives for the tweet, based on theinformation reviewed.

Step 3: Develop short, clear drafts with the tone of the <brand-of-company> based on step 2. Show only these drafts for the user to choose one. Step 4: Once the chosen draft is received, correct spelling andwording, and generate the final tweet, respecting the <rules> and the 250-character limit. Show the final tweet to the user. </instructions> <rules> - Short, direct and easy to understand text - Use of relevant emojis - Include a call toaction to reply or share.
- Tone in keeping with the <company-brand> identity - DO NOT DESCRIBE YOUR STEPS, ONLY THE RESULTS OF THE FINAL DRAFT AND TWEET </rules> <company-brand> Beta Insurance helps people protect their assets and loved ones. Its tone is relatable and trustworthy, and focuses on current trends for professionals interested in insurance. </company-brand></audience> Professionals between the ages of 25 and 55 in Latin America. </audience>

Using prompts intelligently in GPT allows you to generate more relevant and accurate content, especially useful in areas such as social media and digital marketing. Understanding how to adjust settings such as temperature, maximum tokens and penalties for frequency and presence will help you get more fine-tuned responses according to your needs.

What is and how to adjust 'maxTokens'?

The maxTokens determines how many maximum tokens the response generated by the model can include. If you set a short limit, it will simply truncate the response, not necessarily make it more concise. Increasing its value above the default of 2048 to a maximum of 16000 will allow longer responses when needed, although it will not generate additional content by default if the response is short.

How does 'temperature' influence the creativity of the prompt?

The temperature controls how creative the model response is. By specifying a value close to 1, you allow the model to improvise, offering varied and original responses. Value close to 0 requires predictable and conservative responses:

  • Temperature at 0: Straightforward, conservative and less creative responses.
  • Temperature near 1: Greater creativity and variety in responses.
  • Temperature above 1: may result in inconsistent responses, so it is preferable to stay at values such as 0.7, 0.8 or even 0.9 for proper balance.

What is and how to adjust 'top P'?

The top P setting also influences creativity, limited by how many word alternatives the model considers when generating a response. Unlike temperature which measures improvisation, top P limits the available list of words:

  • Low values (close to zero) produce short, repetitive responses.
  • Values close to 1 allow more descriptive and varied responses by incorporating more vocabulary.

It is recommended to modify only one creativity parameter at a time: temperature or top P not both simultaneously.

What is the 'Frequency Penalty' and 'Presence Penalty'?

These parameters penalize repetition to encourage variety and originality:

  • Frequency Penalty: Avoids excessive repetition of a specific word by trying to find synonyms for terms used several times.
  • Presence Penalty: Penalizes repeated use of the same token, encouraging exploration of different expressions and themes related to the original prompt.

These settings can give more variation and personality to the generated content, particularly in contexts such as digital marketing and social media content creation.

How to save and share specific settings?

Finally, when you reach an ideal configuration that meets your need, you can save it to your prompts library. You have the option to keep the configuration for your personal use only or share it with colleagues via a link, facilitating its reuse and increasing collaborative efficiency within a team.

What are the settings you have used and which have been most useful to you? Share your experience adjusting prompts to improve the content you generate.

Contributions 10

Questions 1

Sort by:

Want to see more contributions, questions and answers from the community?

excelente curso, gracias por todo los tips, consejos
Definitivamente es un gran curso!!
muy buen curso, me encanto. ahora a continuar poni茅ndolo en practica. muchas gracias por los tips a todos
Un curso con clases muy valiosas, Gracias
Esta genial el curso :D , les comparto algunos recursos que encontre mientras resolvia alguans dudas del curso. Prompt-injection-defenses`[https://github.com/tldrsec/prompt-injection-defenses?tab=readme-ov-file#prompt-injection-defenses]`
隆Muchas gracias! Muy claro el contenido y con un aporte realmente valioso. Me ayud贸 a comprender mejor la Ingenier铆a de Prompts.
De los mejores cursos, me ha ayudado a crear un agente afrontando mejor mis dudas y resolvi茅ndolas de una mejor forma.
el curso est谩 muy bien estructurado y con mucha claridad conceptual
En estas dos 煤ltimas clases han sido realmente sorprendente constatar cu谩nto ha evolucionado la inteligencia artificial en tan poco tiempo. Cada avance parece superar al anterior, y no ser铆a nada descabellado imaginar que pronto veremos versiones capaces de operar en tiempo real. El ritmo de desarrollo es tan acelerado que lo que hoy parece innovador, ma帽ana sera parte del pasado.
Me encanto el curso. Creo que me va ayudar mucho, como encargado de TI, estoy buscando la forma de que en mi empresa (Un Instituto) podamos hacer m谩s uso de la AI. Ya me autorizaron obtener una cuenta pagada de ChatGPT o similar. Y estoy pensando en optimizar GPTS para ayudar a los docentes en sus planeaciones o incluso en examenes interactivos. Actualmente me encuentro configurando un examen b谩sico de python para alumnos de preparatoria.