🧠Creativity settings
Parameters creativity and diversity threshold determine the degree of randomness and creativity in the AI assistant's responses. They are interconnected but have different approaches and principles of operation.
📌 Creativity
What is it: A parameter that controls the randomness of text generation.
How it works:
Values from
0
to2
(usually used from0
to1
).The higher the value, the more random, unexpected, and creative the AI's responses are.
The lower the value, the more conservative, consistent, and predictable the responses.
Examples:
0
— almost identical response to similar queries (clarity and predictability).0.7
–1.0
— more diverse and creative responses.1.5
— maximum creativity and unexpected associations (but also more mistakes).
📌 Diversity threshold:
What is it: A parameter that limits the pool of the most probable tokens considered by the model when generating text.
How it works:
Values from
0
to1
.If you set the value, for example,
0.9
, then the model will consider only the most probable tokens whose total probability is 90%.This means that less probable options are completely ignored, and more probable tokens remain, but within this threshold.
Examples:
diversity threshold = 0.1
— only the most probable words (limited and predictable responses).diversity threshold = 0.9–1
— allows generating more diverse and creative text.
🚩 What is the difference and how to use:
Creativity directly regulates the randomness of the response (like a 'chaos slider').
Diversity threshold limits the range of response options by probabilities (like a 'best options filter').
Usually, for assistant settings, one of these parameters is used, not both at the same time, because they act on the same token selection process.
🎯 Usage recommendations:
If you need accuracy and stability —
creativity
close to0
(for example, 0.1–0.3).If originality, liveliness, and naturalness are important —
creativity
from0.7
to1
.If you need a balance between randomness and stability with a guarantee of response quality —
diversity threshold
≈0.9
.
It is usually recommended to choose one of the parameters, most often creativity, and diversity threshold — is an alternative approach if you want to control diversity through probabilities, not just the level of randomness.
Last updated