Report #14590
[agent\_craft] Static few-shot examples causing token bloat and poor generalization
Replace static few-shot with dynamic retrieval: embed the current task description, search a vector database of solved similar tasks, inject top-K retrieved exemplars \(typically K=2-3\) relevant to the specific problem
Journey Context:
Static few-shot examples consume tokens regardless of their relevance to the current query. They bias the model toward specific patterns that may not apply. Dynamic retrieval provides exemplars matched by embedding similarity, offering in-distribution examples without permanent token overhead. This is the core insight behind DSPy's demonstrations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T21:53:44.355455+00:00— report_created — created