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

Autocomplete: Remove obvious prompt-continuations #2974

Merged
merged 2 commits into from
Jan 31, 2024

Conversation

philipp-spiess
Copy link
Contributor

Closes #2912

If the completion is very obviously a prompt continuation, we should not show it. I noticed this too a bunch of time with // Path: ... style completions in StarCoder.

Test plan

  • Added unit tests

@philipp-spiess philipp-spiess requested review from valerybugakov and a team January 31, 2024 13:32
Copy link
Contributor

@abeatrix abeatrix left a comment

Choose a reason for hiding this comment

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

Does it affect the quality of the response?

@philipp-spiess
Copy link
Contributor Author

@abeatrix Can you clarify this question? This is going to hide those bad responses but they can still happen. In practice though, this doesn't seem to happen often. Would be insightful to have analytics though how many things we filter out with these checks

@philipp-spiess philipp-spiess merged commit 4e3b565 into main Jan 31, 2024
14 checks passed
@philipp-spiess philipp-spiess deleted the ps/ac-remove-prompt-continuations branch January 31, 2024 15:11
philipp-spiess added a commit that referenced this pull request Feb 1, 2024
Closes #2912

If the completion is very obviously a prompt continuation, we should not
show it. I noticed this too a bunch of time with `// Path: ...` style
completions in StarCoder.

## Test plan

- Added unit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Autocomplete suggestion showing "Human:..."
3 participants