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
Start with log-only mode
Start with log-only mode
Begin with monitoring before enabling blocking:
Use Module Guard for drop-in protection
Use Module Guard for drop-in protection
Wrap existing modules without code changes:
Scan tool/retriever calls
Scan tool/retriever calls
Enable tool scanning for RAG pipelines:
Supported DSPy Versions
| DSPy Version | Status |
|---|---|
| 2.4.x | Supported |
| 2.5.x+ | Supported |
