Easily generate prompts, function definitions, and structured output schemas in the playground using the Generate button. The generated prompts provide a solid starting point for your projects, serving as an excellent foundation to then build out more specific requirements. Get started in the Playground.
I like it! I noticed that prompts it generates generally have a certain structure to them (list the steps, specify the output format, give examples, etc.). To build this feature, did you basically fine-tune gpt-4o on a bunch of examples of āgoodā prompts? Or was there more to it than that?
This is a great tool, I am new to OpenAI and I think I will start from hereā¦
It also is missing a quality of āprogrammingā, with a āyou areā and a āyou doā attitude in the output; instead thereās often ambiguous examples produced that would be far better as rewarded few-shot if that were to be done. Numbered instructions the āgenerateā AI follows donāt directly relate to thinking, procedural production, nor style.
The system instruction is written as if it was just a user input, but with no data to act on. Perhaps AI, given some instructions, is not sure if it follows the instructions or implements the instructions.
First, some UI concerns before the fault:
- it is not obvious that the generate AI has no idea of the existing function, schema, or prompt in playground boxes - āimprove the functionā commands will result in data loss.
- multiline input requires shift-enter. Very easy to send prematurely. A send button would be better.
Then:
- working with functions, the AI is completely oblivious to the need or capability of writing anyOf schemas, in response to a proposal for different types of outputs. Nor does it understand the implications of āstrictā or which model it is producing for.
- invalid function schemas are produced
Example: write a function where the AI has a choice of three schemas, one to report a policy violation, one to report it will await more input because āuserā looks incomplete, and one to disconnect or say goodbye.
Result: a useless strict function that will produce all three keys - and no sub-schemas.
Iteration: A long explanation of the availability of anyOf to contain a nest of unique schemas. Then, pasting the bad function by necessity.
Result: schemas with the same name, producing an error: "Invalid schema: Objects provided via 'anyOf' must not share identical first keys. Consider adding a discriminator key or rearranging the properties to ensure the first key is unique."
āGenerateā also hangs to eventually return errors quite often when inputting schemas to improve.
If the AI could make a preliminary minimum API call and take action on the error received from its failed response attempts, this could be avoided:
- Then the playground still produces āget codeā with invalid Python schemas.