TsgcAIDocumentExtractor › Properties › ValidationRetries
Number of times the model is asked again when the data does not validate.
property ValidationRetries: Integer read FValidationRetries write FValidationRetries default 1;
1
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.
oExtractor.ValidationRetries := 2;