struct

AI::Provider::RerankingModel::CallOptions

Inherits JSON::Serializable < Struct < Value < Object

Options for the doRerank call.

Constructors

new(documents : Documents, query : String, top_n : Int32 | Nil = nil, provider_options : Shared::ProviderOptions | Nil = nil, headers : Shared::Headers | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

documents

Documents to rerank.

Source
headers

Additional HTTP headers to be sent with the request.

Source
provider_options

Additional provider-specific options.

Source
query

The query to rerank the documents against.

Source
top_n

Optional limit to return only top n documents.

Source