Prompt generation - OpenAI API
The Generate button in the Playground lets you generate prompts, functions, and schemas from just a description of your task. This guide will walk through exactly how it works. Creating prompts and schemas from scratch can be time-consuming, so generating them can help you get started quickly. The Generate button uses two main approaches: While we currently use meta prompts and schemas, we may integrate more advanced techniques in the future like DSPy and "Gradient Descent". A meta-prompt instructs the model to create a good prompt based on your task description or improve an existing one. The meta-prompts in the Playground draw from our prompt engineering best practices and real-world experience with users. We use specific meta-prompts for different output types, like audio, to ensure the generated prompts meet the expected format. Structured Outputs schemas and function schemas are themselves JSON objects, so we leverage Structured Outputs to generate them. This requires defining a s
The Generate button in the Playground lets you generate prompts, functions , and schemas from just a description of your task. This guide will walk through exactly how it works. Overview Creating prompts and schemas from scratch can be time-consuming, so generating them can help you get started quickly. The Generate button uses two main approaches: Prompts: We use meta-prompts that incorporate best practices to generate or improve prompts. Schemas: We use meta-schemas that produce valid JSON and function syntax. While we currently use meta prompts and schemas, we may integrate more advanced te
saved by
related reading
- Prompting best practicesdocs.anthropic.com
- Prompt engineering | OpenAI APIplatform.openai.com
- GitHub - brexhq/prompt-engineering: Tips and tricks for working with Large Language Models like OpenAI's GPT-4.github.com
- Cookbookcookbook.openai.com
- Text generation | OpenAI APIplatform.openai.com
- Prompt guidance | OpenAI APIdevelopers.openai.com
- General Tips for Designing Prompts | Prompt Engineering Guidepromptingguide.ai
- Model optimization | OpenAI APIplatform.openai.com
- Synthetic data generation (Part 1)cookbook.openai.com
- A guide to prompting AI (for what it is worth)oneusefulthing.org
- How To Train Your Pet LLM: Prompt Engineeringtxt.cohere.com
- API Overview | OpenAI API Referenceplatform.openai.com