JaphetHernandez commited on
Commit
2b17ca4
·
verified ·
1 Parent(s): 47ec4fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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"