Spaces:
Paused
Paused
Tao Wu
commited on
Commit
·
5d61362
1
Parent(s):
6a029cd
add skills query
Browse files- app/app.py +2 -3
app/app.py
CHANGED
@@ -34,10 +34,9 @@ def retrieve_documents(occupation,skills):
|
|
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(
|
38 |
-
|
39 |
candidate_docs.extend(skills_docs[:2])
|
40 |
-
query =
|
41 |
llama_query = 'info:' + target_occupation_name + ' ' + 'Skills gap:' + skill_query
|
42 |
print(query)
|
43 |
docs = retriever.get_relevant_documents(query)
|
|
|
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(ocsk_query)
|
|
|
38 |
candidate_docs.extend(skills_docs[:2])
|
39 |
+
query = target_occupation_query + ' ' + skill_query
|
40 |
llama_query = 'info:' + target_occupation_name + ' ' + 'Skills gap:' + skill_query
|
41 |
print(query)
|
42 |
docs = retriever.get_relevant_documents(query)
|