struct
AI::Provider::RerankingModel::RankedDocument
- AI::Provider::RerankingModel::RankedDocument
- Struct
- Value
- Object
Overview
A document with its ranking information.
Included Modules
- JSON::Serializable
Defined in:
ai/provider/reranking_model/reranking_model.crConstructors
- .new(index : Int32, relevance_score : Float64)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#index : Int32
The index of the document in the original list before reranking.
-
#relevance_score : Float64
The relevance score of the document after reranking.