TsgcAIDocumentExtractor › Properties › ValidationRetries

ValidationRetries Property

Number of times the model is asked again when the data does not validate.

Syntax

property ValidationRetries: Integer read FValidationRetries write FValidationRetries default 1;

Default Value

1

Remarks

When the data member of the answer does not validate against the schema, the component asks again in the same conversation, listing every validation error, so the model can correct its answer for the same document. The document is not sent again. Set 0 to disable the retry.

This retry is separate from the one of ChatJSON, which repeats a request once when the answer is not valid JSON at all.

Example

oExtractor.ValidationRetries := 2;

Back to Properties