Unstructured Masking Troubleshooting
Every Document Triggers fallback_masks
Problem
The masking run completes successfully when using the ai_detect matcher,
however fallback_masks are applied to every document.
Solution
Check presets (if used) are valid
Ensure any presets used exist and are in UPPER_CASE format
(see Bedrock AI Engine Presets).
Invalid or non-existent presets will cause the ai_detect matcher to fail.
Local AI Engine: special Unicode characters
The Local AI Engine may fail on input containing lone surrogates or U+FFFD characters.
If masked documents may contain such characters, use fallback_masks to prevent AI Engine errors stopping a masking run.
See AI Engine Behaviour for details.
Bedrock AI Engine: use a different model
Some combinations of data and model will trigger a ContentFiltered warning within AWS Bedrock.
This can occur if the model suspects copyrighted content, hate speech, or other unseemly material.
A different model may be used as a workaround.
Alternatively, the ai_detect matcher can be disabled entirely.
For more on changing the Bedrock AI Engine model, view the README.md provided with it.