Documentation Index
Fetch the complete documentation index at: https://docs.raptordata.dev/llms.txt
Use this file to discover all available pages before exploring further.
Semantic Security
Regex filters catch “ignore previous instructions” but miss “disregard prior directives.” Raptor’s semantic firewall catches both.How It Works
Built-in Patterns
Raptor includes patterns for common attacks:| Pattern | Description |
|---|---|
| Prompt injection | ”ignore previous instructions”, “disregard your training” |
| Jailbreak attempts | ”DAN mode”, “pretend you have no restrictions” |
| Prompt extraction | ”reveal your system prompt”, “what were you told?” |
| Role manipulation | ”you are now”, “act as a different AI” |
Actions
Choose what happens when a pattern matches:| Action | Behavior |
|---|---|
| Block | Return 403, don’t forward to AI |
| Warn | Log warning, allow request |
| Log | Record silently, allow request |
Blocked Response
When a request is blocked:403 Forbidden
Streaming Protection
For streaming requests, we monitor the response in real-time:Dashboard Configuration
- Go to Shield in your dashboard
- View built-in patterns or create custom ones
- Set similarity thresholds (0.0 - 1.0)
- Choose action (Block, Warn, Log)
API Endpoints
Tuning Thresholds
| Threshold | Behavior |
|---|---|
| 0.95+ | Very strict, exact matches only |
| 0.85-0.95 | Balanced, catches variations |
| 0.75-0.85 | Permissive, may have false positives |
Start with Warn action to see what gets flagged. Switch to Block once you’ve tuned thresholds.
