Property FullDocumentTokenBudget
FullDocumentTokenBudget
Gets or sets the maximum token budget for full document inclusion.
public int FullDocumentTokenBudget { get; set; }
Property Value
- int
The token budget, clamped between
256and 75% of ContextSize. Default is4096.
Examples
using var chat = new PdfChat(chatModel, embeddingModel);
// Increase the budget to include larger documents in full
chat.FullDocumentTokenBudget = 8192;
Remarks
Documents whose total token count fits within this budget are included in full
when PreferFullDocumentContext is true. Documents exceeding
this budget are chunked, with relevant passages retrieved per query.