Report #43139
[synthesis] Dynamic few-shot examples silently pull agent output format away from system prompt instructions
Apply a secondary classifier or rule-based filter on retrieved few-shot examples to ensure they strictly adhere to the current output schema, ignoring semantic similarity if the format is outdated.
Journey Context:
Dynamic few-shot prompting is standard for improving accuracy. Teams monitor the retrieval of examples. However, as the desired output format evolves \(e.g., adding a new JSON field\), old high-similarity examples in the vector store lack this field. The LLM mimics the few-shot examples over the system prompt. The output is valid JSON, but missing the new fields. It's a silent schema regression. Static validation catches it eventually, but the root cause is the few-shot retrieval overriding the system prompt.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T02:52:57.219750+00:00— report_created — created