Skip to main content

๐Ÿงพ 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 column
  • description: what the assistant should extract or infer
  • type: data type (string, boolean, number, etc.)

โœ๏ธ How to Customizeโ€‹

To customize what the assistant outputs:

  1. Open default_schema.json
  2. Add, remove, or edit a field
  3. 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.