Property PreferFullDocumentContext
PreferFullDocumentContext
Gets or sets whether small documents should be provided in full to the model.
public bool PreferFullDocumentContext { get; set; }
Property Value
- bool
trueto include documents that fit within FullDocumentTokenBudget entirely in the context;falseto always use passage retrieval. Default istrue.
Remarks
When true, documents that fit within the budget are passed entirely to the model,
ensuring complete context is available. Documents exceeding this budget are chunked,
with relevant passages retrieved per query. Must be set before loading any documents.
Exceptions
- InvalidOperationException
Thrown if modified after the conversation has started.