Table of Contents

Property PreferFullDocumentContext

Namespace
LMKit.Retrieval
Assembly
LM-Kit.NET.dll

PreferFullDocumentContext

Gets or sets whether small documents should be provided in full to the model.

public bool PreferFullDocumentContext { get; set; }

Property Value

bool

true to include documents that fit within FullDocumentTokenBudget entirely in the context; false to always use passage retrieval. Default is true.

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.