Documentation

RagExtra
in package
implements Stringable

Contains information on the Retrieval-Augmented-Generation of a prediction.

Table of Contents

Interfaces

Stringable

Properties

$matchingDocumentId  : string|null

Methods

__construct()  : mixed
__toString()  : string

Properties

$matchingDocumentId

public string|null $matchingDocumentId

The document ID of the matching document.

Methods

__construct()

public __construct(array<string, int|float|string|bool|null|array<string|int, mixed>> $rawPrediction) : mixed
Parameters
$rawPrediction : array<string, int|float|string|bool|null|array<string|int, mixed>>

Raw prediction array.

__toString()

public __toString() : string
Return values
string

String representation.

On this page

Search results