<< Home | Prompting craft
Control response length and prevent rambling
| Area | Prompting craft |
| AI used | The-Capy-limv3-34B |
| Source | Reddit thread |
| Posted | 2025-02-24 |
The move
Append a length modifier tag with triple hashes to the Assistant prefix to force specific response lengths.Steps
- Identify the Assistant prefix in your prompt template
- Insert triple hashes after the Assistant label
- Append the desired length modifier tag (e.g., /short, /medium, /long)
- Verify the model follows the length constraint
Prompt for your AI
Assistant###/medium
What happened
The user struggled to control response length in the Capybara model when using standard Vicuna formatting. By inserting triple hashes before the length modifier tag in the Assistant prefix, the model successfully recognized the command. This technique prevents rambling and ensures the model adheres to the requested detail level.Who confirmed it
the modifier becomes functional, allowing you to adjust the length of responsesWatch out
Incorrect placement of tokens or modifiers can lead to nonsensical outputs or failure to control length.Give it to your agent
Read https://howtheyuse.ai/p/control-response-length-and-prevent-rambling.md and help me do this.