Class: RubyLLM::Rerank::Result
- Inherits:
-
Struct
- Object
- Struct
- RubyLLM::Rerank::Result
- 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
-
#document ⇒ Object
Returns the value of attribute document.
-
#index ⇒ Object
Returns the value of attribute index.
-
#score ⇒ Object
Returns the value of attribute score.
Instance Attribute Details
#document ⇒ Object
Returns the value of attribute document
19 20 21 |
# File 'lib/ruby_llm/rerank.rb', line 19 def document @document end |
#index ⇒ Object
Returns the value of attribute index
19 20 21 |
# File 'lib/ruby_llm/rerank.rb', line 19 def index @index end |
#score ⇒ Object
Returns the value of attribute score
19 20 21 |
# File 'lib/ruby_llm/rerank.rb', line 19 def score @score end |