kerplunk-ai-prompts 0.1.25 → 0.1.27
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: 3f5b878131924d2b98dd2bf669fbbca878c838f922d8a90b0847a74b4b62f01b
|
4
|
+
data.tar.gz: 0aba78351592dffd549396c0a08dfb9dd5262d748c4a6e43a2bc974787dcf658
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c884bb3898e09c8100be4d8fa6a106183bf8129697b0ddcb64813f446ea350f8741d39751e6c28fb203be183fb151d0e1a0c7f110ec90a0c6cdec12f6f85962
|
7
|
+
data.tar.gz: f7c7a91793ee823c9def4c43bd8181e62fdc263bab970d861efa5d03624c85cf4494e0f447c8a7ca4998574adcf9aea0fe10a425d73df0e12be97dca17171231
|
@@ -11,8 +11,9 @@ module Kerplunk
|
|
11
11
|
# @param question_type [String] the type/category of the interview question
|
12
12
|
# @param transcript [String] the transcript of the candidate's response
|
13
13
|
# @param suggested_answers [String] the suggested answers for the question
|
14
|
+
# @param user_input [String] the user's input for the question
|
14
15
|
# @return [String] the generated prompt
|
15
|
-
def self.generate_prompt(question, question_type, transcript, suggested_answers = nil)
|
16
|
+
def self.generate_prompt(question, question_type, transcript, suggested_answers = nil, user_input = nil)
|
16
17
|
raise ArgumentError, "question is required" if question.nil? || question.empty?
|
17
18
|
raise ArgumentError, "question_type is required" if question_type.nil? || question_type.empty?
|
18
19
|
|
@@ -42,6 +43,10 @@ module Kerplunk
|
|
42
43
|
Please remember that the question category is #{question_type} and the question is:
|
43
44
|
#{question}
|
44
45
|
|
46
|
+
#{if question_type.downcase == "yes/no" && user_input
|
47
|
+
"The user selected: #{user_input}\n\n"
|
48
|
+
end}
|
49
|
+
|
45
50
|
This is the transcript of the Interview Answers:
|
46
51
|
#{transcript}
|
47
52
|
PROMPT
|
@@ -53,9 +58,9 @@ module Kerplunk
|
|
53
58
|
def generate_scoring_instructions(question_type, suggested_answers)
|
54
59
|
if question_type.downcase == "yes/no"
|
55
60
|
if suggested_answers
|
56
|
-
"Please provide a score from 1 to 100 based on the correctness of the answer. Also, provide three high-level bullet pointed comments about how the candidate did on the question as the `commentary` key. Additionally,
|
61
|
+
"Please provide a score from 1 to 100 based on the correctness of the answer, taking into account the user's selected answer. Also, provide three high-level bullet pointed comments about how the candidate did on the question as the `commentary` key. Additionally, please evaluate whether the candidate's answer matches the user's selected answer and provide a score for that as well."
|
57
62
|
else
|
58
|
-
"Please do not provide a score. Provide three high-level bullet pointed comments about the candidate's response as the `commentary` key.
|
63
|
+
"Please do not provide a score. Provide three high-level bullet pointed comments about the candidate's response as the `commentary` key, considering the user's selected answer.Additionally, please evaluate whether the candidate's answer matches the user's selected answer and provide a score for that as well."
|
59
64
|
end
|
60
65
|
else
|
61
66
|
"Please provide a score from 1 to 100. Please provide three high-level bullet pointed comments about how the candidate did on the question as the `commentary` key."
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kerplunk-ai-prompts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Schutt
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A collection of AI prompt templates for use in Kerplunk
|
14
14
|
email:
|