nemoguardrails.library.jailbreak_detection.server
nemoguardrails.library.jailbreak_detection.server
Module Contents
Classes
Functions
Data
API
Bases: BaseModel
prompt (str): User utterance to the model lp_threshold (float): Threshold value for length-perplexity heuristic. Default: 89.79 ps_ppl_threshold (float): Threshold value for prefix/suffix perplexity heuristic. Default: 1845.65
lp_threshold
prompt
ps_ppl_threshold
Bases: BaseModel
Since the embedding model corresponds exactly to the classifier, we only need to provide the embedding model in the request.
prompt (str): User utterance to the model
prompt