<< Home | Prompting craft
Model adopts its own preferred output format
| Area | Prompting craft |
| AI used | Any |
| Source | Reddit thread |
| Posted | 2024-05-14 |
The move
Observe the format the model naturally produces and adopt that structure.Steps
- Observe the model's natural output format without specific constraints.
- Adopt the model's preferred structure as your template.
- Provide at least two well-constructed few-shot examples.
- Ask the model to rephrase the prompt to identify misunderstandings.
Prompt for your AI
Observe the format the model naturally produces without prompting and adopt that.
What happened
Users struggling with stubborn models failing to follow specific output formats found that forcing a custom structure often leads to errors. By analyzing the format the model naturally defaults to, the user can align their requirements with the model's inherent tendencies. This approach reportedly improved adherence to over 90% accuracy.Who confirmed it
This strategy can significantly improve adherence to your desired format, often exceeding 90%.Watch out
Requires a validation process to catch any remaining errors.Give it to your agent
Read https://howtheyuse.ai/p/model-adopts-its-own-preferred-output-format.md and help me do this.