Vincent Claes commited on
Commit
32028fb
1 Parent(s): 1ba9479

check more meticulously the matches

Browse files
Files changed (1) hide show
  1. skills.py +13 -11
skills.py CHANGED
@@ -102,28 +102,30 @@ def get_skills_chain(llm) -> SequentialChain:
102
  def get_skills_match(llm, vacancy, resume) -> SequentialChain:
103
 
104
  template_get_skills_intersection = """
105
-
106
  ```
 
 
107
  {vacancy}
108
  ```
109
 
110
- Can you list any matches you can find in both the vacancy above delimited by three backticks and the resume below delimited by three backticks.
111
- Look for job specific content, experience and location.
112
- If there is no match at all, do not make up a response and return an empty list.
113
- Make sure the a match occurs in both resume and vacancy.
114
 
115
  ```
 
116
  {resume}
117
  ```
118
 
119
- Return the matches as a JSON list where each element of the list is the following JSON object:
120
-
121
- "content" : <the matched content like it occured in the vacancy>,
122
- "resume_index" : <the number of times the match occured in the resume>,
123
- "vacancy_index" : <the number of times the match occured in the vacancy>
124
 
 
 
 
 
 
125
 
126
- Return the JSON list with no new lines or any other text.
 
127
  """
128
 
129
  prompt_get_skills_intersection = ChatPromptTemplate.from_template(
 
102
  def get_skills_match(llm, vacancy, resume) -> SequentialChain:
103
 
104
  template_get_skills_intersection = """
105
+
106
  ```
107
+ VACANCY:
108
+
109
  {vacancy}
110
  ```
111
 
 
 
 
 
112
 
113
  ```
114
+ RESUME:
115
  {resume}
116
  ```
117
 
118
+ Both the vacancy and resume are delimited by three backticks.
119
+ Can you list any matches you find in both the vacancy and the resume.
 
 
 
120
 
121
+ Each match is constructed as the following JSON object:
122
+
123
+ "content" : < any match related to job specific content, experience and location >
124
+ "resume_index" : < the number of times the match occurred in the resume >
125
+ "vacancy_index" : < the number of times the match occurred in the vacancy >
126
 
127
+ Return all the JSON objects as a JSON list with no new lines or any other text.
128
+ If there is no match at all, do not make up a response and return an empty list.
129
  """
130
 
131
  prompt_get_skills_intersection = ChatPromptTemplate.from_template(