Class: RubyLLM::Voyage::RerankResult

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

Overview

One document returned by a reranking request.

Instance Attribute Summary collapse

Instance Attribute Details

#documentObject

Returns the value of attribute document

Returns:

  • (Object)

    the current value of document



6
7
8
# File 'lib/ruby_llm/voyage/results.rb', line 6

def document
  @document
end

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



6
7
8
# File 'lib/ruby_llm/voyage/results.rb', line 6

def index
  @index
end

#relevance_scoreObject

Returns the value of attribute relevance_score

Returns:

  • (Object)

    the current value of relevance_score



6
7
8
# File 'lib/ruby_llm/voyage/results.rb', line 6

def relevance_score
  @relevance_score
end