Description:
Context:
This issue is in response to feedback received on PR #7 regarding our self-correction mechanism:
"The feedback can cause bloating. I don't exactly know how much token each iteration adds, but I feel the original problem gets buried under feedback noise!"
Problem:
The current implementation of our self-correction loop appends the critic's feedback directly to the end of the original prompt for each retry attempt. As noted in the feedback, this approach has two main drawbacks:
- Prompt Bloating: It progressively increases the token count with each iteration, leading to higher costs and latency.
- Context Dilution: The original, core problem description gets pushed further up in the context window, potentially reducing its significance to the LLM and "burying it under feedback noise."
Description:
Context:
This issue is in response to feedback received on PR #7 regarding our self-correction mechanism:
Problem:
The current implementation of our self-correction loop appends the critic's feedback directly to the end of the original prompt for each retry attempt. As noted in the feedback, this approach has two main drawbacks: