Package com.mindee
Class PredictOptions
- java.lang.Object
-
- com.mindee.PredictOptions
-
public final class PredictOptions extends Object
Parameters for making predict API calls.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPredictOptions.PredictOptionsBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PredictOptions.PredictOptionsBuilderbuilder()booleanequals(Object o)BooleangetAllWords()Whether to include the full text for each page.BooleangetCropper()Whether to include cropper results for each page.BooleangetFullText()Whether to include the full text data for async APIs.BooleangetRag()If set, will enable Retrieval-Augmented Generation.StringgetWorkflowId()If set, will enqueue to a workflow queue instead of a product's endpoint.inthashCode()StringtoString()
-
-
-
Method Detail
-
builder
public static PredictOptions.PredictOptionsBuilder builder()
-
getAllWords
public Boolean getAllWords()
Whether to include the full text for each page. This performs a full OCR operation on the server and will increase response time.
-
getCropper
public Boolean getCropper()
Whether to include cropper results for each page. This performs a cropping operation on the server and will increase response time.
-
getFullText
public Boolean getFullText()
Whether to include the full text data for async APIs. This performs a full OCR operation on the server and will increase response time and payload size.
-
getWorkflowId
public String getWorkflowId()
If set, will enqueue to a workflow queue instead of a product's endpoint.
-
getRag
public Boolean getRag()
If set, will enable Retrieval-Augmented Generation. Only works if a valid workflowId is set.
-
-