Class
CompleteContextProcessorSettings

Settings for full-context processing over document text (such as PDF), configuring token limits, encoding, and model selection.

Definition

Namespace:Telerik.Windows.Documents.AIConnector

Assembly:Telerik.Windows.Documents.AIConnector.dll

Syntax:

cs-api-definition
public class CompleteContextProcessorSettings

Inheritance: objectCompleteContextProcessorSettings

Derived Classes: SummarizationProcessorSettings

Constructors

CompleteContextProcessorSettings(int, string, string, bool)

Initializes a new instance of the CompleteContextProcessorSettings class with the specified maximum input token limit.

Declaration

cs-api-definition
public CompleteContextProcessorSettings(int modelMaxInputTokenLimit, string modelId = null, string tokenizationEncoding = null, bool produceJsonFormattedContext = false)

Parameters

modelMaxInputTokenLimit

int

The maximum input token limit for the model.

modelId

string

The model identifier.

tokenizationEncoding

string

The tokenization encoding the model uses.

produceJsonFormattedContext

bool

Determines whether the context sent to the model will be formatted as json when applicable.

Properties

ModelId

Gets the model identifier used for AI requests.

Declaration

cs-api-definition
public string ModelId { get; }

Property Value

string

ModelMaxInputTokenLimit

Gets the maximum input token limit for prompts sent to the model, bounding full-context requests.

Declaration

cs-api-definition
public int ModelMaxInputTokenLimit { get; }

Property Value

int

ProduceJsonFormattedContext

Determines whether the context sent to the model is in JSON or plain text format, if json format is applicable.

Declaration

cs-api-definition
public bool ProduceJsonFormattedContext { get; }

Property Value

bool

Remarks

Plain text might consume more tokens but should lead to better results when asking the LLM.

TokenizationEncoding

Gets the tokenization encoding used to measure and split text when preparing prompts.

Declaration

cs-api-definition
public string TokenizationEncoding { get; }

Property Value

string