completion-kit 0.27.7 → 0.27.9

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: 69f57e2ec1d9363a088d85a4ecf6c3632c1f971e08a8df351c0b2bbbd9b1ba16
4
- data.tar.gz: 8becf1e826e0a1dd537af4d4e762154715d693a719bd97a7464c2d54beb4fe78
3
+ metadata.gz: 3c963af7241cc97480aa462a422e3c34fb2f25ea813a380083443e68678f724b
4
+ data.tar.gz: 8a20da4fd8a0fac0e6395816cd65a4bc79ebf48756439414a343467f41ab2c2b
5
5
  SHA512:
6
- metadata.gz: ebb8b90edfe00dbffc9b7339594fefb8884adbf04fa1e26bc6a42dcae66e17aaf3d77c03b873d8d5e91ab4edb6dbcb3e4c3b142c17170a4860f3b307510907cd
7
- data.tar.gz: 5ec296ba854f8ad3162f67303d8898d1db83831ad9a443b5b20acf473b53c7ee97bb74d8ca4a213e0a27eb5fe6b55e68bb39c2efc7379e44029224337f45e269
6
+ metadata.gz: a9575cfcb4ef088a9e34c92d9852341f69eff3130f2d0e7845fc6517ce939dd9f8252c7c7722946b106de72dc2ad281388a0fc4a63134d8d8e69b9d037506825
7
+ data.tar.gz: 4050b952aea1c85a1871de868218fb9637cd662d30e4b1508f47ef2920f5d7e57c12b21b8a09c6cc7d0bc6e718f05032938ae6b47733767fcb458d3ccf374949
@@ -21,10 +21,10 @@ module CompletionKit
21
21
  end
22
22
 
23
23
  def stale_against_current_judge?
24
- return false unless metric_id && metric_version_id
25
- current_id = MetricVersion.current.where(metric_id: metric_id).limit(1).pick(:id)
26
- return false if current_id.nil?
27
- metric_version_id != current_id
24
+ return false unless metric_id && metric_version
25
+ current_number = MetricVersion.current.where(metric_id: metric_id).limit(1).pick(:version_number)
26
+ return false if current_number.nil?
27
+ metric_version.version_number != current_number
28
28
  end
29
29
 
30
30
  def as_json(options = {})
@@ -166,9 +166,9 @@ module CompletionKit
166
166
  review_pairs.each do |metric_id, version_id, metric_name|
167
167
  current = current_by_metric[metric_id]
168
168
  next if current.nil?
169
- next if version_id == current[:id]
170
169
  label = label_by_version[version_id]
171
170
  next if label.nil?
171
+ next if label == current[:label]
172
172
  summary[metric_id] ||= { metric_name: metric_name, current_label: current[:label], stale_count: 0, scored_labels: [] }
173
173
  summary[metric_id][:stale_count] += 1
174
174
  summary[metric_id][:scored_labels] |= [label]
@@ -204,7 +204,7 @@
204
204
  <p class="ck-copy">Data used as input for runs.</p>
205
205
  <div class="ck-api-endpoint">
206
206
  <p class="ck-api-method"><span class="ck-chip ck-chip--soft">GET</span> /api/v1/datasets</p>
207
- <p class="ck-meta-copy">List all datasets.</p>
207
+ <p class="ck-meta-copy">List all datasets. Supports pagination (<code>limit</code>, <code>offset</code>) and <code>tag[]</code> filtering.</p>
208
208
  </div>
209
209
  <div class="ck-api-endpoint">
210
210
  <p class="ck-api-method"><span class="ck-chip ck-chip--soft">POST</span> /api/v1/datasets</p>
@@ -231,7 +231,7 @@
231
231
  <p class="ck-copy">Scoring dimensions used by the judge model.</p>
232
232
  <div class="ck-api-endpoint">
233
233
  <p class="ck-api-method"><span class="ck-chip ck-chip--soft">GET</span> /api/v1/metrics</p>
234
- <p class="ck-meta-copy">List all metrics.</p>
234
+ <p class="ck-meta-copy">List all metrics. Supports pagination (<code>limit</code>, <code>offset</code>) and <code>tag[]</code> filtering.</p>
235
235
  </div>
236
236
  <div class="ck-api-endpoint">
237
237
  <p class="ck-api-method"><span class="ck-chip ck-chip--soft">POST</span> /api/v1/metrics</p>
@@ -289,7 +289,7 @@
289
289
  <p class="ck-copy">Named groups of metrics you can apply to a run as a set.</p>
290
290
  <div class="ck-api-endpoint">
291
291
  <p class="ck-api-method"><span class="ck-chip ck-chip--soft">GET</span> /api/v1/metric_groups</p>
292
- <p class="ck-meta-copy">List all metric groups with their metric IDs.</p>
292
+ <p class="ck-meta-copy">List all metric groups with their metric IDs. Supports pagination (<code>limit</code>, <code>offset</code>) and <code>tag[]</code> filtering.</p>
293
293
  </div>
294
294
  <div class="ck-api-endpoint">
295
295
  <p class="ck-api-method"><span class="ck-chip ck-chip--soft">POST</span> /api/v1/metric_groups</p>
@@ -337,7 +337,7 @@
337
337
 
338
338
  <div class="ck-api-tabs__panel">
339
339
  <h2 class="ck-section-title">Tags</h2>
340
- <p class="ck-copy">Domain labels you can attach to metrics, prompts, runs, datasets, and metric groups. Tags are auto-assigned a color from a 10-color palette. Each index page can be filtered by one or more tags using <code>?tag[]=name</code> query params (OR semantics).</p>
340
+ <p class="ck-copy">Domain labels you can attach to metrics, prompts, runs, datasets, and metric groups. Tags are auto-assigned a color from a 10-color palette. Each of those five resources' list endpoints can be filtered by one or more tags using <code>?tag[]=name</code> query params (OR semantics: a record matching any of the given tags is returned).</p>
341
341
  <div class="ck-api-endpoint">
342
342
  <p class="ck-api-method"><span class="ck-chip ck-chip--soft">GET</span> /api/v1/tags</p>
343
343
  <p class="ck-meta-copy">List all tags with name and color.</p>
@@ -1,3 +1,3 @@
1
1
  module CompletionKit
2
- VERSION = "0.27.7"
2
+ VERSION = "0.27.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: completion-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.7
4
+ version: 0.27.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damien Bastin