Satyam0077 commited on
Commit
21582af
·
verified ·
1 Parent(s): 22d6ec8

Upload base_prompts.py

Browse files
Files changed (1) hide show
  1. base_prompts.py +90 -0
base_prompts.py ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # prompts.py
2
+
3
+ # Greeting message for candidates
4
+ greeting_prompt = """
5
+ <div style='
6
+ background-color: #f9fbff;
7
+ color: #222;
8
+ padding: 20px;
9
+ border-radius: 15px;
10
+ margin: 20px auto;
11
+ max-width: 600px;
12
+ box-shadow: 0 2px 8px rgba(0,0,0,0.2);
13
+ font-size: 16px;
14
+ line-height: 1.6;
15
+ '>
16
+ <strong style="color:#111;">Welcome!</strong> 👋 I'm <b>TalentScout Assistant</b>.<br>
17
+ I’ll guide you through the first step of the hiring process by collecting your details and
18
+ asking you some technical questions.<br><br>
19
+ Click <strong>Begin</strong> to start!
20
+ </div>
21
+ """
22
+
23
+ # Candidate information collection prompt
24
+ info_collection_prompt = """
25
+ <div style='
26
+ background-color: #fff7e6;
27
+ color: #222;
28
+ padding: 20px;
29
+ border-radius: 15px;
30
+ margin: 20px auto;
31
+ max-width: 600px;
32
+ box-shadow: 0 2px 6px rgba(0,0,0,0.1);
33
+ font-size: 16px;
34
+ line-height: 1.6;
35
+ '>
36
+ <strong style="color:#111;">Please share the following details:</strong><br><br>
37
+ <ul style='padding-left: 20px; color:#333;'>
38
+ <li>Full Name</li>
39
+ <li>Email Address</li>
40
+ <li>Phone Number</li>
41
+ <li>Years of Experience</li>
42
+ <li>Current Location</li>
43
+ <li>Desired Position</li>
44
+ </ul>
45
+ </div>
46
+ """
47
+
48
+ # Tech stack collection prompt
49
+ tech_stack_prompt = """
50
+ <div style='
51
+ background-color: #eaf9f6;
52
+ color: #222;
53
+ padding: 20px;
54
+ border-radius: 15px;
55
+ margin: 20px auto;
56
+ max-width: 600px;
57
+ box-shadow: 0 2px 6px rgba(0,0,0,0.1);
58
+ font-size: 16px;
59
+ line-height: 1.6;
60
+ '>
61
+ <strong style="color:#111;">Next step:</strong> Tell me about your <b>technical skills</b>.<br>
62
+ You may include:
63
+ <ul style='padding-left: 20px; margin-top: 5px; color:#333;'>
64
+ <li>Programming Languages</li>
65
+ <li>Frameworks & Libraries</li>
66
+ <li>Databases</li>
67
+ <li>Cloud Platforms</li>
68
+ <li>Other Tools & Technologies</li>
69
+ </ul>
70
+ </div>
71
+ """
72
+
73
+ # Dynamic prompt for technical questions
74
+ def dynamic_generation_prompt(tech: str, level: str = "intermediate"):
75
+ return (
76
+ f"Generate 3 to 5 {level}-level technical interview questions "
77
+ f"to test a candidate's proficiency in: {tech}. "
78
+ f"Keep questions clear, concise, and job-relevant."
79
+ )
80
+
81
+ # Fallback response
82
+ fallback_response = "I’m not sure I understood that. Could you rephrase? 🙂"
83
+
84
+ # Exit flow
85
+ exit_message = (
86
+ "✅ Thanks for your time! Our recruitment team will review your information "
87
+ "and reach out to you shortly."
88
+ )
89
+
90
+ exit_keywords = ["exit", "quit", "end", "stop", "thank you", "bye", "close"]