Compartir a través de


ChatOptions.TopK Property

Definition

Gets or sets the number of most probable tokens that the model considers when generating the next part of the text.

public:
 property Nullable<int> TopK { Nullable<int> get(); void set(Nullable<int> value); };
public int? TopK { get; set; }
member this.TopK : Nullable<int> with get, set
Public Property TopK As Nullable(Of Integer)

Property Value

Remarks

This property reduces the probability of generating nonsense. A higher value gives more diverse answers, while a lower value is more conservative.

Applies to