Class: Pikuri::VectorDb::Reranker::Hit
- Inherits:
-
Data
- Object
- Data
- Pikuri::VectorDb::Reranker::Hit
- Defined in:
- lib/pikuri/vector_db/reranker/hit.rb
Overview
A single rerank result, returned in descending score order from a
reranker's #rerank.
index—Integer, the position in thedocumentsarray passed to#rerank; callers use it to look up text/metadata they already hold.score—Floatrelevance, range model-dependent (Cohere[0.0, 1.0]via a logistic head; raw logits range further). Treat as opaque — use for ordering, not thresholding (a "0.5 cutoff" means different things to different models).
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#score ⇒ Object
readonly
Returns the value of attribute score.
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index
15 16 17 |
# File 'lib/pikuri/vector_db/reranker/hit.rb', line 15 def index @index end |
#score ⇒ Object (readonly)
Returns the value of attribute score
15 16 17 |
# File 'lib/pikuri/vector_db/reranker/hit.rb', line 15 def score @score end |