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 |
---|---|
Yes |
|
No |
|
Input stage |
Yes |
Response stage |
Yes |
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 |
---|---|---|---|---|---|
|
Maximum repetition ratio threshold for detecting overall repeated information in text |
number |
No |
|
|
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.