Class: Turbopuffer::Models::NamespaceRecallResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/turbopuffer/models/namespace_recall_response.rb

Overview

Defined Under Namespace

Classes: GroundTruth

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

#==, ==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

This class inherits a constructor from Turbopuffer::Internal::Type::BaseModel

Instance Attribute Details

#avg_ann_countFloat

The average number of documents retrieved by the approximate nearest neighbor searches.

Returns:

  • (Float)


12
# File 'lib/turbopuffer/models/namespace_recall_response.rb', line 12

required :avg_ann_count, Float

#avg_exhaustive_countFloat

The average number of documents retrieved by the exhaustive searches.

Returns:

  • (Float)


18
# File 'lib/turbopuffer/models/namespace_recall_response.rb', line 18

required :avg_exhaustive_count, Float

#avg_recallFloat

The average recall of the queries.

Returns:

  • (Float)


24
# File 'lib/turbopuffer/models/namespace_recall_response.rb', line 24

required :avg_recall, Float

#ground_truthArray<Turbopuffer::Models::NamespaceRecallResponse::GroundTruth>?

Ground truth data including query vectors and true nearest neighbors. Only included when include_ground_truth is true.



31
32
# File 'lib/turbopuffer/models/namespace_recall_response.rb', line 31

optional :ground_truth,
-> { Turbopuffer::Internal::Type::ArrayOf[Turbopuffer::Models::NamespaceRecallResponse::GroundTruth] }