Beyond Handcrafted Prompts: The Era of Prompt Optimization
summary
Argues that refining prompts is a cheaper, repeatable alternative to fine‑tuning and avoids model lock‑in by programmatically swapping components; demos two toolflows: DSpy (signatures, modules, chain‑of‑thought module, many optimizers, needs ground‑truth examples) and Japa (few examples, LLM reflection that iterates prompts, selects best). Shows pipelines using GPT4 mini and a reflection LLM, reports optimizer produces stable prompts for new models, and frames this as ongoing context and agent optimization rather than one‑off work.
AI-written summary · about
