Skip to content

Set History Presence Penalty

Purpose of the Node

The Set History Presence Penalty node updates the presence penalty value in a provided ChatHistory. This is useful for fine-tuning the behavior of language models by adjusting the penalty for generating tokens that are similar to those in the history.

Pins

Pin NamePin DescriptionPin TypeValue Type
StartInitiates the execution of the node.Execution-
HistoryThe ChatHistory to which the presence penalty will be applied.StructHistory
Presence PenaltyThe presence penalty value to be set, ranging from 0.0 to 1.0.Float-
EndIndicates the completion of the node’s execution.Execution-
HistoryThe updated ChatHistory with the presence penalty applied.StructHistory