Report #82847
[agent\_craft] Static few-shot examples bias agent toward outdated patterns or irrelevant syntax for the current task
Use embedding-based retrieval \(SBERT\) to dynamically select 2-3 examples from a curated library based on cosine similarity to the current task description, rather than hard-coding examples in the system prompt
Journey Context:
Static examples anchor the model to specific variable names, API versions, or patterns that may conflict with the current task. Random selection is noisy. Research shows that semantically similar examples \(measured by embeddings\) significantly improve accuracy over random or static selection. This trades prompt complexity for relevance and prevents version drift.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T21:39:15.757341+00:00— report_created — created