Spaces:
Paused
Paused
Tao Wu
commited on
Commit
•
6a029cd
1
Parent(s):
6fc2fca
add skills query
Browse files- app/app.py +2 -0
app/app.py
CHANGED
@@ -33,7 +33,9 @@ def retrieve_documents(occupation,skills):
|
|
33 |
target_occupation_name, target_occupation_dsp, target_occupation_query = build_occupation_query(target_occupation)
|
34 |
for german_label in skills:
|
35 |
skill_query += german_label + ' '
|
|
|
36 |
skills_docs = retriever.get_relevant_documents(german_label)
|
|
|
37 |
candidate_docs.extend(skills_docs[:2])
|
38 |
query = 'target occupation: ' + target_occupation_query + ' Skills gap:' + skill_query
|
39 |
llama_query = 'info:' + target_occupation_name + ' ' + 'Skills gap:' + skill_query
|
|
|
33 |
target_occupation_name, target_occupation_dsp, target_occupation_query = build_occupation_query(target_occupation)
|
34 |
for german_label in skills:
|
35 |
skill_query += german_label + ' '
|
36 |
+
ocsk_query = target_occupation_name + ' ' + german_label
|
37 |
skills_docs = retriever.get_relevant_documents(german_label)
|
38 |
+
|
39 |
candidate_docs.extend(skills_docs[:2])
|
40 |
query = 'target occupation: ' + target_occupation_query + ' Skills gap:' + skill_query
|
41 |
llama_query = 'info:' + target_occupation_name + ' ' + 'Skills gap:' + skill_query
|