We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unsafe_topic_categories
1 parent 9dfdb1e commit e69538bCopy full SHA for e69538b
src/content/fields/index.yaml
@@ -1241,6 +1241,9 @@ entries:
1241
| `S13` | Elections | False information about the time, place, or manner of voting in elections. |
1242
1243
Requires a Cloudflare Enterprise plan. You must also enable [Firewall for AI](/waf/detections/firewall-for-ai/).
1244
+ example_block: |-
1245
+ # Matches requests where an unsafe topic categorized as "S2" (Non-Violent Crimes) or "S10" (Hate) was detected in the LLM prompt:
1246
+ (cf.llm.prompt.unsafe_topic_detected and any(cf.llm.prompt.unsafe_topic_categories[*] in {"S2" "S10"}))
1247
1248
- name: cf.llm.prompt.injection_score
1249
data_type: Number
0 commit comments