Property TopK
TopK
Gets or sets the maximum number of matching partitions to retrieve during memory recall.
public int TopK { get; set; }
Property Value
- int
The maximum number of results to return. Default is 3.
Remarks
Higher values provide more context but increase token usage. Adjust based on your model's context window size and the density of your stored information.