Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,10 +62,10 @@ def main():
|
|
62 |
job_titles = df['job_title'].tolist()
|
63 |
# Prompt inicial
|
64 |
initial_prompt = (""""
|
65 |
-
f"You are an AI assistant. You have a list of job titles and a search query.\n"
|
66 |
-
f"Your task is to rank these job titles by their semantic similarity to the given query. "
|
67 |
f"Please provide the ranking from most relevant to least relevant. "
|
68 |
-
f"Do not calculate cosine similarity; instead, focus on understanding the semantic relevance of each job title to the query.\n"
|
69 |
f"\n"
|
70 |
f"Format your response like this:\n"
|
71 |
f"1. [Most Relevant Job Title]\n"
|
|
|
62 |
job_titles = df['job_title'].tolist()
|
63 |
# Prompt inicial
|
64 |
initial_prompt = (""""
|
65 |
+
f"You are an AI assistant. You have a list of job titles in {job_titles} and a search query {query}.\n"
|
66 |
+
f"Your task is to rank these job titles {job_titles} by their semantic similarity to the given query {query}. "
|
67 |
f"Please provide the ranking from most relevant to least relevant. "
|
68 |
+
f"Do not calculate cosine similarity; instead, focus on understanding the semantic relevance of each job title in {job_titles] to the query {query}.\n"
|
69 |
f"\n"
|
70 |
f"Format your response like this:\n"
|
71 |
f"1. [Most Relevant Job Title]\n"
|