Class: VoyageAI::Rerank
- Inherits:
-
Object
- Object
- VoyageAI::Rerank
- Defined in:
- lib/voyageai/rerank.rb
Overview
The response for an rerank request that wraps the model / usage / results.
Instance Attribute Summary collapse
- #model ⇒ String
- #reranking ⇒ Array<Array<Float>>
-
#results ⇒ Object
Returns the value of attribute results.
- #usage ⇒ Usage
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(model:, usage:, results:) ⇒ Rerank
constructor
A new instance of Rerank.
- #inspect ⇒ String
Constructor Details
#initialize(model:, usage:, results:) ⇒ Rerank
Returns a new instance of Rerank.
35 36 37 38 39 |
# File 'lib/voyageai/rerank.rb', line 35 def initialize(model:, usage:, results:) @model = model @usage = usage @results = results end |
Instance Attribute Details
#model ⇒ String
11 12 13 |
# File 'lib/voyageai/rerank.rb', line 11 def model @model end |
#reranking ⇒ Array<Array<Float>>
19 |
# File 'lib/voyageai/rerank.rb', line 19 attr_accessor :results |
#results ⇒ Object
Returns the value of attribute results.
19 20 21 |
# File 'lib/voyageai/rerank.rb', line 19 def results @results end |
Class Method Details
Instance Method Details
#inspect ⇒ String
42 43 44 |
# File 'lib/voyageai/rerank.rb', line 42 def inspect "#<#{self.class.name} model=#{@model.inspect} usage=#{@usage.inspect}>" end |