Documentation

RagDocumentSearchResponse extends BaseSearchResponse
in package

RAG documents search response.

Table of Contents

Properties

$pagination  : PaginationMetadata
$ragDocuments  : RagDocuments

Methods

__construct()  : mixed
__toString()  : string
getRawHttp()  : string
bodyLines()  : array<int, string>
Lines composing the response-specific body (header + items).

Properties

Methods

__construct()

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

Raw server response array.

__toString()

public __toString() : string
Return values
string

String representation.

getRawHttp()

public getRawHttp() : string
Return values
string

Raw dump of the JSON response.

bodyLines()

Lines composing the response-specific body (header + items).

protected bodyLines() : array<int, string>
Return values
array<int, string>

Body lines.

On this page

Search results