Prompts govern AI results: clarity, context, and specificity, combined with the right model, web searching when needed, and relevant documents, greatly improve AI responses, and prompt engineering is a skill you refine through practice and iteration.
Microsoft AI Research has introduced Automatic Prompt Optimization (APO), a general and nonparametric prompt optimization algorithm inspired by numerical gradient descent. APO automates and improves the process of prompt development for Large Language Models (LLMs) by using mini-batches of training data to obtain natural language "gradients" that describe the flaws in a given prompt. APO consistently outperformed the baselines on various NLP tasks, including jailbreak detection, hate speech detection, fake news detection, and sarcasm detection, highlighting its potential to raise the efficiency of big language models.