<< Home | Prompting craft
Remove repetitive AI slop using partial string bans
| Area | Prompting craft |
| AI used | SillyTavern with KoboldCPP |
| Source | Reddit thread |
| Posted | 2025-02-24 |
The move
Ban partial strings in KoboldCPP phrase banning to trigger backtracking and force fresh generations while saving ban slots.| When this works | When it doesn't |
|---|---|
| Your roleplay output repeats cliché GPT-isms like 'she takes a deep breath', and you run KoboldCPP which accepts string-based phrase banning. | Your inference engine only accepts token IDs instead of text strings, or you fill up limited ban slots with redundant and acceptable phrases. |
Key details
- steeling h
- Anti-Slop
- backtracking
- KoboldCPP
Prompt for your AI
System Rule / Phrase Banning Strategy for Anti-Slop Generation:
Use string-based phrase banning (Anti-Slop) in KoboldCPP to force the model to backtrack and regenerate alternative text whenever cliché GPT-isms appear.
To maximize limited ban slots and catch multiple slop variations at once, ban partial strings rather than full sentences.
1. Partial String Banning Rule:
- Cut trailing letters to cover all gendered and adjectival variations. For example, enter 'steeling h' to automatically block 'steeling herself', 'steeling himself', 'steeling hard', and 'steeling harder' with a single ban entry.
2. Output Filtering via Backtracking:
- When any banned sequence or partial string is generated, the inference engine halts sampling, backtracks past the prohibited text segment, and re-samples to produce original phrasing.
3. Slot Efficiency Maintenance:
- Periodically audit the banned strings list to prune redundant duplicate phrases and remove acceptable context tropes (such as 'fiery red hair' or 'leans in') to avoid wasting precious ban slots.
4. Sampler Compatibility:
- Phrase banning acts as a post-generation text output filter through backtracking, ensuring zero conflicts with standard sampling parameters like DRY or XTC.
Before you give me the final result, check with me:
- Verify that your inference engine is KoboldCPP or supports string phrase banning rather than token IDs.
- Confirm partial strings like 'steeling h' are trimmed to catch multiple variations with one ban entry.
- Check that acceptable phrases (like 'fiery red hair') are kept off the list to avoid wasting limited ban slots.
- Ensure standard samplers like DRY and XTC remain enabled alongside phrase banning.
What happened
A SillyTavern user struggled with repetitive GPT-isms like 'she takes a deep breath' and 'steeling herself'. By configuring KoboldCPP Anti-Slop phrase banning with partial strings, the model automatically backtracked whenever banned phrases appeared and regenerated clean, non-repetitive text.Who confirmed it
Damn man, to me I swear it is not placebo, it does work. I swear I haven't seen GPT-isms after playing with both models for a bit.Give it to your agent
Read https://howtheyuse.ai/p/removes-repetitive-ai-isms-and-filler-phrases.md and help me do this.