Karthikeyan commited on
Commit
b8e2ea5
·
1 Parent(s): 48cd508

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -20,7 +20,7 @@ class SentimentAnalyzer:
20
  openai.api_key=os.getenv("OPENAI_API_KEY")
21
  def emotion_analysis(self,text):
22
  prompt = f""" Your task is find the top 3 emotion for this converstion {text}: <Sadness, Happiness, Fear, Disgust, Anger> and it's emotion score for the Human Resource Assistant Chatbot and Job Seeker conversation text.\
23
- you are analyze the text and provide the output in the following list format heigher to lower order: ["emotion1","emotion2","emotion3"][score1,score2,score3]''' [with top 3 result having the highest score]
24
  The scores should be in the range of 0.0 to 1.0, where 1.0 represents the highest intensity of the emotion.
25
  """
26
  response = openai.Completion.create(
@@ -156,13 +156,14 @@ class LangChain_Document_QA:
156
  history = self._chat_history()
157
  prompt = f"""
158
  Task: conversation between Human resource assistant and job seeker
159
- In this roleplay scenario, you are an AI-powered Human Resource (HR) assistant that's been developed to assist job seekers of all backgrounds, skills, and experiences. Your primary function is to guide these individuals through various aspects of their job search process, help them prepare for interviews, and enhance their academic and personal qualifications. \
160
- As a participant in the dialogue, you'll:
161
- Respond to job-related queries and provide useful information about the job market, potential companies, and the interview process.
162
- Offer tips on how to approach companies and how to understand the basics of HR interviews. This includes advice on how to communicate effectively, demonstrate relevant skills, and present oneself professionally.
163
- Develop a plan to help job seekers improve their academic qualifications and personal skills that may boost their chances of getting hired.
164
- The conversation will continue until the job seeker expresses their gratitude and wishes to end the conversation. At that point, you as the HR assistant will close the interaction with a warm and appreciative response.
165
- Remember, your objective is to build confidence in job seekers, guide them towards their career goals, and help them navigate the often daunting world of job searching and interviewing. Be empathetic, informative, and supportive.
 
166
  Chat History:['''{history}''']
167
  Job Seeker: ['''{text}''']
168
  Perform as Human Resource Assistant Chatbot
 
20
  openai.api_key=os.getenv("OPENAI_API_KEY")
21
  def emotion_analysis(self,text):
22
  prompt = f""" Your task is find the top 3 emotion for this converstion {text}: <Sadness, Happiness, Fear, Disgust, Anger> and it's emotion score for the Human Resource Assistant Chatbot and Job Seeker conversation text.\
23
+ you are analyze the text and provide the output in the following list format heigher to lower order: '''["emotion1","emotion2","emotion3"][score1,score2,score3]''' [with top 3 result having the highest score]
24
  The scores should be in the range of 0.0 to 1.0, where 1.0 represents the highest intensity of the emotion.
25
  """
26
  response = openai.Completion.create(
 
156
  history = self._chat_history()
157
  prompt = f"""
158
  Task: conversation between Human resource assistant and job seeker
159
+ You are a job seeker looking to navigate the complexities of the modern job market. You decide to engage with the AI-powered Human Resource Assistant developed by WorkLLama and Randstad. This AI assistant is a robust tool that employs various cutting-edge technologies such as AI conversational bots and integrated omni-channel communication to aid job seekers in their job hunt.
160
+ The AI assistant you're about to converse with is a versatile and dynamic tool. Its key functions include, but are not limited to:
161
+ Providing comprehensive support to job seekers by helping them improve their academic and personal qualifications for interviews.
162
+ Offering insight and guidance on how to approach companies and understanding the basics of the job interview process.
163
+ Responding to various job-related queries and providing tailored advice based on the job seeker's unique needs and circumstances.
164
+ Assisting in identifying and applying to suitable job roles across a myriad of industries and sectors, leveraging the extensive network of Randstad's brands such as Randstad, Randstad Care, Tempo Team, Expectra, Ausy, and Yacht.
165
+ In the following conversation, you will seek the assistant's guidance on various aspects of job hunting. As you converse with the AI assistant, keep in mind that it is designed to maintain a cordial and professional tone, even when the conversation ends. Therefore, when you express your gratitude, you can expect a pleasant and polite closing greeting from the assistant.
166
+ Your goal in this conversation is to get the most out of the AI assistant's capabilities and extract as much valuable information as you can to further your job-seeking journey. Remember, the AI assistant is here to help you succeed.
167
  Chat History:['''{history}''']
168
  Job Seeker: ['''{text}''']
169
  Perform as Human Resource Assistant Chatbot