InferenceParameters
in package
Parameters accepted by the asynchronous **inference** v2 endpoint.
Table of Contents
Properties
- $alias : string|null
- $confidence : bool|null
- $modelId : string
- $pollingOptions : PollingOptions
- $polygon : bool|null
- $rag : bool|null
- $rawText : bool|null
- $webhooksIds : array<string|int, string>
Methods
- __construct() : mixed
Properties
$alias
public
string|null
$alias
Optional file alias.
$confidence
public
bool|null
$confidence
Boost the precision and accuracy of all extractions. Calculate confidence scores for all fields.
$modelId
public
string
$modelId
Model ID.
$pollingOptions
public
PollingOptions
$pollingOptions
Polling options.
$polygon
public
bool|null
$polygon
Calculate bounding box polygons for all fields.
$rag
public
bool|null
$rag
Enhance extraction accuracy with Retrieval-Augmented Generation..
$rawText
public
bool|null
$rawText
Extract the full text content from the document as strings.
$webhooksIds
public
array<string|int, string>
$webhooksIds
Optional webhook IDs.
Methods
__construct()
public
__construct(string $modelId[, bool|null $rag = null ][, bool|null $rawText = null ][, bool|null $polygon = null ][, bool|null $confidence = null ][, string|null $alias = null ][, array<string|int, string>|null $webhooksIds = null ][, PollingOptions|null $pollingOptions = null ]) : mixed
Parameters
- $modelId : string
-
ID of the model.
- $rag : bool|null = null
-
Whether to enable Retrieval-Augmented Generation.
- $rawText : bool|null = null
-
Whether to extract the full text content from the document as strings.
- $polygon : bool|null = null
-
Whether to calculate bounding box polygons for all fields.
- $confidence : bool|null = null
-
Whether to calculate confidence scores for all fields.
- $alias : string|null = null
-
Optional file alias.
- $webhooksIds : array<string|int, string>|null = null
-
List of webhook IDs.
- $pollingOptions : PollingOptions|null = null
-
Polling options.