-
Notifications
You must be signed in to change notification settings - Fork 160
Expand file tree
/
Copy pathAIBF.yaml
More file actions
372 lines (365 loc) · 10.8 KB
/
Copy pathAIBF.yaml
File metadata and controls
372 lines (365 loc) · 10.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
openapi: 3.0.1
info:
title: AIBF Resume Bias Detection API
description: API for interacting with the AIBF Resume Bias Detection System, including resume submission, ATS evaluation, bias detection, HR feedback, and model retraining.
version: 1.0.0
contact:
name: AIBF Support
email: support@aibf.com
servers:
- url: https://resumescan.appambient.com/
description: Production Server
paths:
/api/resumes:
get:
summary: Retrieves a list of all resumes
operationId: getResumes
responses:
'200':
description: A list of all resumes
content:
application/json:
schema:
type: array
items:
type: object
properties:
resume_id:
type: string
candidate_id:
type: string
file_url:
type: string
submitted_at:
type: string
format: date-time
post:
summary: Submits a new resume for ATS evaluation and bias detection
operationId: submitResume
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
resume_id:
type: string
candidate_id:
type: string
file_url:
type: string
submitted_at:
type: string
format: date-time
responses:
'201':
description: Resume submitted successfully
content:
application/json:
schema:
type: object
properties:
ats_decision_id:
type: string
candidate_id:
type: string
score:
type: number
format: float
final_verdict:
type: string
'400':
description: Invalid input
'500':
description: Server error
/api/ats/evaluate:
post:
summary: Evaluates a resume's content and provides ATS decision and data points
operationId: evaluateATS
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
resume_id:
type: string
job_description:
type: string
responses:
'200':
description: ATS decision generated
content:
application/json:
schema:
type: object
properties:
ats_decision_id:
type: string
candidate_id:
type: string
data_points:
type: object
additionalProperties: true
score:
type: number
format: float
final_verdict:
type: string
'400':
description: Invalid request
'500':
description: Server error
/api/aibf/analyze:
post:
summary: Analyzes ATS decision and resume for bias detection
operationId: analyzeAIBF
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
ats_decision_id:
type: string
resume_id:
type: string
responses:
'200':
description: AIBF bias detection completed
content:
application/json:
schema:
type: object
properties:
aibf_decision_id:
type: string
ats_decision_id:
type: string
candidate_id:
type: string
bias_score:
type: number
format: float
bias_threshold_limits:
type: object
properties:
upper_limit:
type: number
format: float
lower_limit:
type: number
format: float
'400':
description: Invalid input
'500':
description: Server error
/api/admin/feedback:
post:
summary: Submit HR feedback on ATS and AIBF decisions
operationId: submitHRFeedback
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
feedback_type:
type: string
hr_id:
type: string
ats_decision_id:
type: string
aibf_decision_id:
type: string
feedback_details:
type: string
final_verdict:
type: string
responses:
'201':
description: HR feedback submitted successfully
content:
application/json:
schema:
type: object
properties:
model_training_feedback_id:
type: string
ats_output:
type: string
aibf_output:
type: string
training_outcome:
type: string
'400':
description: Invalid feedback input
'500':
description: Server error
/api/model-training/retrain:
post:
summary: Retrains the bias detection model based on HR feedback and decisions
operationId: retrainModel
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
feedback_id:
type: string
model_version:
type: string
responses:
'200':
description: Model retraining triggered successfully
content:
application/json:
schema:
type: object
properties:
model_training_feedback_id:
type: string
ats_output:
type: string
aibf_output:
type: string
training_outcome:
type: string
'400':
description: Invalid request
'500':
description: Server error
components:
schemas:
Resume:
type: object
properties:
resume_id:
type: string
description: Unique identifier for the resume
candidate_id:
type: string
description: Unique identifier for the candidate
file_url:
type: string
description: URL of the resume document
submitted_at:
type: string
format: date-time
description: Date and time the resume was submitted
ATSInput:
type: object
properties:
resume_id:
type: string
description: The ID of the resume to evaluate
job_description:
type: string
description: Job description for the candidate's position
ATSDecision:
type: object
properties:
ats_decision_id:
type: string
description: Unique identifier for the ATS decision
candidate_id:
type: string
description: The candidate ID linked to this decision
data_points:
type: object
additionalProperties: true
description: Key-value pairs of decision-making data points
score:
type: number
format: float
description: ATS score for the resume
final_verdict:
type: string
description: Final ATS verdict (e.g., accepted, rejected)
AIBFInput:
type: object
properties:
ats_decision_id:
type: string
description: The ATS decision ID to analyze for bias
resume_id:
type: string
description: The resume ID associated with this decision
AIBFDecision:
type: object
properties:
aibf_decision_id:
type: string
description: Unique identifier for the AIBF decision
ats_decision_id:
type: string
description: Associated ATS decision ID
candidate_id:
type: string
description: Candidate ID linked to this AIBF decision
bias_score:
type: number
format: float
description: Calculated bias score
bias_threshold_limits:
type: object
properties:
upper_limit:
type: number
format: float
description: Upper limit of the bias threshold
lower_limit:
type: number
format: float
description: Lower limit of the bias threshold
HRFeedback:
type: object
properties:
feedback_type:
type: string
description: Type of feedback (e.g., positive, negative)
hr_id:
type: string
description: HR identifier providing feedback
ats_decision_id:
type: string
description: ATS decision ID linked to feedback
aibf_decision_id:
type: string
description: AIBF decision ID linked to feedback
feedback_details:
type: string
description: Detailed feedback from HR
final_verdict:
type: string
description: Final verdict based on feedback
ModelTrainingInput:
type: object
properties:
feedback_id:
type: string
description: HR feedback ID used for retraining
model_version:
type: string
description: Version of the model to retrain
ModelTrainingFeedback:
type: object
properties:
model_training_feedback_id:
type: string
description: Unique identifier for the model training feedback
ats_output:
type: string
description: ATS output used in retraining
aibf_output:
type: string
description: AIBF output used in retraining
training_outcome:
type: string
description: Outcome of the retraining process (success, failure)