Samarth991 commited on
Commit
6d9b2de
·
verified ·
1 Parent(s): bb281da

Update QnA.py

Browse files
Files changed (1) hide show
  1. QnA.py +19 -0
QnA.py CHANGED
@@ -9,6 +9,25 @@ from dotenv import load_dotenv
9
  load_dotenv()
10
 
11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  def Q_A(vectorstore,question,API_KEY):
13
  os.environ["GROQ_API_KEY"] = API_KEY
14
  llm_groq = ChatGroq(model="llama3-8b-8192")
 
9
  load_dotenv()
10
 
11
 
12
+ def prompt_template_to_analyze_resume():
13
+ template = """
14
+ You are provided with the Resume of the Candidate in the context below . As an Talent Aquistion bot , your task is to analyze that candidate is
15
+ is reliable or not. To find out reliability parameter check , How frequently the candidate has switched from one company to another.
16
+ Grade him on the given basis:
17
+ If less than 2 Year - very less Reliable
18
+ if more than 2 years but less than 5 years - Reliable
19
+ if more than 5 Years - Highly Reliable
20
+ Finally Generate a one line Response and small reason for it .
21
+ \n\n:{context}
22
+ """
23
+ prompt = ChatPromptTemplate.from_messages(
24
+ [
25
+ ('system',template),
26
+ ('human','input'),
27
+ ]
28
+ )
29
+ return prompt
30
+
31
  def Q_A(vectorstore,question,API_KEY):
32
  os.environ["GROQ_API_KEY"] = API_KEY
33
  llm_groq = ChatGroq(model="llama3-8b-8192")