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

enhance prompt #21

Merged
merged 2 commits into from
Dec 9, 2023
Merged

enhance prompt #21

merged 2 commits into from
Dec 9, 2023

Conversation

nohzafk
Copy link
Collaborator

@nohzafk nohzafk commented Dec 9, 2023

By giving explicit instructions to the model to respond with “only the classification keyword from the list,” we're increasing the likelihood that the model’s output will be limited to one of the options you provided, without any added phrases or sentences.

Previously using a small local model, sometimes the model will response with "The broswer type is ...", this updated prompt performance much better.

@MichaelYuhe
Copy link
Owner

Have u tested this prompt for gpt models? Don't have a computer nearby to test myself now

@nohzafk
Copy link
Collaborator Author

nohzafk commented Dec 9, 2023

Just tested with OpenAI models, the result is good, but you might want to try it youself.

@MichaelYuhe MichaelYuhe added the enhancement New feature or request label Dec 9, 2023
@MichaelYuhe
Copy link
Owner

Thank you so much! #3 is fixed too

@MichaelYuhe MichaelYuhe merged commit 700e92e into MichaelYuhe:main Dec 9, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants