This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| LLM Input Sanitization Toolkit | |
| A comprehensive defense layer against unicode tricks, token boundary attacks, | |
| and adversarial inputs targeting language model tokenizers. | |
| These attacks exploit the gap between what humans see and what models process. | |
| Tokenizers transform text into integer sequences using learned vocabularies. | |
| When that transformation produces unexpected results, models behave unexpectedly. |