Package com.mindee
Class InferenceParameters.Builder
- java.lang.Object
-
- com.mindee.InferenceParameters.Builder
-
- Enclosing class:
- InferenceParameters
public static final class InferenceParameters.Builder extends Object
Fluent builder forInferenceParameters.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InferenceParameters.Builderalias(String alias)Set an alias for the uploaded document.InferenceParametersbuild()Build an immutableInferenceParametersinstance.InferenceParameters.Builderconfidence(Boolean confidence)Boost the precision and accuracy of all extractions.InferenceParameters.BuilderpollingOptions(AsyncPollingOptions pollingOptions)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.BuilderwebhookIds(String[] webhookIds)Provide IDs of webhooks to forward the API response to.
-
-
-
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.
-
alias
public InferenceParameters.Builder alias(String alias)
Set an alias for the uploaded document.
-
webhookIds
public InferenceParameters.Builder webhookIds(String[] webhookIds)
Provide IDs of webhooks to forward the API response to.
-
pollingOptions
public InferenceParameters.Builder pollingOptions(AsyncPollingOptions pollingOptions)
-
build
public InferenceParameters build()
Build an immutableInferenceParametersinstance.
-
-