'''Below is a job listing from the url:'''+ url +''' I want you to extract information from the job listing, and return a json format. First I share the job listing, then the desired json output structure. Output only the json object, nothing else. Before you start, look at the job listing closely. All the required information is in there somewhere.
- Make sure dates are in a correct date format.
- For the salary, make sure you include the currency symbol (€ or $)
- Give the page a score from 0 - 100, where 0 means the page doesn't look like a job listing at all, and 100 it's most definitely a job listing page.
you dont need to do that anymore with structured outputs. with structured outputs it will auto format the data based on the schema you give it 100% of the time.
Interested in the prompt, care to share?
'''Below is a job listing from the url:'''+ url +''' I want you to extract information from the job listing, and return a json format. First I share the job listing, then the desired json output structure. Output only the json object, nothing else. Before you start, look at the job listing closely. All the required information is in there somewhere.
- Make sure dates are in a correct date format.
- For the salary, make sure you include the currency symbol (€ or $)
- Give the page a score from 0 - 100, where 0 means the page doesn't look like a job listing at all, and 100 it's most definitely a job listing page.
[JOB LISTING START]''' + page_content + '''[JOB LISTING END] [JSON OUTPUT START]
{
"joburl": "",
"jobtitle": "",
"jobdescriptionsummary": "",
"jobtasksresponsibilities": [],
"jobpostingdate": "",
"joblocation": "",
"hoursperweek": "",
"candidaterequirements": [],
"benefits": {
"minsalary": "",
"maxsalary": "",
"otherbenefits": []
},
"contactperson": [{
"fullname": "",
"jobtitle": "",
"phonenumber": "",
"email": "",
"linkedinurl": ""
}],
"jobpostingenddate": "",
"company": "",
"companydescription": "",
"joblistingscore": ""
}
[JSON OUTPUT END]'''
I see the prompt is a bit weird here since underscores are used to make text italic
Thanks!
you dont need to do that anymore with structured outputs. with structured outputs it will auto format the data based on the schema you give it 100% of the time.