completion-kit 0.5.2 → 0.5.3
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f64415a327bca168f071390f5b44188e5fb3b7f66a9b92f5a0d6e03da1977454
|
|
4
|
+
data.tar.gz: a64a0446f6b6ee0d10e076e10405be75cb298377e8d4a45f921fe3ff8d2946d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 02c394c4216d8fcefa8a585e4c0fdab80a64d63cd865664c24c99047065bb371dc9f4c490340c3da825331549fcbbee873b93547afc5b655e4138d938a39731c
|
|
7
|
+
data.tar.gz: d04afd98a0b25bfdc500b1826ec71dd3f055a106eec7528f4deff615c95c0ba3d76517320869e023739e7e43ff59f92ebaa754a3fc10446e42985dcb21124ae5
|
data/README.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
|
+
<a href="https://badge.fury.io/rb/completion-kit"><img src="https://badge.fury.io/rb/completion-kit.svg" alt="Gem Version" /></a>
|
|
6
7
|
<a href="https://github.com/homemade-software-inc/completion-kit/actions/workflows/ci.yml"><img src="https://github.com/homemade-software-inc/completion-kit/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
|
|
7
8
|
<img src="https://img.shields.io/badge/coverage-100%25-brightgreen" alt="coverage" />
|
|
8
9
|
</p>
|
|
@@ -15,19 +16,19 @@ It's the difference between "this prompt seems to work" and "this prompt scores
|
|
|
15
16
|
|
|
16
17
|
**[completionkit.com](https://completionkit.com)** | **[RubyGems](https://rubygems.org/gems/completion-kit)**
|
|
17
18
|
|
|
18
|
-
> **CompletionKit Cloud**
|
|
19
|
-
|
|
20
|
-

|
|
21
|
-
|
|
22
|
-

|
|
19
|
+
> **CompletionKit Cloud** — hosted, managed CompletionKit with zero setup. Same engine, run for you. See plans at [completionkit.com/pricing](https://completionkit.com/pricing).
|
|
23
20
|
|
|
24
21
|

|
|
25
22
|
|
|
26
23
|
## Quick Start
|
|
27
24
|
|
|
28
|
-
###
|
|
25
|
+
### Use CompletionKit Cloud
|
|
26
|
+
|
|
27
|
+
The fastest way to start — no install, no servers to run. Sign up at [completionkit.com](https://completionkit.com) and you get the same engine you'd self-host, hosted for you. Best fit if you want to skip the Rails ops.
|
|
28
|
+
|
|
29
|
+
### Or run the standalone app
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
Self-host the same engine. No existing Rails app needed.
|
|
31
32
|
|
|
32
33
|
```bash
|
|
33
34
|
git clone https://github.com/homemade-software-inc/completion-kit.git
|
|
@@ -36,7 +36,10 @@
|
|
|
36
36
|
<p class="ck-kicker">Prompt</p>
|
|
37
37
|
<% judged_run = @runs.select { |r| r.prompt_id == @prompt.id && r.status == "completed" }.find { |r| r.responses.joins(:reviews).exists? } %>
|
|
38
38
|
<% if judged_run %>
|
|
39
|
-
<%= button_to
|
|
39
|
+
<%= button_to suggest_run_path(judged_run), method: :post, class: ck_button_classes(:light, variant: :outline) + " ck-button--sm", form_class: "inline-block" do %>
|
|
40
|
+
<%= heroicon_tag "sparkles", variant: :outline, size: 14, "aria-hidden": "true" %>
|
|
41
|
+
Suggest improvements
|
|
42
|
+
<% end %>
|
|
40
43
|
<% else %>
|
|
41
44
|
<p class="ck-hint"><%= link_to "Run a test with judging configured", new_run_path(prompt_id: @prompt.id), class: "ck-link" %> to get AI-suggested improvements.</p>
|
|
42
45
|
<% end %>
|
|
@@ -66,7 +66,10 @@
|
|
|
66
66
|
<% if latest_suggestion %>
|
|
67
67
|
<%= link_to "View suggestion", suggestion_path(latest_suggestion, from: "run"), class: ck_button_classes(:light, variant: :outline) + " ck-button--sm" %>
|
|
68
68
|
<% elsif @run.status == "completed" && @run.responses.joins(:reviews).exists? %>
|
|
69
|
-
<%= button_to
|
|
69
|
+
<%= button_to suggest_run_path(@run), method: :post, class: ck_button_classes(:light, variant: :outline) + " ck-button--sm", form_class: "inline-block" do %>
|
|
70
|
+
<%= heroicon_tag "sparkles", variant: :outline, size: 14, "aria-hidden": "true" %>
|
|
71
|
+
Suggest improvements
|
|
72
|
+
<% end %>
|
|
70
73
|
<% end %>
|
|
71
74
|
</div>
|
|
72
75
|
<p class="ck-prompt-preview__text" id="prompt_text"><%= @run.prompt.template %></p>
|