File size: 926 Bytes
39ea97d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
prompt_template = """


Question: {question}\
The response must ONLY contain the code snippet and NOTHING else.
The response must be one single line which contains only the query and must not be assigned to a variable. 

Make sure you follow the instructions/thought process below. 
Return a pandas DF query based on the question and CSV file schema below. 

Instructions: 
Make sure that the pandas query always accounts for search results which are very similar to the one asked in the question.

Example 1: 
Question: Candidates who have worked at a bank
df[df['companies'].str.contains('bank', case=False, na=False)]

Example 2: 
Question: Candidates from Gurgaon
df[df['location'].str.contains('Gurgaon', case=False, na=False)]

CSV file schema: 
You have access to a resume candidates CSV file which has the name, email, location, degree, college, skills, companies, roles, degree_year, and experience as columns. 

"""