struct

AI::Provider::RerankingModel::Result

Inherits JSON::Serializable < Struct < Value < Object

The result of a reranking model doRerank call.

Constructors

new(ranking : Array(RankedDocument), provider_metadata : ProviderMetadata | Nil = nil, warnings : Array(Shared::Warning) | Nil = nil, response : ResultResponse | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

provider_metadata

Additional provider-specific metadata.

Source
ranking

Ordered list of reranked documents (by descending relevance score).

Source
response

Optional response information for debugging purposes.

Source
warnings

Warnings for the call, e.g. unsupported settings.

Source