Vincent Claes
commited on
Commit
·
ac0cd25
1
Parent(s):
237ec40
jobfixers add matching score + css template
Browse files
app.py
CHANGED
@@ -51,6 +51,8 @@ def search(resume):
|
|
51 |
skills_match_predicted = utils.get_json_list_from_result(
|
52 |
skills_match, "skills_match_predicted"
|
53 |
)
|
|
|
|
|
54 |
updated_item = f"VACATURE {i + 1}: {vacancy}"
|
55 |
html_table += f"<tr><td>{updated_item}</td><td>{len(skills_match_predicted)}</td><td>{skills_match_predicted}</td></tr>"
|
56 |
html_table += "</table>"
|
|
|
51 |
skills_match_predicted = utils.get_json_list_from_result(
|
52 |
skills_match, "skills_match_predicted"
|
53 |
)
|
54 |
+
for skill in skills_match_predicted:
|
55 |
+
vacancy = vacancy.replace(skill, f'<span style="background-color: yellow;">{skill}</span>')
|
56 |
updated_item = f"VACATURE {i + 1}: {vacancy}"
|
57 |
html_table += f"<tr><td>{updated_item}</td><td>{len(skills_match_predicted)}</td><td>{skills_match_predicted}</td></tr>"
|
58 |
html_table += "</table>"
|
skills.py
CHANGED
@@ -107,9 +107,10 @@ def get_skills_match(llm, vacancy, resume) -> SequentialChain:
|
|
107 |
{vacancy}
|
108 |
```
|
109 |
|
110 |
-
Can you list the matches between the vacancy above delimited by three backticks with the resume below delimited by three backticks.
|
111 |
-
Consider skills that are not exact but are close to each other
|
112 |
If no skills match do not make up a response and return an empty list.
|
|
|
113 |
Return the matches as a JSON list on 1 line, do not add newlines or any other text.
|
114 |
|
115 |
```
|
|
|
107 |
{vacancy}
|
108 |
```
|
109 |
|
110 |
+
Can you list the matches concerning the skills between the vacancy above delimited by three backticks with the resume below delimited by three backticks.
|
111 |
+
Consider skills that are not exact but are close to each other. Put the most relevant and required first. Discard non relevant skills.
|
112 |
If no skills match do not make up a response and return an empty list.
|
113 |
+
Make sure the matched skills reference the skills coming out of the vacancy and not the resume.
|
114 |
Return the matches as a JSON list on 1 line, do not add newlines or any other text.
|
115 |
|
116 |
```
|