ink-pad commited on
Commit
adb5a7b
1 Parent(s): 1877f41

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -156,7 +156,7 @@ with torch.no_grad():
156
  label, prob_of_risk = parse_output(output, input_len)
157
 
158
  print(f"# risk detected? : {label}") # Yes
159
- print(f"# probability of risk: {prob_of_risk:.3f}") # 0.905
160
 
161
  # Usage 2: Example for Hallucination risks in RAG (risk_name=groundedness passed through guardian_config)
162
 
@@ -186,7 +186,7 @@ label, prob_of_risk = parse_output(output, input_len)
186
  print(f"# risk detected? : {label}") # Yes
187
  print(f"# probability of risk: {prob_of_risk:.3f}") # 0.997
188
 
189
- # Usage 3: Example for hallucination risks in function call (risk_name=function_call passed through guardian_config)
190
 
191
  tools = [
192
  {
@@ -242,7 +242,7 @@ with torch.no_grad():
242
 
243
  label, prob_of_risk = parse_output(output, input_len)
244
  print(f"# risk detected? : {label}") # Yes
245
- print(f"# probability of risk: {prob_of_risk:.3f}") # 0.651
246
 
247
  ```
248
 
 
156
  label, prob_of_risk = parse_output(output, input_len)
157
 
158
  print(f"# risk detected? : {label}") # Yes
159
+ print(f"# probability of risk: {prob_of_risk:.3f}") # 0.995
160
 
161
  # Usage 2: Example for Hallucination risks in RAG (risk_name=groundedness passed through guardian_config)
162
 
 
186
  print(f"# risk detected? : {label}") # Yes
187
  print(f"# probability of risk: {prob_of_risk:.3f}") # 0.997
188
 
189
+ # Usage 3: Example for hallucination risk in function call (risk_name=function_call passed through guardian_config)
190
 
191
  tools = [
192
  {
 
242
 
243
  label, prob_of_risk = parse_output(output, input_len)
244
  print(f"# risk detected? : {label}") # Yes
245
+ print(f"# probability of risk: {prob_of_risk:.3f}") # 0.990
246
 
247
  ```
248