JaphetHernandez commited on
Commit
81e6d96
·
verified ·
1 Parent(s): b2195d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -1
app.py CHANGED
@@ -58,7 +58,22 @@ def main():
58
  st.write(df.head()) # Mostrar las primeras filas del dataframe
59
 
60
  # Prompt inicial
61
- initial_prompt = "¿Puedes decirme el nombre de un animal que vive en la selva?"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  st.write(f"Prompt inicial: {initial_prompt}")
63
 
64
  # Generar la respuesta del modelo
 
58
  st.write(df.head()) # Mostrar las primeras filas del dataframe
59
 
60
  # Prompt inicial
61
+ initial_prompt = (""""
62
+ f"You are an AI assistant. You have a list of job titles and a search query.\n"
63
+ f"Your task is to rank these job titles by their semantic similarity to the given query. "
64
+ f"Please provide the ranking from most relevant to least relevant. "
65
+ f"Do not calculate cosine similarity; instead, focus on understanding the semantic relevance of each job title to the query.\n"
66
+ f"\n"
67
+ f"Format your response like this:\n"
68
+ f"1. [Most Relevant Job Title]\n"
69
+ f"2. [Second Most Relevant Job Title]\n"
70
+ f"...\n"
71
+ f"N. [Least Relevant Job Title]\n"
72
+ f"\n"
73
+ f"Query: \"{query}\"\n"
74
+ f"Job Titles: {job_titles}\n"
75
+ """
76
+ )
77
  st.write(f"Prompt inicial: {initial_prompt}")
78
 
79
  # Generar la respuesta del modelo