RagDocumentSearchResponse
extends BaseSearchResponse
in package
RAG documents search response.
Table of Contents
Properties
Methods
- __construct() : mixed
- __toString() : string
- getRawHttp() : string
- bodyLines() : array<int, string>
- Lines composing the response-specific body (header + items).
Properties
$pagination
public
PaginationMetadata
$pagination
Pagination metadata for the search results.
$ragDocuments
public
RagDocuments
$ragDocuments
Paginated list of matching RAG documents.
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.