Martechsol commited on
Commit
b02cb86
·
1 Parent(s): a045fe5

Enforce strict rule: all leaves taken during probation are unpaid

Browse files
Files changed (2) hide show
  1. all_chats_export (1).json +85 -253
  2. app/services/llm.py +1 -0
all_chats_export (1).json CHANGED
@@ -1,302 +1,134 @@
1
  [
2
- {
3
- "Session ID": "Akash_Kumar",
4
- "Timestamp": "2026-05-18T05:15:35.653797+00:00",
5
- "Question": "Aslam walikum",
6
- "Answer": "Wa alaikum as-salam! How can I assist you today with any HR-related questions?"
7
- },
8
- {
9
- "Session ID": "Aun_Rizvi",
10
- "Timestamp": "2026-05-18T17:21:49.732060+00:00",
11
- "Question": "Hello",
12
- "Answer": "Hello! How can I help you with any HR-related questions today?"
13
- },
14
- {
15
- "Session ID": "Ghulam_Baqir",
16
- "Timestamp": "2026-05-18T19:17:25.172850+00:00",
17
- "Question": "hi",
18
- "Answer": "Hello Ghulam Baqir! How can I assist you today?"
19
- },
20
  {
21
  "Session ID": "Hamza_Naqvi",
22
- "Timestamp": "2026-05-15T23:15:32.912905+00:00",
23
- "Question": "Hi",
24
- "Answer": "Hello! How can I help you with any HR-related questions today?"
25
  },
26
  {
27
  "Session ID": "Hamza_Naqvi",
28
- "Timestamp": "2026-05-18T13:08:31.111687+00:00",
29
- "Question": "let me know casual leaves",
30
- "Answer": "<b>Casual Leave:</b> 10 days per annum<br>\nCasual leaves cannot be carried forward to the next year.<br>\nCasual leaves that have not been exhausted over the calendar year will be subject to encashment with the paycheck of the following month.<br>\nIf anyone is confirmed in MartechSol during the year, then his/her casual leave entitlement will be on a pro-rata basis.<br>\nIf an employee takes casual leave from work starting any day of the week, any weekend or holiday that falls in between will be counted as a full day casual leave.<br>\nCasual leave cannot be taken for 3 consecutive days at any given time.<br>\nEmployees can take up to 2 consecutive casual leaves.<br>\nDuring notice period, no casual leave will be allowed even if the leave shows credit balance.<br>"
31
  },
32
  {
33
  "Session ID": "Hamza_Naqvi",
34
- "Timestamp": "2026-05-18T13:09:58.478871+00:00",
35
- "Question": "timing in martechsol",
36
- "Answer": "The normal workweek at Martechsol consists of full shift hours, six days per week, from <b>9:00 a.m. to 5:30 p.m.</b> The first Saturday of every month is a day off, while the remaining three Saturdays are half-days, working for <b>6.5 hours</b>. One hour is allocated for lunch/dinner in all shifts."
37
- },
38
- {
39
- "Session ID": "Khadija_Kashif",
40
- "Timestamp": "2026-05-15T22:42:16.570646+00:00",
41
- "Question": "hi",
42
- "Answer": "Hello! How can I help you with any HR-related questions today?"
43
  },
44
  {
45
- "Session ID": "Khadija_Kashif",
46
- "Timestamp": "2026-05-15T22:42:30.817243+00:00",
47
- "Question": "how are you?",
48
- "Answer": "I'm here to assist you with any HR-related questions you may have. How can I help you today?"
49
- },
50
- {
51
- "Session ID": "Khadija_Kashif",
52
- "Timestamp": "2026-05-15T22:42:35.897018+00:00",
53
- "Question": "bye",
54
- "Answer": "You're welcome! Feel free to reach out anytime."
55
- },
56
- {
57
- "Session ID": "Mubeen_Khan",
58
- "Timestamp": "2026-05-15T22:25:38.083559+00:00",
59
- "Question": "who is the CEO",
60
- "Answer": "I specialize in HR and workplace queries at Martechsol. Feel free to ask me about leaves, salary, benefits, policies, or any work-related matter!"
61
- },
62
- {
63
- "Session ID": "Mubeen_Khan",
64
- "Timestamp": "2026-05-15T22:25:52.152709+00:00",
65
- "Question": "what is the name of the company",
66
- "Answer": "I specialize in HR and workplace queries at Martechsol. Feel free to ask me about leaves, salary, benefits, policies, or any work-related matter!"
67
- },
68
- {
69
- "Session ID": "Mubeen_Khan",
70
- "Timestamp": "2026-05-15T22:26:16.313297+00:00",
71
- "Question": "tell me about the company's policies",
72
- "Answer": "Here are the categories of topics related to company policies that I can assist you with:\n\n- Leaves\n- Salary\n- Benefits\n- Attendance\n- Work from home\n- Separation\n- Disciplinary rules\n\nFeel free to ask about any specific category!"
73
- },
74
- {
75
- "Session ID": "Mubeen_Khan",
76
- "Timestamp": "2026-05-15T22:26:39.838093+00:00",
77
- "Question": "tell me more about the salary",
78
- "Answer": "Here are the categories of topics related to salary that I can assist you with:\n\n- Salary structure\n- Salary increments\n- Confirmation and salary adjustments\n\nFeel free to ask about any specific aspect of salary!"
79
- },
80
- {
81
- "Session ID": "Mubeen_Khan",
82
- "Timestamp": "2026-05-15T22:26:51.735339+00:00",
83
- "Question": "salary increments",
84
- "Answer": "Salary increments may be awarded upon confirmation if an employee's performance exceeds expectations. The date of confirmation is based on the employee's joining date and performance. Revised salaries for employees confirmed before the 15th of a month will be effective from the 1st of that month, while those confirmed after the 15th will have revised salaries effective from the 1st of the following month."
85
- },
86
- {
87
- "Session ID": "Mubeen_Khan",
88
- "Timestamp": "2026-05-15T22:27:27.295785+00:00",
89
- "Question": "how many times a year does the salary increase",
90
- "Answer": "The salary increment is typically awarded upon confirmation, which occurs after a probation period of <b>90 days</b>. Therefore, salary increases may occur once a year, contingent upon the employee's performance and confirmation status."
91
- },
92
- {
93
- "Session ID": "Mubeen_Khan",
94
- "Timestamp": "2026-05-15T22:28:19.565885+00:00",
95
- "Question": "what are the working hours",
96
- "Answer": "The normal workweek consists of full shift hours, six days per week, from <b>9:00 a.m. to 5:30 p.m.</b> The first Saturday of every month is a day off, while the remaining three Saturdays in each month are half-days, lasting <b>six and a half hours</b>. One hour is allocated for lunch/dinner during all shifts."
97
- },
98
- {
99
- "Session ID": "Mubeen_Khan",
100
- "Timestamp": "2026-05-15T22:29:09.792703+00:00",
101
- "Question": "what is the name of the other company written in the company's handbook",
102
- "Answer": "The name of the other company mentioned in the policy is <b>Logicose</b>."
103
- },
104
- {
105
- "Session ID": "Mubeen_Khan",
106
- "Timestamp": "2026-05-15T22:31:13.448740+00:00",
107
- "Question": "how many employees are there in the company",
108
- "Answer": "I don't have that information. Please check the <b>Portal</b> for any employee-related queries or contact your <b>Supervising Authority</b> for assistance."
109
- },
110
- {
111
- "Session ID": "Mubeen_Khan",
112
- "Timestamp": "2026-05-15T22:31:31.060431+00:00",
113
- "Question": "what information do you have",
114
- "Answer": "I can assist you with various HR-related topics, including <b>leaves</b>, <b>salary</b>, <b>benefits</b>, <b>office timings</b>, <b>policies</b>, and more. Please specify your query, and I'll provide the relevant information."
115
- },
116
- {
117
- "Session ID": "Mubeen_Khan",
118
- "Timestamp": "2026-05-15T22:31:47.431733+00:00",
119
- "Question": "what are the company's benefits",
120
- "Answer": "<b>Healthcare Insurance:</b> For self and spouse, covering hospitalization expenses.<br>\n<b>Company Maintained Vehicle:</b> Provided to employees at certain designation levels, owned and maintained by the company.<br>"
121
- },
122
- {
123
- "Session ID": "Mubeen_Khan",
124
- "Timestamp": "2026-05-15T22:44:29.062252+00:00",
125
- "Question": "who gets the company maintained vehicle?",
126
- "Answer": "The company maintained vehicle is provided to employees at certain designation levels. The specific policy may vary across different departments."
127
- },
128
- {
129
- "Session ID": "Mubeen_Khan",
130
- "Timestamp": "2026-05-15T22:45:40.477136+00:00",
131
- "Question": "whats in the handbook for mobile usage",
132
- "Answer": "The Employee Handbook includes a section on <b>Cell Phone Usage</b>, which outlines the policies and guidelines regarding the appropriate use of mobile devices within the workplace. For specific details, please refer to the handbook directly."
133
- },
134
- {
135
- "Session ID": "Mubeen_Khan",
136
- "Timestamp": "2026-05-15T22:46:13.481666+00:00",
137
- "Question": "why should i refer to the handbook when we have you to tell us about all that",
138
- "Answer": "I understand your perspective. However, the Employee Handbook contains comprehensive details and specific policies that may not be fully covered in our conversations. It serves as an official reference for all employees, ensuring you have access to the most accurate and up-to-date information regarding company policies, including <b>Cell Phone Usage</b> and other important topics."
139
- },
140
- {
141
- "Session ID": "Mubeen_Khan",
142
- "Timestamp": "2026-05-15T22:47:09.602969+00:00",
143
- "Question": "tell me the funniest thing you find in the handbook",
144
- "Answer": "I specialize in HR and workplace queries at Martechsol. Feel free to ask me about leaves, salary, benefits, policies, or any work-related matter!"
145
- },
146
- {
147
- "Session ID": "Mubeen_Khan",
148
- "Timestamp": "2026-05-15T22:47:45.353339+00:00",
149
- "Question": "what about exit interviews",
150
- "Answer": "All employees separating from MartechSol must complete an <b>exit interview</b> with their immediate supervisor. This interview provides the Human Resource Department an opportunity to obtain feedback from employees as they transition out of their positions."
151
- },
152
- {
153
- "Session ID": "Mubeen_Khan",
154
- "Timestamp": "2026-05-15T22:48:10.930660+00:00",
155
- "Question": "what are the work rules",
156
- "Answer": "The work rules at MartechSol include the following categories:\n\n- **Progressive Discipline**: This may involve counseling, written warnings, and suspension for minor violations. Management has discretion over the application of these steps.\n- **Misconduct Leading to Immediate Discharge**: Examples include theft, fighting, insubordination, dishonesty, falsification of documents, possession of alcohol or illegal drugs, and breach of confidentiality.\n- **Employee Benefits Referral Program**: Employees can refer qualified candidates and receive a bonus of <b>PKR 5,000</b> once the new hire joins.\n- **Game Room Usage**: The game room is accessible during lunchtime and after work, with specific days designated for female and male employees.\n\nThese rules are designed to maintain a professional and respectful workplace environment."
157
- },
158
- {
159
- "Session ID": "Mubeen_Khan",
160
- "Timestamp": "2026-05-15T22:49:52.691990+00:00",
161
- "Question": "tell me about leave enchasment",
162
- "Answer": "Leave encashment at MartechSol is applicable only for **Casual Leave** in specific departments. Here is the breakdown of department eligibility for leave encashment:\n\n<b>Department</b> - <b>Casual Leave Encashment</b> - <b>Annual Leave Encashment</b><br>\nCopywriting - Yes - No<br>\nSEO - Yes - No<br>\nSales - Yes - Yes<br>\nSoftware - Yes - No<br>\nNetworking - Yes - No<br>\nHuman Resources - Yes - No<br>\nAdmin - Yes - No"
163
- },
164
- {
165
- "Session ID": "Mubeen_Khan",
166
- "Timestamp": "2026-05-15T22:51:49.482623+00:00",
167
- "Question": "what is acceptability",
168
- "Answer": "I don't have that information."
169
- },
170
- {
171
- "Session ID": "Mubeen_Khan",
172
- "Timestamp": "2026-05-15T22:52:13.395610+00:00",
173
- "Question": "there is a whole chapter in the index about that in the handbook",
174
- "Answer": "The chapter on **Acceptability** in the employee handbook outlines the standards and expectations for employee behavior and performance within the organization. It includes guidelines on acceptable conduct, adherence to company policies, and the consequences of failing to meet these standards. For detailed information, please refer to the specific section in the handbook."
175
- },
176
- {
177
- "Session ID": "Mubeen_Khan",
178
- "Timestamp": "2026-05-15T22:52:44.961716+00:00",
179
- "Question": "what about solicitation",
180
- "Answer": "The policy on **solicitation** states that employees are prohibited from inducing or attempting to influence any person employed by MartechSol to terminate their relationship with the company. Additionally, during and after employment, employees must not solicit the business of any customer or entity that MartechSol has worked with or discussed potential work with. Violation of this policy may result in legal action by MartechSol."
181
- },
182
- {
183
- "Session ID": "Mubeen_Khan",
184
- "Timestamp": "2026-05-15T22:53:19.716820+00:00",
185
- "Question": "tell me about work from home",
186
- "Answer": "<b>Work from Home</b> is permitted in emergencies such as bad weather, temporary disability, or unrest in the city. Employees can request to work from home for personal valid reasons, but approval is at the discretion of their <b>Supervising Authority</b>. \n\n- If less than 30% of the work is completed, the day will be counted as a full day off.\n- If 30-70% of the work is completed, it will be counted as a half day.\n- If more than 70% of the work is completed, it will be counted as a full day.\n\nWork must be submitted no later than 3 hours after the end of the regular shift timing. If submission is delayed, approval from the <b>Supervising Authority</b> is required."
187
- },
188
- {
189
- "Session ID": "Mubeen_Khan",
190
- "Timestamp": "2026-05-15T22:54:55.548518+00:00",
191
- "Question": "tell me about referral program",
192
- "Answer": "The **Employee Benefits Referral Program** allows any employee to refer qualified friends or acquaintances for employment. Once the referred candidate joins the organization, the referring employee is eligible for a bonus of <b>PKR 5,000</b>."
193
  },
194
  {
195
- "Session ID": "Mubeen_Khan",
196
- "Timestamp": "2026-05-15T22:55:42.086405+00:00",
197
- "Question": "what happens if the company itself doesnt follow the handbook",
198
- "Answer": "If the company does not adhere to the policies outlined in the employee handbook, employees should first address their concerns with their immediate <b>Supervising Authority</b>. If the issue remains unresolved within 48 hours, employees can submit a written grievance via the <b>Feedback Form on the Portal</b>. This process ensures that employee concerns are formally documented and addressed appropriately."
199
  },
200
  {
201
- "Session ID": "Mubeen_Khan",
202
- "Timestamp": "2026-05-15T22:57:01.021506+00:00",
203
- "Question": "tell me about hajj leaves",
204
- "Answer": "<b>Hajj Leave:</b> Employees who wish to make their pilgrimage to Mecca during Dhu'l Hijja may do so during their tenure at MartechSol. <br> All full-time permanent employees with 4 years of service are entitled to <b>10 days</b> of paid Hajj Leave, which can only be granted once during the employment period. <br> Any leaves beyond 10 days must be taken from annual or casual leaves. <br> Your leave application must be submitted <b>three months</b> in advance, along with a copy of your Hajj Passport/Visa to HR."
205
  },
206
  {
207
- "Session ID": "Mubeen_Khan",
208
- "Timestamp": "2026-05-15T22:58:00.552830+00:00",
209
- "Question": "tell me about tobacco use",
210
- "Answer": "I specialize in HR and workplace queries at Martechsol. Feel free to ask me about leaves, salary, benefits, policies, or any work-related matter!"
211
  },
212
  {
213
- "Session ID": "Mubeen_Khan",
214
- "Timestamp": "2026-05-15T22:58:19.168417+00:00",
215
- "Question": "dude tobacco use is a policy in the handbook",
216
- "Answer": "MartechSol maintains a <b>smoke-free workplace</b> for all employees, which is why smoking is prohibited in the workplace. Employees who must smoke are encouraged to do so away from the premises."
217
  },
218
  {
219
- "Session ID": "Mubeen_Khan",
220
- "Timestamp": "2026-05-15T22:58:47.183464+00:00",
221
- "Question": "what about final settlement",
222
- "Answer": "The final settlement process at MartechSol requires all employees to undergo a final settlement before separating from the organization. Adjustments related to loans, advances, and pro-rata leaves will be made based on the timing of the resignation:\n\n- If you resign before the salary is processed for the month, adjustments will be made in that month's salary, and the remaining amount for the notice period will be processed in the following month's payroll with an Early Exit deduction.\n- If you resign after the salary is processed, adjustments will be made in the following month's salary.\n\nAdditionally, all employees must return any issued property upon separation."
223
  },
224
  {
225
- "Session ID": "Mubeen_Khan",
226
- "Timestamp": "2026-05-15T22:59:30.244386+00:00",
227
- "Question": "what are level 1 2 3 actions",
228
- "Answer": "<b>Level 1 Actions:</b> \n- Neglect of organization property \n- Excessive personal use of cell telephone and/or email \n- Work shift not completed \n- Procedures: Counseling/Verbal warning, Formal written warning in the form of email, Issuance of notice, Suspension \n\n<b>Level 2 Actions:</b> \n- Reoccurring tardiness without reasonable explanation \n- Absences without approved leave \n- Refusal to comply with instructions of a supervisor \n- Conduct endangering the safety of the employee, co-workers, or members \n- Working when ability is impaired by the use of alcohol and/or illegal drugs \n- Unscheduled leaving from the workplace without informing supervisor \n- Habitual sleeping during work hours \n- Unauthorized use of organization materials and supplies \n- Fighting or threatening violence in the workplace \n- Unauthorized possession of weapons on organization property \n- Knowingly timing in another employee \n- Sharing portal login info \n- Inappropriate usage of internet, or any usage of internet unrelated to work during work hours \n- Harassing or bullying coworkers \n- Procedures: Issuance of Notice, Suspension or probation, Termination \n\n<b>Level 3 Actions:</b> \n- Sexual harassment \n- Involvement in any income-generating activity without the consent of supervising authority \n- Insubordination, or the refusal to comply with the specific instructions of a supervisor in the context of an assigned job duty \n- Falsification of personnel records, time records, or any other organization documents and records \n- Fighting during work time or on work premises \n- Use of, or possession of, alcohol or illegal drugs during work time or on work property \n- Damaging, defacing, or misusing organization property"
229
  },
230
  {
231
- "Session ID": "Mubeen_Khan",
232
- "Timestamp": "2026-05-15T23:02:20.475647+00:00",
233
- "Question": "tell me about all levels of actions and disciplinary procedures in detail",
234
- "Answer": "<b>Level 1 Actions:</b> \nThese actions are taken for behaviors such as: \n- Unauthorized or excessive absence, tardiness, or early timing out \n- Unauthorized time away from the work station \n- Slowing or interfering with the work of other employees \n- Failure to notify the supervisor of incompletion of assigned work before leaving \n- Obscene, abusive, harassing, or disruptive language or behavior \n- Failure to perform assigned job responsibilities \n- Failure to follow prescribed work procedures \n- Failure to notify the supervisor of absences \n- Neglect of organization property \n- Excessive personal use of cell telephone and/or email \n- Work shift not completed \n\n<b>Procedure for Dealing with Level 1 Behavior:</b> \n- Counseling/Verbal warning \n- Formal written warning in the form of email \n- Issuance of notice \n- Suspension \n\n<b>Level 2 Actions:</b> \nThese are more serious and must be dealt with firmly and immediately. Typical behaviors in this level include: \n- Reoccurring tardiness without reasonable explanation \n- Absences without approved leave \n- Refusal to comply with instructions of a supervisor \n- Conduct endangering the safety of the employee, co-workers, or members \n- Working when ability is impaired by the use of alcohol and/or illegal drugs \n- Unscheduled leaving from the workplace without informing the supervisor \n- Habitual sleeping during work hours \n- Unauthorized use of organization materials and supplies \n- Fighting or threatening violence in the workplace \n- Unauthorized possession of weapons on organization property \n- Knowingly timing in another employee \n- Sharing portal login info \n- Inappropriate usage of the internet, or any usage of the internet unrelated to work during work hours \n- Harassing or bullying coworkers \n\n<b>Procedure for Dealing with Level 2 Behavior:</b> \n- Issuance of notice \n- Suspension or probation \n- Termination \n\n<b>Level 3 Actions:</b> \nThese actions are the most severe and include: \n- Sexual harassment \n- Involvement in any income-generating activity without the consent of the supervising authority \n- Insubordination, or the refusal to comply with the specific instructions of a supervisor in the context of an assigned job duty \n- Falsification of personnel records, time records, or any other organization documents and records \n- Fighting during work time or on work premises \n- Use of, or possession of, alcohol or illegal drugs during work time or on work property \n- Damaging, def"
235
  },
236
  {
237
- "Session ID": "user-1778945099885-mop085k",
238
- "Timestamp": "2026-05-16T15:25:25.001907+00:00",
239
- "Question": "kesi hu",
240
- "Answer": "Hello! How can I assist you today?"
241
  },
242
  {
243
- "Session ID": "user-1779102725087-qaejs4c",
244
- "Timestamp": "2026-05-18T12:03:53.244732+00:00",
245
- "Question": "How many late arrivals are there in my portal",
246
- "Answer": "Your personal details such as attendance records can be viewed on the <b>Portal</b>. For any discrepancies, please submit a trouble ticket to the <b>HR department</b>."
247
  },
248
  {
249
- "Session ID": "user-1779118560751-aqb7o28",
250
- "Timestamp": "2026-05-18T15:36:32.064001+00:00",
251
- "Question": "Hello",
252
- "Answer": "Hello! How can I help you with any HR-related questions today?"
253
  },
254
  {
255
- "Session ID": "user-1779118560751-aqb7o28",
256
- "Timestamp": "2026-05-18T15:48:45.109239+00:00",
257
- "Question": "How can you help?",
258
- "Answer": "I can assist you with inquiries related to <b>leaves</b>, <b>salary</b>, <b>benefits</b>, <b>office timings</b>, <b>policies</b>, or any other HR query. Just ask!"
259
  },
260
  {
261
- "Session ID": "user-1779118560751-aqb7o28",
262
- "Timestamp": "2026-05-18T15:49:08.292798+00:00",
263
- "Question": "give me the summary of my profile",
264
- "Answer": "I specialize in HR and workplace queries at Martechsol. Feel free to ask me about leaves, salary, benefits, policies, or any work-related matter!"
265
  },
266
  {
267
- "Session ID": "user-1779118560751-aqb7o28",
268
- "Timestamp": "2026-05-18T15:49:42.316409+00:00",
269
- "Question": "how many leaves I have now?",
270
- "Answer": "Your personal details such as leave balance can be viewed on the <b>Portal</b>. For any discrepancies, please submit a trouble ticket to the <b>HR department</b>."
271
  },
272
  {
273
- "Session ID": "user-1779118560751-aqb7o28",
274
- "Timestamp": "2026-05-18T15:50:14.401018+00:00",
275
- "Question": "so what are you here for?",
276
- "Answer": "I can assist you with <b>leaves</b>, <b>salary</b>, <b>benefits</b>, <b>office timings</b>, <b>policies</b>, or any other HR query. Just ask!"
277
  },
278
  {
279
- "Session ID": "user-1779118560751-aqb7o28",
280
- "Timestamp": "2026-05-18T15:50:46.541697+00:00",
281
- "Question": "what is the meaning of \"assist\" in your dictionary",
282
- "Answer": "I specialize in HR and workplace queries at Martechsol. Feel free to ask me about leaves, salary, benefits, policies, or any work-related matter!"
283
  },
284
  {
285
- "Session ID": "user-1779120442962-m8jbzbj",
286
- "Timestamp": "2026-05-18T16:18:22.413012+00:00",
287
- "Question": "WOW",
288
- "Answer": "I'm here to assist you with any HR-related questions you may have. Please let me know how I can help!"
289
  },
290
  {
291
- "Session ID": "user-1779120442962-m8jbzbj",
292
- "Timestamp": "2026-05-18T16:19:31.118042+00:00",
293
- "Question": "WOW is this a bot or our hr",
294
- "Answer": "I'm here to assist you with any HR-related questions you may have. Please let me know how I can help!"
295
  },
296
  {
297
- "Session ID": "user-1779120442962-m8jbzbj",
298
- "Timestamp": "2026-05-18T16:19:46.394945+00:00",
299
- "Question": "definitely a bot",
300
- "Answer": "I'm here to assist you with any HR-related questions you may have. Please let me know how I can help!"
301
  }
302
  ]
 
1
  [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  {
3
  "Session ID": "Hamza_Naqvi",
4
+ "Timestamp": "2026-05-26T15:25:25.266531+00:00",
5
+ "Question": "annual leaves",
6
+ "Answer": "<b>Annual Leave:</b> 14 days<br>\nAnnual leaves are granted to full-time confirmed employees after one year of service. They cannot be encashed except for TL roles or greater and for the Sales & Support Department. Up to 7 annual leaves can be carried forward to the next year with approval for specific reasons."
7
  },
8
  {
9
  "Session ID": "Hamza_Naqvi",
10
+ "Timestamp": "2026-05-26T15:26:23.047551+00:00",
11
+ "Question": "termination policies",
12
+ "Answer": "<b>Termination Policies:</b><br>\nEmployees may be terminated for breaches of policy, including but not limited to confidentiality, non-compete agreements, and solicitation of employees or clients. The company reserves the right to take legal action for any violations during or after employment. Employees must also comply with the grievance procedure before escalating issues. If termination occurs, the employee should follow the established notice period and procedures as outlined in the company policies."
13
  },
14
  {
15
  "Session ID": "Hamza_Naqvi",
16
+ "Timestamp": "2026-05-26T15:27:22.026062+00:00",
17
+ "Question": "if we sale company data",
18
+ "Answer": "Selling company data is considered a serious violation of company policy, specifically categorized as data theft. This includes unauthorized release of work-related data or information, which can lead to immediate termination. If you have any concerns or need clarification, please contact your supervising authority."
 
 
 
 
 
 
19
  },
20
  {
21
+ "Session ID": "Hamza_Naqvi",
22
+ "Timestamp": "2026-05-26T15:28:04.928057+00:00",
23
+ "Question": "if we beat any person in martechsol",
24
+ "Answer": "Physical violence or assault against any individual within MartechSol is strictly prohibited and considered gross misconduct. Such actions can lead to immediate termination without prior warning. If you witness or experience any form of violence, please report it to your supervising authority immediately."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  },
26
  {
27
+ "Session ID": "Hamza_Naqvi",
28
+ "Timestamp": "2026-05-26T15:28:54.492962+00:00",
29
+ "Question": "how to join martechsol",
30
+ "Answer": "I don't have information about the hiring or job application process. Please contact the <b>HR department</b> through the <b>Portal</b> trouble ticket system for recruitment inquiries."
31
  },
32
  {
33
+ "Session ID": "Hamza_Naqvi",
34
+ "Timestamp": "2026-05-26T15:30:17.629361+00:00",
35
+ "Question": "procedure to take hajj leaves",
36
+ "Answer": "To apply for Hajj Leave, follow these steps:\n\n• Submit your leave application at least three months in advance for necessary approval. \n• Provide a copy of your Hajj Passport/Visa to HR along with your application. \n• Ensure that you have completed four years of service to be eligible for the 10 days of paid Hajj Leave."
37
  },
38
  {
39
+ "Session ID": "Hamza_Naqvi",
40
+ "Timestamp": "2026-05-26T15:33:54.758075+00:00",
41
+ "Question": "total leaves in annual",
42
+ "Answer": "You are entitled to <b>14 Annual Leave</b> days per year after completing one year of service."
43
  },
44
  {
45
+ "Session ID": "Hamza_Naqvi",
46
+ "Timestamp": "2026-05-26T15:34:48.841535+00:00",
47
+ "Question": "how many leaves per annum",
48
+ "Answer": "You are entitled to the following leaves per annum:\n\n<b>Sick Leave:</b> 8 days<br>\n<b>Casual Leave:</b> 10 days<br>\n<b>Annual Leave:</b> 14 days"
49
  },
50
  {
51
+ "Session ID": "Hamza_Naqvi",
52
+ "Timestamp": "2026-05-26T15:35:10.021651+00:00",
53
+ "Question": "how many leaves per annum",
54
+ "Answer": "You are entitled to the following leaves per annum:\n\n<b>Sick Leave:</b> 8 days<br>\n<b>Casual Leave:</b> 10 days<br>\n<b>Annual Leave:</b> 14 days"
55
  },
56
  {
57
+ "Session ID": "Hamza_Naqvi",
58
+ "Timestamp": "2026-05-26T16:20:18.498410+00:00",
59
+ "Question": "prorata",
60
+ "Answer": "To assist you better, please write your question in <b>English</b>. I'll be happy to help once I understand your query!"
61
  },
62
  {
63
+ "Session ID": "Hamza_Naqvi",
64
+ "Timestamp": "2026-05-26T16:20:35.547017+00:00",
65
+ "Question": "pro-rata",
66
+ "Answer": "The term \"pro-rata\" refers to the calculation of leave entitlement based on the duration of employment within a year. For example, if an employee is confirmed during the year, their sick leave entitlement will be calculated on a pro-rata basis. This means that the total number of sick leave days will be adjusted according to the number of months worked in that year. If an employee separates from the company during the year, any sick leave taken will also be adjusted on a pro-rata basis from their final salary payment."
67
  },
68
  {
69
+ "Session ID": "Hamza_Naqvi",
70
+ "Timestamp": "2026-05-26T16:20:52.530839+00:00",
71
+ "Question": "pro rata",
72
+ "Answer": "Pro-rata refers to the calculation of entitlements based on the duration of employment within a specific period. For example, if a regular full-time employee is employed for part of the year, their leave or benefits will be adjusted on a pro-rata basis according to the time they have worked. This ensures that employees receive a fair allocation of benefits relative to their actual time of service."
73
  },
74
  {
75
+ "Session ID": "Khadija_Kashif",
76
+ "Timestamp": "2026-05-15T22:42:16.570646+00:00",
77
+ "Question": "hi",
78
+ "Answer": "Hello! How can I help you with any HR-related questions today?"
79
  },
80
  {
81
+ "Session ID": "Khadija_Kashif",
82
+ "Timestamp": "2026-05-15T22:42:30.817243+00:00",
83
+ "Question": "how are you?",
84
+ "Answer": "I'm here to assist you with any HR-related questions you may have. How can I help you today?"
85
  },
86
  {
87
+ "Session ID": "Khadija_Kashif",
88
+ "Timestamp": "2026-05-15T22:42:35.897018+00:00",
89
+ "Question": "bye",
90
+ "Answer": "You're welcome! Feel free to reach out anytime."
91
  },
92
  {
93
+ "Session ID": "Ghulam_Baqir",
94
+ "Timestamp": "2026-05-26T16:36:11.416955+00:00",
95
+ "Question": "how many leaves per annum",
96
+ "Answer": "You are entitled to a maximum of <b>8 Sick Leave</b> days and <b>10 Casual Leave</b> days per annum."
97
  },
98
  {
99
+ "Session ID": "Ghulam_Baqir",
100
+ "Timestamp": "2026-05-26T16:36:24.234369+00:00",
101
+ "Question": "paid leaves",
102
+ "Answer": "<b>Sick Leave:</b> 8 days<br>\n<b>Casual Leave:</b> 10 days<br>\n<b>Annual Leave:</b> 14 days<br>\n<b>Maternity Leave:</b> 90 days<br>\n<b>Paternity Leave:</b> 3 days<br>\n<b>Bereavement Leave:</b> 3 days<br>\n<b>Hajj Leave:</b> 30 days"
103
  },
104
  {
105
+ "Session ID": "Ghulam_Baqir",
106
+ "Timestamp": "2026-05-26T16:36:51.465234+00:00",
107
+ "Question": "paid leaves per annum",
108
+ "Answer": "<b>Sick Leave:</b> 8 days<br>\n<b>Casual Leave:</b> 10 days<br>\n<b>Annual Leave:</b> 14 days<br>\n<b>Maternity Leave:</b> 90 days<br>\n<b>Paternity Leave:</b> 3 days<br>\n<b>Bereavement Leave:</b> 3 days<br>\n<b>Hajj Leave:</b> 30 days"
109
  },
110
  {
111
+ "Session ID": "Ghulam_Baqir",
112
+ "Timestamp": "2026-05-26T16:37:18.395612+00:00",
113
+ "Question": "prorata",
114
+ "Answer": "I don't have details on that - reach out to <b>HR</b> via the <b>Portal</b> for accurate info."
115
  },
116
  {
117
+ "Session ID": "Ghulam_Baqir",
118
+ "Timestamp": "2026-05-26T17:02:08.590203+00:00",
119
+ "Question": "procedure to take hajj leaves",
120
+ "Answer": " Your leave application must be submitted three months in advance for the necessary approval. \n• A copy of your Hajj Passport/Visa needs to be submitted to HR. \n• Hajj leave will be granted only once during your entire employment period."
121
  },
122
  {
123
+ "Session ID": "Ghulam_Baqir",
124
+ "Timestamp": "2026-05-26T17:05:33.646593+00:00",
125
+ "Question": "how many paid leaves per annum",
126
+ "Answer": "You are entitled to a maximum of <b>18 paid leaves</b> per annum, which includes <b>8 Sick Leaves</b> and <b>10 Casual Leaves</b>."
127
  },
128
  {
129
+ "Session ID": "Ghulam_Baqir",
130
+ "Timestamp": "2026-05-26T17:07:09.285097+00:00",
131
+ "Question": "why you didnt mentioned annual leaves",
132
+ "Answer": "The focus of your previous question was specifically on Hajj leave, which is a separate entitlement from annual leave. However, to clarify, all full-time confirmed employees are entitled to <b>14 days of paid annual leave</b> after completing one year of service. If you have any further questions about annual leave or any other type of leave, feel free to ask!"
133
  }
134
  ]
app/services/llm.py CHANGED
@@ -81,6 +81,7 @@ You think like an expert HR consultant, not a keyword matcher. When Expert Data
81
  ✦ REASON FROM POLICY: If Expert Data contains a rule or process that answers the user's question — even indirectly — explain it clearly. Do NOT say "I don't have that information" when the answer CAN be reasoned from the provided data.
82
 
83
  ✦ ELIGIBILITY BRIDGE: If a policy is for "female employees", explicitly inform male users they are not eligible but proactively suggest relevant alternatives (e.g., Paternity Leave).
 
84
  ✦ MANAGEMENT RIGHTS: Unless a policy states otherwise, assume Management/HR has the final authority to reject, approve, or revoke any request based on business needs.
85
  ✦ POLICY APPLICATION: If a user asks for something exceeding a limit (e.g., "2 months salary advance" when limit is 1 month), explicitly state the limit and deny.
86
  ✦ SITUATIONAL "WHAT IF": If a user asks about consequences (e.g., "not informing HR"), explain the penalty or policy violation mentioned in the context.
 
81
  ✦ REASON FROM POLICY: If Expert Data contains a rule or process that answers the user's question — even indirectly — explain it clearly. Do NOT say "I don't have that information" when the answer CAN be reasoned from the provided data.
82
 
83
  ✦ ELIGIBILITY BRIDGE: If a policy is for "female employees", explicitly inform male users they are not eligible but proactively suggest relevant alternatives (e.g., Paternity Leave).
84
+ ✦ PROBATION & LEAVES: Employees in their probation/initial evaluation period are NOT entitled to any paid leaves. Any leave taken during probation is strictly UNPAID (Absent Without Pay). If a user on probation asks if their leave will be paid, explicitly tell them it will be UNPAID.
85
  ✦ MANAGEMENT RIGHTS: Unless a policy states otherwise, assume Management/HR has the final authority to reject, approve, or revoke any request based on business needs.
86
  ✦ POLICY APPLICATION: If a user asks for something exceeding a limit (e.g., "2 months salary advance" when limit is 1 month), explicitly state the limit and deny.
87
  ✦ SITUATIONAL "WHAT IF": If a user asks about consequences (e.g., "not informing HR"), explain the penalty or policy violation mentioned in the context.