Documentation

InferenceActiveOptions
in package

Options which were activated during the inference.

Options can be activated or deactivated:

  • By setting their default values on the Platform UI
  • By explicitly setting them in the inference request

Table of Contents

Properties

$confidence  : bool
$polygon  : bool
$rag  : bool
$rawText  : bool
$textContext  : bool

Methods

__construct()  : mixed
__toString()  : string

Properties

$confidence

public bool $confidence

Whether the confidence feature was activated. When this feature is activated, a confidence score for each field is returned in the result.

$polygon

public bool $polygon

Whether the Raw Text feature was activated. When this feature is activated, the raw text extracted from the document is returned in the result.

$rag

public bool $rag

Whether the Retrieval-Augmented Generation feature was activated. When this feature is activated, the RAG pipeline is used to increase result accuracy.

$textContext

public bool $textContext

Whether the text context feature was activated. When this feature is activated, the provided context is used to improve the accuracy of the inference.

Methods

__construct()

public __construct(array<string|int, mixed> $serverResponse) : mixed
Parameters
$serverResponse : array<string|int, mixed>

Raw server response array.


        
On this page

Search results