Documentation

PredictMethodOptions
in package

Handles options tied to prediction method.

Table of Contents

Properties

$closeFile  : bool
$endpoint  : Endpoint|WorkflowEndpoint|null
$pageOptions  : PageOptions
$predictOptions  : PredictOptions
$rag  : bool
$workflowId  : string|null
$workflowOptions  : WorkflowOptions

Methods

__construct()  : mixed
Prediction method options.
setEndpoint()  : $this
setPageOptions()  : $this
setPredictOptions()  : $this
setRag()  : $this
setWorkflowId()  : $this
Sets the workflow ID for the prediction method options.
setWorkflowOptions()  : $this

Properties

$rag

public bool $rag

If set, will enable Retrieval-Augmented Generation (only works if a valid WorkflowId is set).

Methods

setRag()

public setRag(bool $rag) : $this
Parameters
$rag : bool

Whether to enable Retrieval-Augmented Generation.

Return values
$this

setWorkflowId()

Sets the workflow ID for the prediction method options.

public setWorkflowId(string $workflowId) : $this
Parameters
$workflowId : string

The unique workflow ID to be set.

Return values
$this

        
On this page

Search results