Class: RubyLLM::Rerank::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/ruby_llm/rerank.rb

Overview

One reranked document: its index in the input array, the document text, and the provider's relevance score.

Instance Attribute Summary collapse

Instance Attribute Details

#documentObject

Returns the value of attribute document

Returns:

  • (Object)

    the current value of document



19
20
21
# File 'lib/ruby_llm/rerank.rb', line 19

def document
  @document
end

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



19
20
21
# File 'lib/ruby_llm/rerank.rb', line 19

def index
  @index
end

#scoreObject

Returns the value of attribute score

Returns:

  • (Object)

    the current value of score



19
20
21
# File 'lib/ruby_llm/rerank.rb', line 19

def score
  @score
end