Class: Turbopuffer::Models::AttributeSchemaConfig
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Turbopuffer::Models::AttributeSchemaConfig
- Defined in:
- lib/turbopuffer/models/attribute_schema_config.rb
Instance Attribute Summary collapse
-
#ann ⇒ Boolean?
Whether to create an approximate nearest neighbor index for the attribute.
-
#filterable ⇒ Boolean?
Whether or not the attributes can be used in filters.
-
#full_text_search ⇒ Boolean, ...
Whether this attribute can be used as part of a BM25 full-text search.
-
#regex ⇒ Boolean?
Whether to enable Regex filters on this attribute.
-
#type ⇒ String?
The data type of the attribute.
Instance Method Summary collapse
-
#initialize(ann: nil, filterable: nil, full_text_search: nil, regex: nil, type: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see AttributeSchemaConfig for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, 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
#initialize(ann: nil, filterable: nil, full_text_search: nil, regex: nil, type: nil) ⇒ Object
Some parameter documentations has been truncated, see Turbopuffer::Models::AttributeSchemaConfig for more details.
Detailed configuration for an attribute attached to a document.
|
|
# File 'lib/turbopuffer/models/attribute_schema_config.rb', line 39
|
Instance Attribute Details
#ann ⇒ Boolean?
Whether to create an approximate nearest neighbor index for the attribute.
10 |
# File 'lib/turbopuffer/models/attribute_schema_config.rb', line 10 optional :ann, Turbopuffer::Internal::Type::Boolean |
#filterable ⇒ Boolean?
Whether or not the attributes can be used in filters.
16 |
# File 'lib/turbopuffer/models/attribute_schema_config.rb', line 16 optional :filterable, Turbopuffer::Internal::Type::Boolean |
#full_text_search ⇒ Boolean, ...
Whether this attribute can be used as part of a BM25 full-text search. Requires the ‘string` or `[]string` type, and by default, BM25-enabled attributes are not filterable. You can override this by setting `filterable: true`.
24 |
# File 'lib/turbopuffer/models/attribute_schema_config.rb', line 24 optional :full_text_search, union: -> { Turbopuffer::FullTextSearch } |
#regex ⇒ Boolean?
Whether to enable Regex filters on this attribute.
30 |
# File 'lib/turbopuffer/models/attribute_schema_config.rb', line 30 optional :regex, Turbopuffer::Internal::Type::Boolean |
#type ⇒ String?
The data type of the attribute. Valid values: string, int, uint, uuid, datetime, bool, []string, []int, []uint, []uuid, []datetime, [DIMS]f16, [DIMS]f32.
37 |
# File 'lib/turbopuffer/models/attribute_schema_config.rb', line 37 optional :type, String |