JaphetHernandez commited on
Commit
2a93782
·
verified ·
1 Parent(s): 5635208

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -11
app.py CHANGED
@@ -65,19 +65,15 @@ def main():
65
 
66
  # Definir el prompt con in-context learning
67
  initial_prompt = (
68
- "Here are some examples of job title extraction:\n"
69
- "Example 1:\n"
70
- "List: ['Data Scientist', 'Machine Learning Engineer', 'AI Researcher']\n"
71
- "First job title: 'Data Scientist'\n"
72
- "\n"
73
- "Example 2:\n"
74
- "List: ['Software Developer', 'Backend Engineer', 'Frontend Developer']\n"
75
- "First job title: 'Software Developer'\n"
76
- "\n"
77
- "Now, extract the first job title from the following list:\n"
78
  f"List: {job_titles}\n"
79
- "First job title:"
 
 
80
  )
 
 
81
 
82
  st.write("Prompt inicial con In-context Learning:")
83
  st.write(initial_prompt)
 
65
 
66
  # Definir el prompt con in-context learning
67
  initial_prompt = (
68
+ "You are an AI assistant specialized in job title extraction and similarity calculation.\n"
69
+ "Your task is to extract the first job title from the following list and calculate the cosine similarity with the given query.\n"
 
 
 
 
 
 
 
 
70
  f"List: {job_titles}\n"
71
+ f"Query: '{query}'\n"
72
+ "Extracted first job title: \n"
73
+ "Cosine similarity score: "
74
  )
75
+
76
+
77
 
78
  st.write("Prompt inicial con In-context Learning:")
79
  st.write(initial_prompt)