Overview
RAXE integrates with LangChain to protect your chains and agents from prompt injection and other threats.Installation
Callback Handler
Use the RAXE callback handler to scan inputs and outputs:Configuration Options
Chain Integration
Agent Integration
RAG Protection
Protect RAG pipelines from data exfiltration:Error Handling
Async Support
Best Practices
Scan both inputs and outputs
Scan both inputs and outputs
Enable both
scan_inputs and scan_outputs for comprehensive protection:Set appropriate severity thresholds
Set appropriate severity thresholds
Adjust
min_severity based on your risk tolerance:Handle blocked requests gracefully
Handle blocked requests gracefully
Always catch
RaxeBlockedError for user-friendly responses: