LONGYKING
commited on
Commit
·
62d9d86
1
Parent(s):
0043098
Prepare for deployment to Hugging Face space
Browse files- pip +0 -0
- src/config/nemoguardrails/config.yml +27 -0
pip
ADDED
|
File without changes
|
src/config/nemoguardrails/config.yml
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# config.yml
|
| 2 |
+
models:
|
| 3 |
+
- type: main
|
| 4 |
+
engine: openai
|
| 5 |
+
model: gpt-3.5-turbo-instruct
|
| 6 |
+
|
| 7 |
+
rails:
|
| 8 |
+
# Input rails are invoked when new input from the user is received.
|
| 9 |
+
input:
|
| 10 |
+
flows:
|
| 11 |
+
- check jailbreak
|
| 12 |
+
- mask sensitive data on input
|
| 13 |
+
|
| 14 |
+
# Output rails are triggered after a bot message has been generated.
|
| 15 |
+
output:
|
| 16 |
+
flows:
|
| 17 |
+
- self check facts
|
| 18 |
+
- self check hallucination
|
| 19 |
+
- activefence moderation
|
| 20 |
+
|
| 21 |
+
config:
|
| 22 |
+
# Configure the types of entities that should be masked on user input.
|
| 23 |
+
sensitive_data_detection:
|
| 24 |
+
input:
|
| 25 |
+
entities:
|
| 26 |
+
- PERSON
|
| 27 |
+
- EMAIL_ADDRESS
|