How They Use AI  |  Newest

<< Home  |  Prompting craft

Control response length and prevent rambling

AreaPrompting craft
AI usedThe-Capy-limv3-34B
SourceReddit thread
Posted2025-02-24

The move

Append a length modifier tag with triple hashes to the Assistant prefix to force specific response lengths.

Steps

  1. Identify the Assistant prefix in your prompt template
  2. Insert triple hashes after the Assistant label
  3. Append the desired length modifier tag (e.g., /short, /medium, /long)
  4. 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 responses

Watch 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.

Sources



Last updated November 26, 2026.