Skip to content

Instantly share code, notes, and snippets.

@ikanez
Created May 17, 2021 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ikanez/805e4ffd54ad59df0014bcc6d01ce7d1 to your computer and use it in GitHub Desktop.
Save ikanez/805e4ffd54ad59df0014bcc6d01ce7d1 to your computer and use it in GitHub Desktop.
Prompting GPT-3 with job titles, description, and expected syntax of job category/specialization
def call_openapi(title, desc):
response = openai.Completion.create(
engine="davinci",
prompt="""This is a job specialization classifier
Job title: Account Executive
Job description: Handle full set of accounts.\n
Familiar with Income Tax filing.\n
Maintain daily cash flow and reporting.\n
Prepare monthly and annual financial reports.\n
Maintain proper records of all accounting transactions.\n
Perform general administrative and other accounting duties from time to time.
Job specialization: Accounting/Finance
###
Job title: Senior Accounts Executive
Job description: To handle a full set of Accounts.\n
To be responsible for monthly closing of accounts with relevant supporting schedules in an accurate and timely manner.\n
Preparation of any financial ad-hoc reports.\n
Reviewing all invoices and payment instructions and preparing creditors’ payment for payment processing.\n
To prepare invoices for approval by the relevant Head of Department.\n
To ensure that the Account Payable records are updated accurately and timely for management reporting purposes.\n
To review and process staff claims.\n
Liaison with Auditors, Company Secretary, Tax Agent and Bank Officers
Job specialization: Accounting/Finance
###
Job title: Account Executive
Job description: Compiling and analyzing data to find trends.\n
Developing sales strategies and setting quotas.\n
Staying current on company offerings and industry trends.\n
Maintaining a database of contact information.\n
Building long-lasting, mutually beneficial relationships with external contacts and internal departments to create a better customer experience.
Job specialization: Sales/Marketing
###
Job title: Sales Consultant (General)
Job description: Develop and formulate strategic and tactical plans in a sizeable market portfolio. Ensure KPI and goals of the assigned accounts are met.\n
Build market position by identifying potential business deals and close relationship with existing and new customers;\n
Develop and formulate strategies to acquire new business.\n
Provide and screen data/information for potential business deals by analysing market strategy, examining risks and financial accuracy for business decision making;\n
Grow account depth and breadth\n
Develop Account plans for all KPI customers.\n
Accountable on driving every opportunity to closure with a close plan.\n
Keeping track of all post sales activities with daily sales report.
Job specialization: Sales/Marketing
###
Job title: {job_title}
Job description: {job_desc}
Job specialization:""".format(job_title=job_title, job_desc=job_desc),
temperature=0.3,
max_tokens=60,
top_p=1.0,
frequency_penalty=0.0,
presence_penalty=0.0,
stop=["###"]
)
return response
def extract_ans(response):
return print('Job specialization: ', response.choices[0].text.partition('\n')[0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment