kerplunk-ai-prompts 0.1.25 → 0.1.26
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: 1ba83f1cdedbee256ac579565c9313e0a81375f5bfdee3171067b203b87cd2ca
|
4
|
+
data.tar.gz: 58102ace1df9df70b06aa974cce79f649d4a1a98e7f1a661ff7cfbe7d402a786
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c26e8f50de5edd5bec173f0fa937baccc6c696478267718eceee410802dba85d4db555edd799156f1e1898ed056d9e86c8100c0362d43d851f702107393902e
|
7
|
+
data.tar.gz: 06efedcb08ec1bc87d74e25ebec1be1b0b4ad814d2260431cd57f3770ce104718cfb044519c5c89e8d5d1c137530aabd1b3f4638b582c264a919b9e67be5a8ed
|
@@ -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
|
|
@@ -37,12 +38,14 @@ module Kerplunk
|
|
37
38
|
],
|
38
39
|
"score": 4.5#{(question_type.downcase == "yes/no") ? ',
|
39
40
|
"answer": "Yes" or "No"' : ""}
|
41
|
+
"user_input": "#{user_input}"
|
40
42
|
}
|
41
43
|
|
42
44
|
Please remember that the question category is #{question_type} and the question is:
|
43
45
|
#{question}
|
44
46
|
|
45
47
|
This is the transcript of the Interview Answers:
|
48
|
+
#{user_input}
|
46
49
|
#{transcript}
|
47
50
|
PROMPT
|
48
51
|
end
|
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.26
|
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:
|