turbopuffer 1.13.0 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf103528d41a884cdd21e0f270de4c81ff9a0dace54a41bcf8be8c267e6a6130
4
- data.tar.gz: cdfd28b66449cc1265566e23dbf48f58841eb7f075b8b060ce71762f6e9b5fbe
3
+ metadata.gz: 4efa5498ba29d70be101b28365278511a81c95af4717b10adb56f6f190fe59b8
4
+ data.tar.gz: 2363d990a8a0019903ffa818f8988cb5cd91e82874360cca87ec68b549827b84
5
5
  SHA512:
6
- metadata.gz: 871db166c6bd140b8356c388f952c161a37dd26b68c64bafea41b90e3bb95d0124789efacf20b6eeff13de1e72b7181c1be0b71722a819c0302788cfed80100f
7
- data.tar.gz: 888efaea3f982b55e38f0dc647913d5d400a1191261bc317ba8a51ec1f2a16bb136b31bb5cc9f8cb3b5612fdac60973855a65ed1e16688f2e5016e403ecc91ac
6
+ metadata.gz: 1f5b0b56d319d866a93416fc72eba396d96f3ecccc1534b9f97807e99a261f836bbe8b01cbb393dab0d8b30c31be559f20ae2b7251871078de880fcd6ea40a5e
7
+ data.tar.gz: '097395c4a0da2ab57eaa99d7e822fc9dde61eda82b3ae23f0f67b7fa7f30797a2624592f94ae984376c02a56f981ba888f396a93f061618d8cd03e31ad8bd8f9'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.14.0 (2026-02-17)
4
+
5
+ Full Changelog: [v1.13.0...v1.14.0](https://github.com/turbopuffer/turbopuffer-ruby/compare/v1.13.0...v1.14.0)
6
+
7
+ ### Features
8
+
9
+ * Add ranking-by-attribute to the spec. ([7341bcb](https://github.com/turbopuffer/turbopuffer-ruby/commit/7341bcb0b8de0c9652e60788db87163787762275))
10
+
3
11
  ## 1.13.0 (2026-02-08)
4
12
 
5
13
  Full Changelog: [v1.12.2...v1.13.0](https://github.com/turbopuffer/turbopuffer-ruby/compare/v1.12.2...v1.13.0)
data/README.md CHANGED
@@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
26
26
  <!-- x-release-please-start-version -->
27
27
 
28
28
  ```ruby
29
- gem "turbopuffer", "~> 1.13.0"
29
+ gem "turbopuffer", "~> 1.14.0"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Turbopuffer
4
+ module Models
5
+ class DecayParams < Turbopuffer::Internal::Type::BaseModel
6
+ # @!attribute exponent
7
+ # An exponent that helps further control the shape of the Decay function.
8
+ #
9
+ # @return [Float, nil]
10
+ optional :exponent, Float
11
+
12
+ # @!attribute midpoint
13
+ # The midpoint of the Decay operator.
14
+ #
15
+ # @return [Object, nil]
16
+ optional :midpoint, Turbopuffer::Internal::Type::Unknown
17
+
18
+ # @!method initialize(exponent: nil, midpoint: nil)
19
+ # Additional parameters for the Decay operator.
20
+ #
21
+ # @param exponent [Float] An exponent that helps further control the shape of the Decay function.
22
+ #
23
+ # @param midpoint [Object] The midpoint of the Decay operator.
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Turbopuffer
4
+ module Models
5
+ class SaturateParams < Turbopuffer::Internal::Type::BaseModel
6
+ # @!attribute exponent
7
+ # An exponent that helps further control the shape of the Saturate function.
8
+ #
9
+ # @return [Float, nil]
10
+ optional :exponent, Float
11
+
12
+ # @!attribute midpoint
13
+ # The midpoint of the Saturate operator.
14
+ #
15
+ # @return [Object, nil]
16
+ optional :midpoint, Turbopuffer::Internal::Type::Unknown
17
+
18
+ # @!method initialize(exponent: nil, midpoint: nil)
19
+ # Additional parameters for the Saturate operator.
20
+ #
21
+ # @param exponent [Float] An exponent that helps further control the shape of the Saturate function.
22
+ #
23
+ # @param midpoint [Object] The midpoint of the Saturate operator.
24
+ end
25
+ end
26
+ end
@@ -58,6 +58,8 @@ module Turbopuffer
58
58
 
59
59
  ContainsAnyTokenFilterParams = Turbopuffer::Models::ContainsAnyTokenFilterParams
60
60
 
61
+ DecayParams = Turbopuffer::Models::DecayParams
62
+
61
63
  DistanceMetric = Turbopuffer::Models::DistanceMetric
62
64
 
63
65
  FullTextSearch = Turbopuffer::Models::FullTextSearch
@@ -104,6 +106,8 @@ module Turbopuffer
104
106
 
105
107
  Row = Turbopuffer::Models::Row
106
108
 
109
+ SaturateParams = Turbopuffer::Models::SaturateParams
110
+
107
111
  Tokenizer = Turbopuffer::Models::Tokenizer
108
112
 
109
113
  Vector = Turbopuffer::Models::Vector
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Turbopuffer
4
- VERSION = "1.13.0"
4
+ VERSION = "1.14.0"
5
5
  end
data/lib/turbopuffer.rb CHANGED
@@ -62,6 +62,7 @@ require_relative "turbopuffer/models/client_namespaces_params"
62
62
  require_relative "turbopuffer/models/columns"
63
63
  require_relative "turbopuffer/models/contains_all_tokens_filter_params"
64
64
  require_relative "turbopuffer/models/contains_any_token_filter_params"
65
+ require_relative "turbopuffer/models/decay_params"
65
66
  require_relative "turbopuffer/models/distance_metric"
66
67
  require_relative "turbopuffer/models/full_text_search"
67
68
  require_relative "turbopuffer/models/full_text_search_config"
@@ -94,6 +95,7 @@ require_relative "turbopuffer/models/query"
94
95
  require_relative "turbopuffer/models/query_billing"
95
96
  require_relative "turbopuffer/models/query_performance"
96
97
  require_relative "turbopuffer/models/row"
98
+ require_relative "turbopuffer/models/saturate_params"
97
99
  require_relative "turbopuffer/models/tokenizer"
98
100
  require_relative "turbopuffer/models/vector"
99
101
  require_relative "turbopuffer/models/vector_encoding"
@@ -0,0 +1,42 @@
1
+ # typed: strong
2
+
3
+ module Turbopuffer
4
+ module Models
5
+ class DecayParams < Turbopuffer::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(Turbopuffer::DecayParams, Turbopuffer::Internal::AnyHash)
9
+ end
10
+
11
+ # An exponent that helps further control the shape of the Decay function.
12
+ sig { returns(T.nilable(Float)) }
13
+ attr_reader :exponent
14
+
15
+ sig { params(exponent: Float).void }
16
+ attr_writer :exponent
17
+
18
+ # The midpoint of the Decay operator.
19
+ sig { returns(T.nilable(T.anything)) }
20
+ attr_reader :midpoint
21
+
22
+ sig { params(midpoint: T.anything).void }
23
+ attr_writer :midpoint
24
+
25
+ # Additional parameters for the Decay operator.
26
+ sig do
27
+ params(exponent: Float, midpoint: T.anything).returns(T.attached_class)
28
+ end
29
+ def self.new(
30
+ # An exponent that helps further control the shape of the Decay function.
31
+ exponent: nil,
32
+ # The midpoint of the Decay operator.
33
+ midpoint: nil
34
+ )
35
+ end
36
+
37
+ sig { override.returns({ exponent: Float, midpoint: T.anything }) }
38
+ def to_hash
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,42 @@
1
+ # typed: strong
2
+
3
+ module Turbopuffer
4
+ module Models
5
+ class SaturateParams < Turbopuffer::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(Turbopuffer::SaturateParams, Turbopuffer::Internal::AnyHash)
9
+ end
10
+
11
+ # An exponent that helps further control the shape of the Saturate function.
12
+ sig { returns(T.nilable(Float)) }
13
+ attr_reader :exponent
14
+
15
+ sig { params(exponent: Float).void }
16
+ attr_writer :exponent
17
+
18
+ # The midpoint of the Saturate operator.
19
+ sig { returns(T.nilable(T.anything)) }
20
+ attr_reader :midpoint
21
+
22
+ sig { params(midpoint: T.anything).void }
23
+ attr_writer :midpoint
24
+
25
+ # Additional parameters for the Saturate operator.
26
+ sig do
27
+ params(exponent: Float, midpoint: T.anything).returns(T.attached_class)
28
+ end
29
+ def self.new(
30
+ # An exponent that helps further control the shape of the Saturate function.
31
+ exponent: nil,
32
+ # The midpoint of the Saturate operator.
33
+ midpoint: nil
34
+ )
35
+ end
36
+
37
+ sig { override.returns({ exponent: Float, midpoint: T.anything }) }
38
+ def to_hash
39
+ end
40
+ end
41
+ end
42
+ end
@@ -25,6 +25,8 @@ module Turbopuffer
25
25
  ContainsAnyTokenFilterParams =
26
26
  Turbopuffer::Models::ContainsAnyTokenFilterParams
27
27
 
28
+ DecayParams = Turbopuffer::Models::DecayParams
29
+
28
30
  DistanceMetric = Turbopuffer::Models::DistanceMetric
29
31
 
30
32
  FullTextSearch = Turbopuffer::Models::FullTextSearch
@@ -72,6 +74,8 @@ module Turbopuffer
72
74
 
73
75
  Row = Turbopuffer::Models::Row
74
76
 
77
+ SaturateParams = Turbopuffer::Models::SaturateParams
78
+
75
79
  Tokenizer = Turbopuffer::Models::Tokenizer
76
80
 
77
81
  Vector = Turbopuffer::Models::Vector
@@ -0,0 +1,19 @@
1
+ module Turbopuffer
2
+ module Models
3
+ type decay_params = { exponent: Float, midpoint: top }
4
+
5
+ class DecayParams < Turbopuffer::Internal::Type::BaseModel
6
+ attr_reader exponent: Float?
7
+
8
+ def exponent=: (Float) -> Float
9
+
10
+ attr_reader midpoint: top?
11
+
12
+ def midpoint=: (top) -> top
13
+
14
+ def initialize: (?exponent: Float, ?midpoint: top) -> void
15
+
16
+ def to_hash: -> { exponent: Float, midpoint: top }
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,19 @@
1
+ module Turbopuffer
2
+ module Models
3
+ type saturate_params = { exponent: Float, midpoint: top }
4
+
5
+ class SaturateParams < Turbopuffer::Internal::Type::BaseModel
6
+ attr_reader exponent: Float?
7
+
8
+ def exponent=: (Float) -> Float
9
+
10
+ attr_reader midpoint: top?
11
+
12
+ def midpoint=: (top) -> top
13
+
14
+ def initialize: (?exponent: Float, ?midpoint: top) -> void
15
+
16
+ def to_hash: -> { exponent: Float, midpoint: top }
17
+ end
18
+ end
19
+ end
@@ -17,6 +17,8 @@ module Turbopuffer
17
17
 
18
18
  class ContainsAnyTokenFilterParams = Turbopuffer::Models::ContainsAnyTokenFilterParams
19
19
 
20
+ class DecayParams = Turbopuffer::Models::DecayParams
21
+
20
22
  module DistanceMetric = Turbopuffer::Models::DistanceMetric
21
23
 
22
24
  module FullTextSearch = Turbopuffer::Models::FullTextSearch
@@ -63,6 +65,8 @@ module Turbopuffer
63
65
 
64
66
  class Row = Turbopuffer::Models::Row
65
67
 
68
+ class SaturateParams = Turbopuffer::Models::SaturateParams
69
+
66
70
  module Tokenizer = Turbopuffer::Models::Tokenizer
67
71
 
68
72
  module Vector = Turbopuffer::Models::Vector
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbopuffer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.0
4
+ version: 1.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Turbopuffer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-02-08 00:00:00.000000000 Z
11
+ date: 2026-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi
@@ -79,6 +79,7 @@ files:
79
79
  - lib/turbopuffer/models/columns.rb
80
80
  - lib/turbopuffer/models/contains_all_tokens_filter_params.rb
81
81
  - lib/turbopuffer/models/contains_any_token_filter_params.rb
82
+ - lib/turbopuffer/models/decay_params.rb
82
83
  - lib/turbopuffer/models/distance_metric.rb
83
84
  - lib/turbopuffer/models/full_text_search.rb
84
85
  - lib/turbopuffer/models/full_text_search_config.rb
@@ -111,6 +112,7 @@ files:
111
112
  - lib/turbopuffer/models/query_billing.rb
112
113
  - lib/turbopuffer/models/query_performance.rb
113
114
  - lib/turbopuffer/models/row.rb
115
+ - lib/turbopuffer/models/saturate_params.rb
114
116
  - lib/turbopuffer/models/tokenizer.rb
115
117
  - lib/turbopuffer/models/vector.rb
116
118
  - lib/turbopuffer/models/vector_encoding.rb
@@ -149,6 +151,7 @@ files:
149
151
  - rbi/turbopuffer/models/columns.rbi
150
152
  - rbi/turbopuffer/models/contains_all_tokens_filter_params.rbi
151
153
  - rbi/turbopuffer/models/contains_any_token_filter_params.rbi
154
+ - rbi/turbopuffer/models/decay_params.rbi
152
155
  - rbi/turbopuffer/models/distance_metric.rbi
153
156
  - rbi/turbopuffer/models/full_text_search.rbi
154
157
  - rbi/turbopuffer/models/full_text_search_config.rbi
@@ -181,6 +184,7 @@ files:
181
184
  - rbi/turbopuffer/models/query_billing.rbi
182
185
  - rbi/turbopuffer/models/query_performance.rbi
183
186
  - rbi/turbopuffer/models/row.rbi
187
+ - rbi/turbopuffer/models/saturate_params.rbi
184
188
  - rbi/turbopuffer/models/tokenizer.rbi
185
189
  - rbi/turbopuffer/models/vector.rbi
186
190
  - rbi/turbopuffer/models/vector_encoding.rbi
@@ -218,6 +222,7 @@ files:
218
222
  - sig/turbopuffer/models/columns.rbs
219
223
  - sig/turbopuffer/models/contains_all_tokens_filter_params.rbs
220
224
  - sig/turbopuffer/models/contains_any_token_filter_params.rbs
225
+ - sig/turbopuffer/models/decay_params.rbs
221
226
  - sig/turbopuffer/models/distance_metric.rbs
222
227
  - sig/turbopuffer/models/full_text_search.rbs
223
228
  - sig/turbopuffer/models/full_text_search_config.rbs
@@ -250,6 +255,7 @@ files:
250
255
  - sig/turbopuffer/models/query_billing.rbs
251
256
  - sig/turbopuffer/models/query_performance.rbs
252
257
  - sig/turbopuffer/models/row.rbs
258
+ - sig/turbopuffer/models/saturate_params.rbs
253
259
  - sig/turbopuffer/models/tokenizer.rbs
254
260
  - sig/turbopuffer/models/vector.rbs
255
261
  - sig/turbopuffer/models/vector_encoding.rbs