-
Notifications
You must be signed in to change notification settings - Fork 44.9k
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
Persuading AI to always give json in response with GPT-4 #1042
Conversation
I asked GPT-4 to improve the part about making sure it will give json in response
Working better! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏🏻
Before merging, would someone care to experiment a little more rigorously with effective prompts? This prompt seems unnecessarily verbose / token-eating. The original prompt looks fishy:
... can't json.loads parse an arbitrary string? So it should be something like Also, you don't say "please" when you are giving it an order. That gives it options. You don't have to be polite. You can't hurt its feelings. |
I totally agree with @p-i- that unnecessarily verbose prompts likely won't help. Early iterations of the DAN (Do Anything Now) jailbreak were unnecessarily verbose, and then people figured out the prompt could be MUCH shorter. |
@hbhere There are conflicts now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked the app many times with this new prompt, it doesn't solve the problem (nor making it worst)
it does add lots of tokens.
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
2 similar comments
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
This is a mass message from the AutoGPT core team. For more details (and for infor on joining our Discord), please refer to: |
@hbhere we're currently building challenges in order to measure the effect of these types of changes, and I would like to discuss with you. Please join use on Discord through this link https://discord.gg/autogpt (if not already) DM me on the Auto-GPT discord channel (my discord is merwanehamadi). |
This is one of those prompt related PRs that could be closed immediately if auto-gpt had support for a folders with selectable "prompt profiles", as per: #1354 (comment) |
I asked GPT-4 to improve the part of the prompt about making sure it will give json in response
Background
It would always get stuck giving one wrong line of JSON and then just keep saying "Sorry, here's the correct JSON:" and mess things up again. So I thought, why not ask GPT-4 to improve the prompt.
Changes
Prompt improved to convince AI to always give correct json in response.
Test Plan
Well, it's gotten better, this problem shows up less after I started using this prompt, so I thought I'd share it with everyone.
PR Quality Checklist