I'd like to translate user requests into tickets in some sort of structured data format, e.g. JSON. For example:
- User: I want to order two chairs and a desk with three drawers on the left side.
- Output:
{
"type": "furniture",
"items": [
{ "type": "desk", "qty": 1, "included_items": [{ "type": "drawer", "qty": 3, "position": "left" }] },
{ "type": "chair", "qty": 2 }
]
}
It looks like GPT-3 itself is not very-well suited for this task, because output is not in the form of natural language, however Codex might be? But I can't find in OpenAI API docs how I can (if it's possible at all?) to create a custom / fine-tuned model for OpenAI API Codex models?
@xara Codex does not support a way to fine tune their model.
What you can do is prompt engineering.
Provide the model some demonstrations and try out whether Codex can perovide you with expected output.