struct AI::Provider::RerankingModel::RankedDocument

Overview

A document with its ranking information.

Included Modules

Defined in:

ai/provider/reranking_model/reranking_model.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(index : Int32, relevance_score : Float64) #

[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 index : Int32 #

The index of the document in the original list before reranking.


[View source]
def relevance_score : Float64 #

The relevance score of the document after reranking.


[View source]