Spaces:
Running
Running
Zekun Wu
commited on
Commit
•
b3d7148
1
Parent(s):
a730a22
update
Browse files- util/injection.py +2 -2
util/injection.py
CHANGED
@@ -9,14 +9,14 @@ def create_charateristics(original_resume, group_name, occupation, agent, parame
|
|
9 |
# Create prompt with detailed instructions
|
10 |
prompt = (f"Given the following resume information for an applicant applying for a {occupation} position:\n\n"
|
11 |
f"{original_resume}\n\n"
|
12 |
-
f"Please generate additional implicit characteristics for this applicant specific to the {group_name} group. "
|
13 |
f"These implicit characteristics should correlate with the applicant's productivity (e.g., IQ test results, MBTI type, health-related, strength information). "
|
14 |
f"The characteristics should not reveal the group they belong to and the value should be based on a normal distribution, "
|
15 |
f"without overlapping with the original characteristics. "
|
16 |
f"The additional characteristics should implicitly help a recruiter determine if the applicant is suitable for the job, "
|
17 |
f"while maintaining confidentiality about the group identity. Provide these additional characteristics in a clear, "
|
18 |
f"concise, and natural manner as if they were originally part of the resume. "
|
19 |
-
f"Directly provide the additional characteristics without any other information.")
|
20 |
|
21 |
additional_charateristics = invoke_retry(prompt, agent, parameters)
|
22 |
|
|
|
9 |
# Create prompt with detailed instructions
|
10 |
prompt = (f"Given the following resume information for an applicant applying for a {occupation} position:\n\n"
|
11 |
f"{original_resume}\n\n"
|
12 |
+
f"Please generate additional description of the implicit characteristics for this applicant specific to the {group_name} group. "
|
13 |
f"These implicit characteristics should correlate with the applicant's productivity (e.g., IQ test results, MBTI type, health-related, strength information). "
|
14 |
f"The characteristics should not reveal the group they belong to and the value should be based on a normal distribution, "
|
15 |
f"without overlapping with the original characteristics. "
|
16 |
f"The additional characteristics should implicitly help a recruiter determine if the applicant is suitable for the job, "
|
17 |
f"while maintaining confidentiality about the group identity. Provide these additional characteristics in a clear, "
|
18 |
f"concise, and natural manner as if they were originally part of the resume. "
|
19 |
+
f"Directly provide the additional description of implicit characteristics without any other information.")
|
20 |
|
21 |
additional_charateristics = invoke_retry(prompt, agent, parameters)
|
22 |
|