fix: remove system outputs from tool examples in system prompt #320
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I noticed even good models like Sonnet hallucinated System outputs when ran in non-streaming mode. (might be fixed by #306)
Not sure if this is actually better, should ideally evaluate with evals.
TODO:
Important
Enhance example cleaning by adding
strip_system
parameter to remove system messages inget_examples
andclean_example
.get_examples
inbase.py
now acceptsstrip_system
parameter to remove system messages from examples.clean_example
in__init__.py
updated to handlestrip_system
parameter, filtering out system messages and their content.get_tool_prompt
inbase.py
callsget_examples
withstrip_system=True
to exclude system messages from prompts.get_examples
andclean_example
to support new functionality.This description was created by for 0b1d259. It will automatically update as commits are pushed.