Skip to main content

Temperature

What is Temperature?

Temperature controls the randomness in GPT's output. It helps you achieve different results.

  • Low Temperature: GPT chooses words with higher probability. Useful for completing sentences with a single correct answer.
  • High Temperature: Generates more varied responses. Useful for generating ideas or telling stories.

Remember, temperature is not the same as creativity. It only controls randomness. OpenAI recommends changing either temperature or top_p, but not both.

tip

Understanding temperature can help you get the results you want. Spend time adjusting it to find the best setting for your needs.

Adjusting the Temperature Setting

The default temperature is 0.7. You can change it in the AI Engine tab.

Steps to change the temperature:

  1. Go to the plugin menu on your WordPress dashboard.
  2. Click on the Settings page and find the AI Engine tab.
  3. Enter a new value in the Temperature field.
  1. Click the Save button.

The temperature range is 0 to 1. If you enter a value outside this range, you'll see a message: "Please enter a valid temperature value between 0 and 1."

Experiment with different values to find the best setting.

Balancing Predictability and Creativity

Temperature values:

  • Low (below 0.5): More predictable and straightforward responses. Good for tasks needing a single correct answer.
  • Medium (0.5 to 0.9): Varied and creative but still realistic responses. Good for idea generation.
  • High (above 0.9): More unpredictable and open-ended responses. Good for creative tasks.

Examples

Using the prompt "Write an article about a healthy diet", here are three responses with different temperatures:

Example 1: Low Temperature (0.2)

Title: "The Fundamentals of a Healthy Diet: A Comprehensive Guide"

"In a healthy diet, it's essential to consume a balanced mix of nutrients, including carbohydrates, proteins, and fats. Eating a variety of fruits and vegetables, whole grains, lean proteins, and healthy fats can help maintain your overall health and well-being. Drinking plenty of water and limiting sugary beverages is also crucial for staying hydrated and maintaining a healthy weight."

Example 2: Medium Temperature (0.6)

Title: "Unlocking the Secrets of a Wholesome Diet: A Fresh Perspective"

"A healthy diet is more than just counting calories; it's about nourishing your body with diverse, nutrient-dense foods. To unlock the full potential of a wholesome diet, consider integrating colorful fruits and vegetables, whole grains, and lean protein sources into your meals. Don't forget to stay hydrated and moderate your intake of processed foods and added sugars for a truly balanced approach to nutrition."

Example 3: High Temperature (1.0)

Title: "A Symphony of Flavors: The Art and Science of Crafting a Healthy Diet"

"Embarking on a healthy diet journey is like composing a symphony of flavors that harmonize with your body's needs. To create a masterpiece, fill your plate with a vivid array of fruits, vegetables, and whole grains that dance alongside lean proteins and heart-healthy fats. Experiment with new recipes, flavors, and textures to transform your relationship with food and embrace a lifestyle that is as nourishing as it is delicious."

Comparison

  • Low Temperature (0.2): Straightforward and predictable.
  • Medium Temperature (0.6): Varied and creative but realistic.
  • High Temperature (1.0): Imaginative and open-ended.

Choose the temperature setting based on your specific needs and desired output.