turbopuffer 2.0.0.pre.alpha.3 → 2.0.0.pre.alpha.4

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: 4e5f082a1e8d6acefec4b0257674ceb16dec5e07710bbda11bcf6082b0f1cd6f
4
- data.tar.gz: ee3237b5351b601448905bd5e0a5e2a84cb5b9cb10caab8cecdd17b1d50aefbc
3
+ metadata.gz: 5e484bcc97c7ca716471aabb96ce6b5f6631f227e61227a3a70e5b98e9e7c464
4
+ data.tar.gz: e4e62a843d0a4044cb575bcd845a4263dd1c3c6dd4900f1c5ce4e2c0e02371da
5
5
  SHA512:
6
- metadata.gz: 67940d42129893ae6b383967ab7838bb827e1847ee65a51052fd564b7d648669a3d985e7c163f38fc1790271062528ad2d4d0c04260f4983210f8a1df46f11ae
7
- data.tar.gz: ad8491e701eab4a36c3f442029a43a354e9c920d0a7fd87c16bb67eb5e2985ccc3f14efec637f2f4c904c8642fe082c96f4d120e681bf2c23f2b7ad6947ddcb8
6
+ metadata.gz: efb0875f769e9e30dec41f34fdfd7bf531de638180282e034ad1c1955a0c8156ca05b89c1b57eb87d338ea92378c349987730268252360b4511bcf534c5652f1
7
+ data.tar.gz: 7b4f7904d4723648b2af464d6d80372c35acd70843692b92601e0b399eaad3f646fc90ecf92c87de69ae53c985576a39ca9d77d3307acf266e14d3a2958828ee
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.0-alpha.4 (2026-05-10)
4
+
5
+ Full Changelog: [v2.0.0-alpha.3...v2.0.0-alpha.4](https://github.com/turbopuffer/turbopuffer-ruby/compare/v2.0.0-alpha.3...v2.0.0-alpha.4)
6
+
7
+ ### Features
8
+
9
+ * spec: rename RankByVector/RankBySparseVector to RankByAnn/RankBySparseKnn ([a3b9c2c](https://github.com/turbopuffer/turbopuffer-ruby/commit/a3b9c2c2eb19716ff6a7ce5da86ee6d6901420ea))
10
+
3
11
  ## 2.0.0-alpha.3 (2026-05-08)
4
12
 
5
13
  Full Changelog: [v2.0.0-alpha.2...v2.0.0-alpha.3](https://github.com/turbopuffer/turbopuffer-ruby/compare/v2.0.0-alpha.2...v2.0.0-alpha.3)
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", "~> 2.0.0.pre.alpha.3"
29
+ gem "turbopuffer", "~> 2.0.0.pre.alpha.4"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -49,8 +49,8 @@ module Turbopuffer
49
49
  # Groups documents by the specified attributes (the "group key") before computing
50
50
  # aggregates. Aggregates are computed separately for each group.
51
51
  #
52
- # @return [Array<String>, nil]
53
- optional :group_by, Turbopuffer::Internal::Type::ArrayOf[String]
52
+ # @return [Array<Object>, nil]
53
+ optional :group_by, Turbopuffer::Internal::Type::ArrayOf[Turbopuffer::Internal::Type::Unknown]
54
54
 
55
55
  # @!attribute include_attributes
56
56
  # Whether to include attributes in the response.
@@ -98,7 +98,7 @@ module Turbopuffer
98
98
  #
99
99
  # @param filters [Object] Exact filters for attributes to refine search results for. Think of it as a SQL
100
100
  #
101
- # @param group_by [Array<String>] Groups documents by the specified attributes (the "group key") before computing
101
+ # @param group_by [Array<Object>] Groups documents by the specified attributes (the "group key") before computing
102
102
  #
103
103
  # @param include_attributes [Boolean, Array<String>] Whether to include attributes in the response.
104
104
  #
@@ -73,8 +73,8 @@ module Turbopuffer
73
73
  # Groups documents by the specified attributes (the "group key") before computing
74
74
  # aggregates. Aggregates are computed separately for each group.
75
75
  #
76
- # @return [Array<String>, nil]
77
- optional :group_by, Turbopuffer::Internal::Type::ArrayOf[String]
76
+ # @return [Array<Object>, nil]
77
+ optional :group_by, Turbopuffer::Internal::Type::ArrayOf[Turbopuffer::Internal::Type::Unknown]
78
78
 
79
79
  # @!attribute include_attributes
80
80
  # Whether to include attributes in the response.
@@ -114,7 +114,7 @@ module Turbopuffer
114
114
  #
115
115
  # @param filters [Object] Exact filters for attributes to refine search results for. Think of it as a SQL
116
116
  #
117
- # @param group_by [Array<String>] Groups documents by the specified attributes (the "group key") before computing
117
+ # @param group_by [Array<Object>] Groups documents by the specified attributes (the "group key") before computing
118
118
  #
119
119
  # @param include_attributes [Boolean, Array<String>] Whether to include attributes in the response.
120
120
  #
@@ -49,8 +49,8 @@ module Turbopuffer
49
49
  # Groups documents by the specified attributes (the "group key") before computing
50
50
  # aggregates. Aggregates are computed separately for each group.
51
51
  #
52
- # @return [Array<String>, nil]
53
- optional :group_by, Turbopuffer::Internal::Type::ArrayOf[String]
52
+ # @return [Array<Object>, nil]
53
+ optional :group_by, Turbopuffer::Internal::Type::ArrayOf[Turbopuffer::Internal::Type::Unknown]
54
54
 
55
55
  # @!attribute include_attributes
56
56
  # Whether to include attributes in the response.
@@ -98,7 +98,7 @@ module Turbopuffer
98
98
  #
99
99
  # @param filters [Object] Exact filters for attributes to refine search results for. Think of it as a SQL
100
100
  #
101
- # @param group_by [Array<String>] Groups documents by the specified attributes (the "group key") before computing
101
+ # @param group_by [Array<Object>] Groups documents by the specified attributes (the "group key") before computing
102
102
  #
103
103
  # @param include_attributes [Boolean, Array<String>] Whether to include attributes in the response.
104
104
  #
@@ -110,7 +110,7 @@ module Turbopuffer
110
110
  #
111
111
  # @param filters [Object] Body param: Exact filters for attributes to refine search results for. Think of
112
112
  #
113
- # @param group_by [Array<String>] Body param: Groups documents by the specified attributes (the "group key") befor
113
+ # @param group_by [Array<Object>] Body param: Groups documents by the specified attributes (the "group key") befor
114
114
  #
115
115
  # @param include_attributes [Boolean, Array<String>] Body param: Whether to include attributes in the response.
116
116
  #
@@ -243,7 +243,7 @@ module Turbopuffer
243
243
  #
244
244
  # @param filters [Object] Body param: Exact filters for attributes to refine search results for. Think of
245
245
  #
246
- # @param group_by [Array<String>] Body param: Groups documents by the specified attributes (the "group key") befor
246
+ # @param group_by [Array<Object>] Body param: Groups documents by the specified attributes (the "group key") befor
247
247
  #
248
248
  # @param include_attributes [Boolean, Array<String>] Body param: Whether to include attributes in the response.
249
249
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Turbopuffer
4
- VERSION = "2.0.0.pre.alpha.3"
4
+ VERSION = "2.0.0.pre.alpha.4"
5
5
  end
@@ -71,10 +71,10 @@ module Turbopuffer
71
71
 
72
72
  # Groups documents by the specified attributes (the "group key") before computing
73
73
  # aggregates. Aggregates are computed separately for each group.
74
- sig { returns(T.nilable(T::Array[String])) }
74
+ sig { returns(T.nilable(T::Array[T.anything])) }
75
75
  attr_reader :group_by
76
76
 
77
- sig { params(group_by: T::Array[String]).void }
77
+ sig { params(group_by: T::Array[T.anything]).void }
78
78
  attr_writer :group_by
79
79
 
80
80
  # Whether to include attributes in the response.
@@ -127,7 +127,7 @@ module Turbopuffer
127
127
  distance_metric: Turbopuffer::DistanceMetric::OrSymbol,
128
128
  exclude_attributes: T::Array[String],
129
129
  filters: T.anything,
130
- group_by: T::Array[String],
130
+ group_by: T::Array[T.anything],
131
131
  include_attributes: Turbopuffer::IncludeAttributes::Variants,
132
132
  limit: T.any(Integer, Turbopuffer::Limit::OrHash),
133
133
  rank_by: T.anything,
@@ -177,7 +177,7 @@ module Turbopuffer
177
177
  distance_metric: Turbopuffer::DistanceMetric::OrSymbol,
178
178
  exclude_attributes: T::Array[String],
179
179
  filters: T.anything,
180
- group_by: T::Array[String],
180
+ group_by: T::Array[T.anything],
181
181
  include_attributes: Turbopuffer::IncludeAttributes::Variants,
182
182
  limit: T.any(Integer, Turbopuffer::Limit),
183
183
  rank_by: T.anything,
@@ -126,10 +126,10 @@ module Turbopuffer
126
126
 
127
127
  # Groups documents by the specified attributes (the "group key") before computing
128
128
  # aggregates. Aggregates are computed separately for each group.
129
- sig { returns(T.nilable(T::Array[String])) }
129
+ sig { returns(T.nilable(T::Array[T.anything])) }
130
130
  attr_reader :group_by
131
131
 
132
- sig { params(group_by: T::Array[String]).void }
132
+ sig { params(group_by: T::Array[T.anything]).void }
133
133
  attr_writer :group_by
134
134
 
135
135
  # Whether to include attributes in the response.
@@ -171,7 +171,7 @@ module Turbopuffer
171
171
  distance_metric: Turbopuffer::DistanceMetric::OrSymbol,
172
172
  exclude_attributes: T::Array[String],
173
173
  filters: T.anything,
174
- group_by: T::Array[String],
174
+ group_by: T::Array[T.anything],
175
175
  include_attributes: Turbopuffer::IncludeAttributes::Variants,
176
176
  limit: T.any(Integer, Turbopuffer::Limit::OrHash),
177
177
  rank_by: T.anything,
@@ -211,7 +211,7 @@ module Turbopuffer
211
211
  distance_metric: Turbopuffer::DistanceMetric::OrSymbol,
212
212
  exclude_attributes: T::Array[String],
213
213
  filters: T.anything,
214
- group_by: T::Array[String],
214
+ group_by: T::Array[T.anything],
215
215
  include_attributes: Turbopuffer::IncludeAttributes::Variants,
216
216
  limit: T.any(Integer, Turbopuffer::Limit),
217
217
  rank_by: T.anything,
@@ -66,10 +66,10 @@ module Turbopuffer
66
66
 
67
67
  # Groups documents by the specified attributes (the "group key") before computing
68
68
  # aggregates. Aggregates are computed separately for each group.
69
- sig { returns(T.nilable(T::Array[String])) }
69
+ sig { returns(T.nilable(T::Array[T.anything])) }
70
70
  attr_reader :group_by
71
71
 
72
- sig { params(group_by: T::Array[String]).void }
72
+ sig { params(group_by: T::Array[T.anything]).void }
73
73
  attr_writer :group_by
74
74
 
75
75
  # Whether to include attributes in the response.
@@ -121,7 +121,7 @@ module Turbopuffer
121
121
  distance_metric: Turbopuffer::DistanceMetric::OrSymbol,
122
122
  exclude_attributes: T::Array[String],
123
123
  filters: T.anything,
124
- group_by: T::Array[String],
124
+ group_by: T::Array[T.anything],
125
125
  include_attributes: Turbopuffer::IncludeAttributes::Variants,
126
126
  limit: T.any(Integer, Turbopuffer::Limit::OrHash),
127
127
  rank_by: T.anything,
@@ -171,7 +171,7 @@ module Turbopuffer
171
171
  distance_metric: Turbopuffer::DistanceMetric::OrSymbol,
172
172
  exclude_attributes: T::Array[String],
173
173
  filters: T.anything,
174
- group_by: T::Array[String],
174
+ group_by: T::Array[T.anything],
175
175
  include_attributes: Turbopuffer::IncludeAttributes::Variants,
176
176
  limit: T.any(Integer, Turbopuffer::Limit),
177
177
  rank_by: T.anything,
@@ -68,7 +68,7 @@ module Turbopuffer
68
68
  distance_metric: Turbopuffer::DistanceMetric::OrSymbol,
69
69
  exclude_attributes: T::Array[String],
70
70
  filters: T.anything,
71
- group_by: T::Array[String],
71
+ group_by: T::Array[T.anything],
72
72
  include_attributes: Turbopuffer::IncludeAttributes::Variants,
73
73
  limit: T.any(Integer, Turbopuffer::Limit::OrHash),
74
74
  rank_by: T.anything,
@@ -172,7 +172,7 @@ module Turbopuffer
172
172
  distance_metric: Turbopuffer::DistanceMetric::OrSymbol,
173
173
  exclude_attributes: T::Array[String],
174
174
  filters: T.anything,
175
- group_by: T::Array[String],
175
+ group_by: T::Array[T.anything],
176
176
  include_attributes: Turbopuffer::IncludeAttributes::Variants,
177
177
  limit: T.any(Integer, Turbopuffer::Limit::OrHash),
178
178
  rank_by: T.anything,
@@ -8,7 +8,7 @@ module Turbopuffer
8
8
  distance_metric: Turbopuffer::Models::distance_metric,
9
9
  exclude_attributes: ::Array[String],
10
10
  filters: top,
11
- group_by: ::Array[String],
11
+ group_by: ::Array[top],
12
12
  include_attributes: Turbopuffer::Models::include_attributes,
13
13
  limit: Turbopuffer::Models::NamespaceExplainQueryParams::limit,
14
14
  rank_by: top,
@@ -49,9 +49,9 @@ module Turbopuffer
49
49
 
50
50
  def filters=: (top) -> top
51
51
 
52
- attr_reader group_by: ::Array[String]?
52
+ attr_reader group_by: ::Array[top]?
53
53
 
54
- def group_by=: (::Array[String]) -> ::Array[String]
54
+ def group_by=: (::Array[top]) -> ::Array[top]
55
55
 
56
56
  attr_reader include_attributes: Turbopuffer::Models::include_attributes?
57
57
 
@@ -86,7 +86,7 @@ module Turbopuffer
86
86
  ?distance_metric: Turbopuffer::Models::distance_metric,
87
87
  ?exclude_attributes: ::Array[String],
88
88
  ?filters: top,
89
- ?group_by: ::Array[String],
89
+ ?group_by: ::Array[top],
90
90
  ?include_attributes: Turbopuffer::Models::include_attributes,
91
91
  ?limit: Turbopuffer::Models::NamespaceExplainQueryParams::limit,
92
92
  ?rank_by: top,
@@ -102,7 +102,7 @@ module Turbopuffer
102
102
  distance_metric: Turbopuffer::Models::distance_metric,
103
103
  exclude_attributes: ::Array[String],
104
104
  filters: top,
105
- group_by: ::Array[String],
105
+ group_by: ::Array[top],
106
106
  include_attributes: Turbopuffer::Models::include_attributes,
107
107
  limit: Turbopuffer::Models::NamespaceExplainQueryParams::limit,
108
108
  rank_by: top,
@@ -53,7 +53,7 @@ module Turbopuffer
53
53
  distance_metric: Turbopuffer::Models::distance_metric,
54
54
  exclude_attributes: ::Array[String],
55
55
  filters: top,
56
- group_by: ::Array[String],
56
+ group_by: ::Array[top],
57
57
  include_attributes: Turbopuffer::Models::include_attributes,
58
58
  limit: Turbopuffer::Models::NamespaceMultiQueryParams::Query::limit,
59
59
  rank_by: top,
@@ -79,9 +79,9 @@ module Turbopuffer
79
79
 
80
80
  def filters=: (top) -> top
81
81
 
82
- attr_reader group_by: ::Array[String]?
82
+ attr_reader group_by: ::Array[top]?
83
83
 
84
- def group_by=: (::Array[String]) -> ::Array[String]
84
+ def group_by=: (::Array[top]) -> ::Array[top]
85
85
 
86
86
  attr_reader include_attributes: Turbopuffer::Models::include_attributes?
87
87
 
@@ -108,7 +108,7 @@ module Turbopuffer
108
108
  ?distance_metric: Turbopuffer::Models::distance_metric,
109
109
  ?exclude_attributes: ::Array[String],
110
110
  ?filters: top,
111
- ?group_by: ::Array[String],
111
+ ?group_by: ::Array[top],
112
112
  ?include_attributes: Turbopuffer::Models::include_attributes,
113
113
  ?limit: Turbopuffer::Models::NamespaceMultiQueryParams::Query::limit,
114
114
  ?rank_by: top,
@@ -120,7 +120,7 @@ module Turbopuffer
120
120
  distance_metric: Turbopuffer::Models::distance_metric,
121
121
  exclude_attributes: ::Array[String],
122
122
  filters: top,
123
- group_by: ::Array[String],
123
+ group_by: ::Array[top],
124
124
  include_attributes: Turbopuffer::Models::include_attributes,
125
125
  limit: Turbopuffer::Models::NamespaceMultiQueryParams::Query::limit,
126
126
  rank_by: top,
@@ -8,7 +8,7 @@ module Turbopuffer
8
8
  distance_metric: Turbopuffer::Models::distance_metric,
9
9
  exclude_attributes: ::Array[String],
10
10
  filters: top,
11
- group_by: ::Array[String],
11
+ group_by: ::Array[top],
12
12
  include_attributes: Turbopuffer::Models::include_attributes,
13
13
  limit: Turbopuffer::Models::NamespaceQueryParams::limit,
14
14
  rank_by: top,
@@ -49,9 +49,9 @@ module Turbopuffer
49
49
 
50
50
  def filters=: (top) -> top
51
51
 
52
- attr_reader group_by: ::Array[String]?
52
+ attr_reader group_by: ::Array[top]?
53
53
 
54
- def group_by=: (::Array[String]) -> ::Array[String]
54
+ def group_by=: (::Array[top]) -> ::Array[top]
55
55
 
56
56
  attr_reader include_attributes: Turbopuffer::Models::include_attributes?
57
57
 
@@ -86,7 +86,7 @@ module Turbopuffer
86
86
  ?distance_metric: Turbopuffer::Models::distance_metric,
87
87
  ?exclude_attributes: ::Array[String],
88
88
  ?filters: top,
89
- ?group_by: ::Array[String],
89
+ ?group_by: ::Array[top],
90
90
  ?include_attributes: Turbopuffer::Models::include_attributes,
91
91
  ?limit: Turbopuffer::Models::NamespaceQueryParams::limit,
92
92
  ?rank_by: top,
@@ -102,7 +102,7 @@ module Turbopuffer
102
102
  distance_metric: Turbopuffer::Models::distance_metric,
103
103
  exclude_attributes: ::Array[String],
104
104
  filters: top,
105
- group_by: ::Array[String],
105
+ group_by: ::Array[top],
106
106
  include_attributes: Turbopuffer::Models::include_attributes,
107
107
  limit: Turbopuffer::Models::NamespaceQueryParams::limit,
108
108
  rank_by: top,
@@ -27,7 +27,7 @@ module Turbopuffer
27
27
  ?distance_metric: Turbopuffer::Models::distance_metric,
28
28
  ?exclude_attributes: ::Array[String],
29
29
  ?filters: top,
30
- ?group_by: ::Array[String],
30
+ ?group_by: ::Array[top],
31
31
  ?include_attributes: Turbopuffer::Models::include_attributes,
32
32
  ?limit: Turbopuffer::Models::NamespaceExplainQueryParams::limit,
33
33
  ?rank_by: top,
@@ -61,7 +61,7 @@ module Turbopuffer
61
61
  ?distance_metric: Turbopuffer::Models::distance_metric,
62
62
  ?exclude_attributes: ::Array[String],
63
63
  ?filters: top,
64
- ?group_by: ::Array[String],
64
+ ?group_by: ::Array[top],
65
65
  ?include_attributes: Turbopuffer::Models::include_attributes,
66
66
  ?limit: Turbopuffer::Models::NamespaceQueryParams::limit,
67
67
  ?rank_by: top,
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: 2.0.0.pre.alpha.3
4
+ version: 2.0.0.pre.alpha.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Turbopuffer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-08 00:00:00.000000000 Z
11
+ date: 2026-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi