struct AI::Provider::RerankingModel::CallOptions

Overview

Options for the doRerank call.

Included Modules

Defined in:

ai/provider/reranking_model/reranking_model.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(documents : Documents, query : String, top_n : Int32 | Nil = nil, provider_options : Shared::ProviderOptions | Nil = nil, headers : Shared::Headers | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def documents : Documents #

Documents to rerank.


[View source]
def headers : Shared::Headers | Nil #

Additional HTTP headers to be sent with the request.


[View source]
def provider_options : Shared::ProviderOptions | Nil #

Additional provider-specific options.


[View source]
def query : String #

The query to rerank the documents against.


[View source]
def top_n : Int32 | Nil #

Optional limit to return only top n documents.


[View source]