Package com.mindee
Class InferenceParameters.Builder
- java.lang.Object
-
- com.mindee.v2.clientOptions.BaseParameters.BaseBuilder<InferenceParameters.Builder>
-
- com.mindee.InferenceParameters.Builder
-
- Enclosing class:
- InferenceParameters
public static final class InferenceParameters.Builder extends BaseParameters.BaseBuilder<InferenceParameters.Builder>
Fluent builder forInferenceParameters.
-
-
Field Summary
-
Fields inherited from class com.mindee.v2.clientOptions.BaseParameters.BaseBuilder
alias, modelId, pollingOptions, webhookIds
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InferenceParametersbuild()Build an immutableInferenceParametersinstance.InferenceParameters.Builderconfidence(Boolean confidence)Boost the precision and accuracy of all extractions.InferenceParameters.BuilderdataSchema(String dataSchema)Provide additional text context used by the model during inference.InferenceParameters.Builderpolygon(Boolean polygon)Calculate bounding box polygons for all fields.InferenceParameters.Builderrag(Boolean rag)Enhance extraction accuracy with Retrieval-Augmented Generation.InferenceParameters.BuilderrawText(Boolean rawText)Extract the full text content from the document as strings.InferenceParameters.BuildertextContext(String textContext)Provide additional text context used by the model during inference.-
Methods inherited from class com.mindee.v2.clientOptions.BaseParameters.BaseBuilder
alias, pollingOptions, self, webhookIds
-
-
-
-
Method Detail
-
rag
public InferenceParameters.Builder rag(Boolean rag)
Enhance extraction accuracy with Retrieval-Augmented Generation.
-
rawText
public InferenceParameters.Builder rawText(Boolean rawText)
Extract the full text content from the document as strings.
-
polygon
public InferenceParameters.Builder polygon(Boolean polygon)
Calculate bounding box polygons for all fields.
-
confidence
public InferenceParameters.Builder confidence(Boolean confidence)
Boost the precision and accuracy of all extractions. Calculate confidence scores for all fields.
-
textContext
public InferenceParameters.Builder textContext(String textContext)
Provide additional text context used by the model during inference.
-
dataSchema
public InferenceParameters.Builder dataSchema(String dataSchema)
Provide additional text context used by the model during inference.
-
build
public InferenceParameters build()
Build an immutableInferenceParametersinstance.
-
-