Deterministic checks

  • Regular expressions may seem old school but remain great for spotting patterns 3:41
  • Examples: check for banned/forbidden words, detect phrases like "as an AI language model", verify the response contains a link 3:41
  • Properties: fast, simple, easy to control 3:41

Text statistics

  • Basic text stats also work as checks: response length, share of special symbols 3:41