kerplunk-ai-prompts 0.1.9 → 0.1.11
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: 429a48a7b9212a6c29c37a60019db0716aa7499d4ce5448ba2ddfc2805a7e244
|
4
|
+
data.tar.gz: 31ec2c9d8b10f08b2d9924300d717dd1edc406611f40d87d09ef53ec2e957ce2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: add46b829fe79c1f5d708a9290964aed2f8496231b73e5664c75fa2f54f4abbc1849b45e5013487384534bfa5f3f15ef07b5e6869a45958d53d5d87ec1f3af9d
|
7
|
+
data.tar.gz: d9705b7b3d6cc5529a982901832694261600c0e28643d9dacbabce7d87c91f99055a78ceee24243573598d0844b28dd7d0e5ea116b380cd90e2d79c6f03b4f74
|
@@ -8,9 +8,17 @@ module Kerplunk
|
|
8
8
|
#
|
9
9
|
# @param description [String] the job description to base the interview questions on
|
10
10
|
# @return [String] the generated prompt for interview questions
|
11
|
-
def self.generate_prompt(description)
|
11
|
+
def self.generate_prompt(description, generate_coding_questions = false)
|
12
12
|
raise ArgumentError, "description is required" if description.nil? || description.empty?
|
13
13
|
|
14
|
+
generate_coding_question_callout = ""
|
15
|
+
generate_coding_question_example = ""
|
16
|
+
|
17
|
+
if generate_coding_questions
|
18
|
+
generate_coding_question_callout = "- provide a scenario to assess the candidate's technical skills which may include code snippets, please ensure any code snippets are the raw source code and not markdown formatted. Please follow the example format below for coding questions."
|
19
|
+
generate_coding_question_example = ', { "question": "question6", "code_blocks": [{ "content": "<source code>", "language": "<language>" }] }'
|
20
|
+
end
|
21
|
+
|
14
22
|
<<~PROMPT
|
15
23
|
Respond with a RAW JSON object only. Do not include any explanatory text outside the JSON.
|
16
24
|
|
@@ -35,17 +43,19 @@ module Kerplunk
|
|
35
43
|
- are not too easy.
|
36
44
|
- are deep enough to assess the candidate’s technical knowledge.
|
37
45
|
- use industry standard terminology and jargon as much as possible.
|
46
|
+
#{generate_coding_question_callout}
|
47
|
+
|
38
48
|
|
39
49
|
If for any reason you are unable to generate the questions, please try again. Please check your output, and rerun the prompt if you are not satisfied with the results.
|
40
50
|
|
41
51
|
An example output should be JSON and look like the below. Please be sure the output is a valid JSON format even if you cannot generate the interview questions. The JSON should not include any markdown or newline characters such as "```json" that would normally be used for rendering in markdown.
|
42
52
|
{
|
43
53
|
"personal_questions": ["question1", "question2", "question3"],
|
44
|
-
"technical_questions": ["question4", "question5"],
|
54
|
+
"technical_questions": ["question4", "question5"#{generate_coding_question_example}],
|
45
55
|
"cultural_questions": ["question6", "question7"]
|
46
56
|
}
|
47
57
|
|
48
|
-
###
|
58
|
+
### Job Description
|
49
59
|
#{description}
|
50
60
|
PROMPT
|
51
61
|
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.11
|
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-
|
11
|
+
date: 2024-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A collection of AI prompt templates for use in Kerplunk
|
14
14
|
email:
|