struct
AI::Provider::RerankingModel::CallOptions
- AI::Provider::RerankingModel::CallOptions
- Struct
- Value
- Object
Overview
Options for the doRerank call.
Included Modules
- JSON::Serializable
Defined in:
ai/provider/reranking_model/reranking_model.crConstructors
- .new(documents : Documents, query : String, top_n : Int32 | Nil = nil, provider_options : Shared::ProviderOptions | Nil = nil, headers : Shared::Headers | Nil = nil)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#documents : Documents
Documents to rerank.
-
#headers : Shared::Headers | Nil
Additional HTTP headers to be sent with the request.
-
#provider_options : Shared::ProviderOptions | Nil
Additional provider-specific options.
-
#query : String
The query to rerank the documents against.
-
#top_n : Int32 | Nil
Optional limit to return only top n documents.