Package com.mindee
Class InferenceParameters
- java.lang.Object
-
- com.mindee.InferenceParameters
-
public final class InferenceParameters extends Object
Options to pass when calling methods using the API V2.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInferenceParameters.BuilderFluent builder forInferenceParameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InferenceParameters.Builderbuilder(String modelId)Create a new builder.booleanequals(Object o)StringgetAlias()Optional alias for the file.BooleangetConfidence()Boost the precision and accuracy of all extractions.StringgetDataSchema()Dynamic changes to the data schema of the model for this inference.StringgetModelId()Model ID to use for the inference (required).AsyncPollingOptionsgetPollingOptions()Polling options.BooleangetPolygon()Calculate bounding box polygons for all fields.BooleangetRag()Enhance extraction accuracy with Retrieval-Augmented Generation.BooleangetRawText()Extract the full text content from the document as strings.StringgetTextContext()Additional text context used by the model during inference.String[]getWebhookIds()Webhook IDs to call after all processing is finished.inthashCode()StringtoString()
-
-
-
Method Detail
-
builder
public static InferenceParameters.Builder builder(String modelId)
Create a new builder.- Parameters:
modelId- the mandatory model identifier- Returns:
- a fresh
InferenceParameters.Builder
-
getModelId
public String getModelId()
Model ID to use for the inference (required).
-
getRag
public Boolean getRag()
Enhance extraction accuracy with Retrieval-Augmented Generation.
-
getRawText
public Boolean getRawText()
Extract the full text content from the document as strings.
-
getPolygon
public Boolean getPolygon()
Calculate bounding box polygons for all fields.
-
getConfidence
public Boolean getConfidence()
Boost the precision and accuracy of all extractions. Calculate confidence scores for all fields.
-
getAlias
public String getAlias()
Optional alias for the file.
-
getWebhookIds
public String[] getWebhookIds()
Webhook IDs to call after all processing is finished. If empty, no webhooks will be used.
-
getPollingOptions
public AsyncPollingOptions getPollingOptions()
Polling options. Set only if having timeout issues.
-
getTextContext
public String getTextContext()
Additional text context used by the model during inference. Not recommended, for specific use only.
-
getDataSchema
public String getDataSchema()
Dynamic changes to the data schema of the model for this inference.
-
-