Provide agent instruction set on converting incidence to prevalence data #159
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.
What's new
This PR addresses the need to convert incidence data to prevalence data. This is accomplished by injecting a set of instructions, defined in
incidence_to_prevalence.md
to the agent as part of thegenerate_code
tool. I think this is preferable to hardcoding a templated procedure since it will be much more flexible in terms of its ability to handle datasets without super standardized formats and/or novel model compartments.Risks
The downside to this is that it increases the overall amount of information in the agent's context so therefore increases cost slightly. More importantly though, we don't really know how this new information in the agent's context might impact its decision making / code output for other tasks. This isn't easy to test, but based on my general assessment I think the risk is pretty low and it does seem like this incidence to prevalence conversion is one of if not the most important data transformation tasks.
Testing
This was tested with these datasets on staging:
and the following prompt: