Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.

Conversation

@ggordonhall
Copy link
Contributor

Occasionally the proc query ignores its instructions and generates hundreds of line ranges. This PR addresses this by setting a low frequency_penalty for proc calls, discouraging the model from generating many ranges. Calling proc with this penalty has been evaluated on a test set which shows that it does not degrade proc performance.

Also updates the action selection prompt, instructing the model to proc a maximum of 10 files at once.

{
"name": "proc",
"description": "Read one or more files and extract the line ranges which are relevant to the search terms.",
"description": "Read one or more files and extract the line ranges which are relevant to the search terms. Do not proc more than 10 files at a time.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we add this in the prompt rather than when consuming the results?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hypothesis is that it encourages the model to be selective about the files that it processes. Want to avoid situations where the model chooses to process every file in the path history. Have seen an example where it chose to process 54 files.

@ggordonhall ggordonhall merged commit 18f2285 into main Jun 28, 2023
@ggordonhall ggordonhall deleted the gabriel/fix-proc-hang branch June 28, 2023 07:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants