
Effective Prompt Engineering Best Practices
Prompt engineering best practices come with a catch: Wei found chain of thought lifts reasoning on very large models but barely helps smaller ones.
The exact change
Developers who used GitHub Copilot finished a JavaScript server implementation task 55.8 percent faster than those in the control group (the median was 71 minutes compared with 160 minutes). Prompt quality, which is how developers phrased their natural language comments above functions to guide Copilot, explained large differences in suggestion quality within the treatment group according to the study. When developers wrote descriptive function docstrings before coding that gave Copilot explicit context on inputs, outputs and purpose, they accepted suggestions 42 percent more often than developers who wrote minimal or no docstrings. One of the first rigorous measures of how prompt quality affects downstream AI tool productivity in a professional setting came out of research that appeared as "The Impact of AI on Developer Productivity: Evidence from GitHub Copilot."
Developers who used GitHub Copilot finished a JavaScript server implementation task 55.8 percent faster than those in the control group (the average was about 71 minutes compared with about 161 minutes). (removed) (removed) The study appeared as "The Impact of AI on Developer Productivity: Evidence from GitHub Copilot."
Why this is better
Paper reports average completion time 71.17 min (treated) vs 160.89 min (control), not medians. Source: https://arxiv.org/abs/2302.06590 The paper (95 randomly assigned Upwork programmers, 55.8% faster) does not examine prompt quality or comment phrasing. Source: https://arxiv.org/pdf/2302.06590 No 42 percent suggestion-acceptance figure or docstring comparison appears in the paper. Source: https://arxiv.org/pdf/2302.06590 The paper measures productivity with and without Copilot; it does not measure prompt quality. Source: https://arxiv.org/abs/2302.06590
More by Emir Baycan in AI Machine Learning
- Correction Key Concerns in AI Ethics and Societal Impact
- Correction What Is Machine Learning: How It Actually Works
- Correction What Is the Turing Test and Why It Still Matters
- Correction What Is Transfer Learning in AI: How Models Reuse Knowledge