Repetition detect

Before you begin

Follow the steps in the Install with Helm topic to run F5 AI Gateway.

Overview

The F5 Repetition Detection processor runs in the AI Gateway processors container. This processor will detect when an input contains significant amounts of repeated content, which can be an indication of a malicious command.

Processor details

Supported

Deterministic

Yes

GPU acceleration support

No

Input stage

Yes

Response stage

Yes

Recommended position in stage

Beginning

Supported language(s)

N/A

Configuration

processors:
  - name: repetition-detect
    type: external
    config:
      endpoint: https://aigw-processors-f5.ai-gateway.svc.cluster.local
      namespace: f5
      version: 1
    params:
      reject: false
      max_ratio: 5.0

Parameters

Parameters

Description

Type

Required

Defaults

Examples

Common parameters

max_ratio

Maximum repetition ratio threshold for detecting overall repeated information in text

number

No

5.0

2.0, 7.0

When reject is set to true, this processor will reject the request when repetition is detected, otherwise it will add to the attacks-detected tag.

Tags

Tag key

Description

Example values

attacks-detected

Added if reject is set to false and prompt injection is detected.

["repetition"]