๐งพ Designing the Output Schema
The assistant produces structured outputs for each job posting based on a customizable schema defined in default_schema.json
. This file tells the assistant what fields to return and how to format them.
๐ Where It Livesโ
Path: flow_jobposting/default_schema.json
This schema is read every time a prompt is executed. Each field defines:
name
: name of the columndescription
: what the assistant should extract or infertype
: data type (string
,boolean
,number
, etc.)
โ๏ธ How to Customizeโ
To customize what the assistant outputs:
- Open
default_schema.json
- Add, remove, or edit a field
- Save and rerun the prompt pipeline
Example 1 โ Add a fieldโ
{
"name": "salary_guess",
"description": "Estimated annual salary in USD, if mentioned or inferable.",
"type": "number"
}
Example 2 โ Change a fieldโ
From:
{
"name": "recommend_apply",
"description": "Should the user apply to this job? Answer Yes or No.",
"type": "string"
}
To:
{
"name": "recommend_apply",
"description": "Score the job's quality from 1 (poor) to 5 (excellent).",
"type": "number"
}
โ ๏ธ Tip: The schema must match the prompt. If you ask for a 1โ5 score but keep the Yes/No prompt, results may fail or be inconsistent.
โ Try It Yourselfโ
Start small:
- Add one optional field
- Test it with the pipeline (
09_run_promptflow.py
) - View the results in the
results
tab of the app
If successful, youโll see your new column appear in the match table and CSV outputs.
๐ Why Use This?โ
- Tailor results to your personal criteria
- Extract deeper insights (culture, visa, location match)
- Power downstream automation (e.g., salary filters)
Schema customization gives you control over what the assistant returns โ and how useful it will be for your workflow.