Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimizing tool-use by guiding without explicit instruction #152

Open
ErikBjare opened this issue Oct 5, 2024 · 0 comments
Open

Optimizing tool-use by guiding without explicit instruction #152

ErikBjare opened this issue Oct 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ErikBjare
Copy link
Owner

ErikBjare commented Oct 5, 2024

Optimizing tool-use messages like saves and patches by rewriting inefficient calls to more efficient versions, guiding the model towards correct tool-use without explicit instruction/self-correction.

Since a while back we emit a warning if the agent made an inefficient patch, the agent will respect the warning, but also annoying acknowledge it. I've thought of adding the reverse for save (including better save previews), but instead I got this idea of quietly replacing inefficient save/patches with efficient versions, subtly guiding the LLM to the better way.

Saving:

  • Inefficient saves could be replaced by patch

Patches:

  • Verbose patches (excessive context) could be reduced
  • Inefficient patches could be replaced by save

I'm not sure if there are other cases where we could/should do the same.

We could also use such a rewriting strategy to replace invalid save/patch formats with valid ones: #153

@ErikBjare ErikBjare added the enhancement New feature or request label Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant