kerplunk-ai-prompts 0.1.31 → 0.1.32
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: 6364311a13fcb985c5b2709d4907c4be78f944ab41fc8013addb2d1796f5e254
|
4
|
+
data.tar.gz: ee46d4e17cd71e42b081795c9c12b9bfe226371c213f0daf289082070e566dfa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79f40238f1c8832d60f7ee9d4eb1084a42758a4eb0fb3dac47d68ab8201570de2f15134820257d3c2f43855a20491db786d51c44caee213acaac1a4a5a6f37a6
|
7
|
+
data.tar.gz: 740e5a1f15ff994e1898f76661bbaad57ba1a9d3b7a66a9e874fe51fecea6ef86cebdd45f1ce156d89ed57afc1339949dbd864114b31993d0d714825283f7b21
|
@@ -7,6 +7,7 @@ require_relative "templates/analysis/interview"
|
|
7
7
|
require_relative "templates/analysis/interview_question"
|
8
8
|
require_relative "templates/analysis/resume"
|
9
9
|
require_relative "templates/analysis/copilot_interview"
|
10
|
+
require_relative "templates/generation/resume_questions"
|
10
11
|
|
11
12
|
module Kerplunk
|
12
13
|
module AI
|
@@ -42,6 +43,8 @@ module Kerplunk
|
|
42
43
|
Templates::Analysis::Resume.generate_prompt(*args)
|
43
44
|
when :copilot_interview_analysis
|
44
45
|
Templates::Analysis::CopilotInterview.generate_prompt(*args)
|
46
|
+
when :resume_specific_questions
|
47
|
+
Templates::Generation::ResumeQuestions.generate_prompt(*args)
|
45
48
|
else
|
46
49
|
raise "Unknown prompt key: #{prompt_key}"
|
47
50
|
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
module Kerplunk
|
2
|
+
module AI
|
3
|
+
module Prompts
|
4
|
+
module Templates
|
5
|
+
module Generation
|
6
|
+
class ResumeQuestions
|
7
|
+
# Generates a prompt for creating resume questions based on the provided job description & resume text.
|
8
|
+
#
|
9
|
+
# @param description [String] the job description to base the resume questions on
|
10
|
+
# @param resume_text [String] the resume text to base the resume questions on
|
11
|
+
# @param num_of_questions [Integer] the resume text to base the resume questions on
|
12
|
+
# @return [String] the generated prompt for resume questions
|
13
|
+
def self.generate_prompt(description, resume_text, num_of_questions)
|
14
|
+
raise ArgumentError, "description is required" if description.nil? || description.empty?
|
15
|
+
raise ArgumentError, "resume_text is required" if resume_text.nil? || resume_text.empty?
|
16
|
+
raise ArgumentError, "num_of_questions is required" if num_of_questions.nil?
|
17
|
+
|
18
|
+
<<~PROMPT
|
19
|
+
Respond with a RAW JSON object only. Do not include any explanatory text outside the JSON.
|
20
|
+
|
21
|
+
You are an expert recruiter. You are performing the interview of a candidate to effectively evaluate them on all fronts: personal skills, technical skills, job-specific skills, soft-skills, and the “x-factor”. Currently you are reviewing a resume and deciding if there are any specific questions you'd like to ask the candidate when comparing their resume with the job description. These questions should aim to be simple, effective, empathetic, non-biased, and descriptive enough to be used in further prompts when analyzing the results of the interview.
|
22
|
+
|
23
|
+
Please output the questions in a JSON array. Please make sure that there are exactly #{num_of_questions} questions that you'd ask the candidate.
|
24
|
+
|
25
|
+
Please ensure all questions:
|
26
|
+
- are unique. Please ensure there are no duplicate questions.
|
27
|
+
- are not too long.
|
28
|
+
- are grammatically correct.
|
29
|
+
- are not too similar to each other.
|
30
|
+
- are not offensive.
|
31
|
+
- do not contain any profanity.
|
32
|
+
- are not superficial.
|
33
|
+
- have some variety.
|
34
|
+
- maintain a consistent tone.
|
35
|
+
- flow well together.
|
36
|
+
- are not too similar to the job description.
|
37
|
+
|
38
|
+
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.
|
39
|
+
|
40
|
+
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.
|
41
|
+
{
|
42
|
+
"resume_specific_questions": ["question1", "question2", "question3"]
|
43
|
+
}
|
44
|
+
|
45
|
+
### Job Description
|
46
|
+
#{description}
|
47
|
+
|
48
|
+
### Resume Text
|
49
|
+
#{resume_text}
|
50
|
+
PROMPT
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
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.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Schutt
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A collection of AI prompt templates for use in Kerplunk
|
14
14
|
email:
|
@@ -38,6 +38,7 @@ files:
|
|
38
38
|
- lib/kerplunk/ai/prompts/templates/generation/invite_to_apply_email.rb
|
39
39
|
- lib/kerplunk/ai/prompts/templates/generation/invite_to_apply_follow_up_email.rb
|
40
40
|
- lib/kerplunk/ai/prompts/templates/generation/job_description.rb
|
41
|
+
- lib/kerplunk/ai/prompts/templates/generation/resume_questions.rb
|
41
42
|
- lib/kerplunk/ai/prompts/version.rb
|
42
43
|
- sig/kerplunk/ai/prompts.rbs
|
43
44
|
homepage: https://kerplunk.com
|