forked from NVIDIA/NeMo-Guardrails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample_config.yml
43 lines (37 loc) · 1.17 KB
/
sample_config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
models:
...
rails:
# Input rails are invoked when a new message is received.
input:
flows:
- self check input
- check sensitive data
- activefence moderation
- check toxicity
- some other moderation thing
# Topical rails are triggered after user message is interpreted, i.e., its canonical form
# has been computed.
dialog:
# Whether to try to use a single call
single_call:
enabled: False
# If a single call fails, whether to fall back to multiple LLM calls.
fallback_to_multiple_calls: True
user_messages:
# Whether to use only the embeddings when interpreting the user's message
embeddings_only: False
# Retrieval rails are invoked once `$relevant_chunks` are computed.
retrieval:
flows:
- check retrieval sensitive data
# Output rails are triggered after a bot message has been generated.
output:
enable_on_predefined_messages: false
flows:
- self check facts
- self check hallucination
- activefence moderation
- check sensitive data
- gotitai rag truthcheck
# Execution rails are triggered before and after an action is invoked
# TODO