Property DocumentProcessingModality
DocumentProcessingModality
Gets or sets the modality used for processing document content.
public InferenceModality DocumentProcessingModality { get; set; }
Property Value
- InferenceModality
The inference modality. Default is Multimodal.
Examples
using var chat = new PdfChat(chatModel, embeddingModel);
// Use text-only processing (no page images in context)
chat.DocumentProcessingModality = InferenceModality.Text;
Remarks
When set to Multimodal, pages may be processed as images when beneficial. When set to Text, only extracted text is used.
Exceptions
- InvalidOperationException
Thrown if modified after documents have been loaded.