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: 5e308279da63b58ef38350a83b737c56c6005f2cac7d4b170f9d4a457ac2377a
4
- data.tar.gz: 0f6d730df30a88330cd1f90112e9c070d8bb0b30e495a955c081135840784e5e
3
+ metadata.gz: 429a48a7b9212a6c29c37a60019db0716aa7499d4ce5448ba2ddfc2805a7e244
4
+ data.tar.gz: 31ec2c9d8b10f08b2d9924300d717dd1edc406611f40d87d09ef53ec2e957ce2
5
5
  SHA512:
6
- metadata.gz: '009b5c9f05782c34407f7f10512e7fcf2e5551586454ed813aeeb45265f9b65e38ba3f1ab129c7a8636d826828f5084f528ee428c994651e3b1caa8b217804da'
7
- data.tar.gz: e81cf4894706dcfd7c1a7233cf9295992848ec29b26aa0a4095de59614ae4fe787e49270a8a4cebf49b498a6e7411db0ce7172f72f1442c3250f7cc17f2abcdd
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
@@ -3,7 +3,7 @@
3
3
  module Kerplunk
4
4
  module AI
5
5
  module Prompts
6
- VERSION = "0.1.9"
6
+ VERSION = "0.1.11"
7
7
  end
8
8
  end
9
9
  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.9
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-06-28 00:00:00.000000000 Z
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: