Skip to main content
New to RAXE? Start with the Quickstart and learn how detection works.

Overview

RAXE integrates with DSPy to provide security scanning for declarative language model pipelines, including module inputs/outputs, LM calls, and tool executions.

Installation

Callback Handler

Use the RAXE callback to scan DSPy module executions:

Configuration Options

Module Guard Wrapper

Wrap any DSPy module for automatic scanning:

Blocking Mode

Enable blocking to reject calls with detected threats:

Factory Functions

Quick setup using factory functions:

RAG Pipeline Protection

Protect DSPy RAG pipelines:

Accessing Scan Stats

Error Handling

Best Practices

Begin with monitoring before enabling blocking:
Wrap existing modules without code changes:
Enable tool scanning for RAG pipelines:

Supported DSPy Versions

What’s Next

Production Checklist

Deploy RAXE safely to production

Custom Rules

Create detection rules for your specific use case