glossary

Context and retrieval

Temperature

Temperature is a sampling control that changes how sharply the model prefers the most likely next token, with a low setting repeating stable phrasing and a high setting drawing more often from less likely continuations.

Abracadabra Team Glossary

How it works

At each step the model has a distribution over the next token. Temperature reshapes that distribution before a token is sampled. A low setting makes the peak sharper, so the same prompt tends to produce the same phrasing. A high setting flattens the peak, so less likely words are drawn more often and the text wanders. The setting does not add knowledge, and it does not retrieve a document. It changes which continuation is chosen among the ones the model already considered plausible.

A zero setting is still not a promise that two calls match, unless the provider documents determinism for that endpoint. Kernels, batching and other serving details can move a token even when the distribution is peaked. Use a low setting when the task is extraction into fields, where a synonym can break a parser. Use a higher setting when the task is to produce several distinct phrasings and a person will pick. Changing temperature will not fix a missing passage or a wrong instruction. Those failures repeat at any setting.

A worked example

Several caption phrasings, and a date extractor that should not wander

A museum runs two jobs over the same object records. The caption job asks for a short public label and is sampled several times so an editor can choose among phrasings. Those samples differ in adjective and rhythm, which is the high setting doing what it was asked. The sibling job extracts the object's date into a single field for the catalogue. At a high setting it sometimes writes "about 1840" and sometimes "c. 1840" and sometimes a sentence. The loader rejects the sentence. The same extractor at a low setting repeats one format the parser accepts. Neither setting checks whether 1840 is the right year. That depends on the record. Temperature only decided whether the format wandered while the year was copied.

Illustrative example, not a production trace and not a measured result.

What goes wrong

  • An extraction job is left on a high setting, the field wording varies between calls, and a strict parser drops rows that a person would have read as the same fact. A person would still read the two strings as one fact.
  • A low setting is treated as proof the answer is true, and a stable wrong date is shipped because it repeated.
  • Two calls at a zero setting differ, and the team files a product bug, when the provider never promised identical tokens for that route.

How to measure it

For extraction, repeat the same input and record how often the field text is identical and how often the parser accepts it. For a writing task, record whether the samples are actually distinct enough that an editor has a choice.

Do not use a quality score alone. A stable error and a wandering error are different faults. After you change the setting, compare task success for that task and cohort, and keep the setting on the trace.

How Abracadabra helps

Parser failures on a field that a person reads as the same fact, across repeats of one input, point at sampling wander. After the setting changes, compare task success for that task and cohort.

When context is lost, people restate a fact or repeat the request. Abracadabra pins those corrections and repeated intents to the turn. After a change to what the agent keeps, compare task success for that task and cohort with the previous period.

Request access to read this on your own agent.

See it in your own agent's conversations.

Each task, the step where it stops, and the conversations behind every count. Free during early access.