kerplunk-ai-prompts 0.1.12 → 0.1.14
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: 5e856711b9ba7a202233b1e64b0ee953ed71330ecfc185ef7d9095c289da63a9
|
4
|
+
data.tar.gz: a3c8c410e5ae4c679fcfe496a620fc07e02e91c4a4472684c3d8b1192e7b2281
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99c05eac40b211da1051d87f9d27a75260137bb9d3258358560c07e0e01115ef5deb2e5d907e92e60a444afb8bac35ee109ca8758e6286ffac03f474fe33efdd
|
7
|
+
data.tar.gz: efd79c54dec281a9b5e0c70f05c7b76d7fc3411efa4e283e670af0dbb643d2b33bdfce80b3c581489398674282cd10a80056ddd4dcadf25341ecf6289860ba6e
|
@@ -3,7 +3,7 @@ module Kerplunk
|
|
3
3
|
module Models
|
4
4
|
# Represents an interview question with its associated details.
|
5
5
|
class InterviewQuestion
|
6
|
-
attr_accessor :index, :content, :suggested_answers, :transcript, :category, :previous_score
|
6
|
+
attr_accessor :index, :content, :suggested_answers, :transcript, :category, :previous_score, :code_blocks
|
7
7
|
|
8
8
|
# Initializes a new InterviewQuestion object.
|
9
9
|
#
|
@@ -13,13 +13,14 @@ module Kerplunk
|
|
13
13
|
# @param transcript [String, nil] the transcript of the interview related to the question
|
14
14
|
# @param category [String] the category of the question
|
15
15
|
# @param previous_score [Float] the previous score of the question
|
16
|
-
def initialize(index:, content:, suggested_answers:, category:, previous_score:, transcript: nil)
|
16
|
+
def initialize(index:, content:, suggested_answers:, category:, previous_score:, transcript: nil, code_blocks: nil)
|
17
17
|
@index = index
|
18
18
|
@content = content
|
19
19
|
@suggested_answers = suggested_answers
|
20
20
|
@transcript = transcript.nil? ? "<NOTRANSCRIPT />" : transcript
|
21
21
|
@category = category
|
22
22
|
@previous_score = previous_score
|
23
|
+
@code_blocks = code_blocks
|
23
24
|
end
|
24
25
|
|
25
26
|
# Generates a formatted prompt for the interview question.
|
@@ -29,6 +30,7 @@ module Kerplunk
|
|
29
30
|
<<~QUESTION_PROMPT
|
30
31
|
==== Question No. #{index + 1}
|
31
32
|
Question Text: #{content}
|
33
|
+
Question Code Blocks (if any): #{code_blocks}
|
32
34
|
Suggested Answer: #{suggested_answers}
|
33
35
|
Transcript: #{transcript}
|
34
36
|
Category: #{category}
|
@@ -15,7 +15,7 @@ module Kerplunk
|
|
15
15
|
generate_coding_question_example = ""
|
16
16
|
|
17
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."
|
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. Do not ask the candidate to provide a code snippet as answer, instead prompt the candidate to talk through their thought process and explain the code snippet."
|
19
19
|
generate_coding_question_example = ', { "content": "question6", "code_blocks": [{ "content": "<source code>", "language": "<language>" }] }'
|
20
20
|
end
|
21
21
|
|
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.14
|
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-07-
|
11
|
+
date: 2024-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A collection of AI prompt templates for use in Kerplunk
|
14
14
|
email:
|