Prompt Composition #7
Replies: 4 comments 6 replies
-
I'm currently seeing the command change to its description after some time, for example "Google Search" instead of "google". I think this could be a code change though to help out the AI when it gets things wrong to find a best match command corresponding to what the AI is trying to accomplish. |
Beta Was this translation helpful? Give feedback.
-
Assistent Reply If you complete a task, add "task\_complete" in the top level of your JSON and include the reason for completion in the "reason" field.
{
"thoughts":
{
"text": "thought",
"reasoning": "reasoning",
"plan": "- short bulleted\n- list that conveys\n- long-term plan",
"criticism": "constructive self-criticism",
"speak": "thoughts summary to say to user"
},
"command": {
"name": "command name",
"args": {
"arg name": "value"
}
},
"task\_complete": {
"reason": "Reason for completion"
}
}
### Assistant: {
"thoughts": {
"text": "I need to start by researching ...",
"reasoning": "I want to make sure I have a good understanding ..."
},
"command": {
"name": "Google search",
"args": ["..."]
}
}
json If you complete a task, add "task_complete" in the top level of your JSON and include the reason for completion in the "reason" field.
{
"thoughts":
{
"text": "thought",
"reasoning": "reasoning",
"plan": "- short bulleted\n- list that conveys\n- long-term plan",
"criticism": "constructive self-criticism",
"speak": "thoughts summary to say to user"
},
"command": {
"name": "command name",
"args": {
"arg name": "value"
}
},
"task_complete": {
"reason": "Reason for completion"
}
}
### Assistant: {
"thoughts": {
"text": "I need to start by researching ...",
"reasoning": "I want to make sure I have a good understanding ..."
},
"command": {
"name": "Google search",
"args": ["..."]
}
}
json loads error Expecting value: line 1 column 1 (char 0)
Warning: Failed to parse AI output, attempting to fix.
If you see this warning frequently, it's likely that your prompt is confusing the AI. Try changing it up slightly. Help me understand what is triggering [loop] |
Beta Was this translation helpful? Give feedback.
-
I havent used this yet, but I have been trying to make llama follow strict json functions and... well, its as frustrating as it sounds out loud, lots of face spit. My prefered models where wizard variants, maybe you should try, Second, I saw that the #Assistant bull is the first the model abandons if you end the rprompt with "{" If you do that its going to respond a json even if you dont want it to. [ also works. then when the prompt finishes you balance the output with the token |
Beta Was this translation helpful? Give feedback.
-
llama.cpp has got grammar enforced json generation now ggerganov/llama.cpp@3ebb009 |
Beta Was this translation helpful? Give feedback.
-
The AI (vicuna-13b-4bit) has trouble following and staying on the exact JSON format needed. I found some changes that appear to allow it to work correctly for a while longer.
I've changed constraint 4 to
since the AI will otherwise sometime substitute args from other commands or omit certain required args.
I've changed the performance evaluation paragraph to
to help keep the AI replying with JSON since it sometimes reverts back to conversational text. It has also tried sending multiple commands at once breaking things.
Beta Was this translation helpful? Give feedback.
All reactions