MEOW commited on
Commit
2c73167
·
unverified ·
1 Parent(s): 58f2959

Create bot_flows.co

Browse files
Files changed (1) hide show
  1. Config/bot_flows.co +25 -0
Config/bot_flows.co ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ define flow self check input
2
+ $allowed = execute self_check_input
3
+
4
+ if not $allowed
5
+ bot refuse to respond
6
+ stop
7
+
8
+ define flow self check output
9
+ $allowed = execute self_check_output
10
+
11
+ if not $allowed
12
+ bot refuse to respond
13
+ stop
14
+
15
+ define flow user query
16
+ $answer = execute user_query
17
+ bot $answer
18
+
19
+ define flow self check hallucinations
20
+ $answer = execute rag()
21
+ $check_hallucination = True
22
+ bot $answer
23
+
24
+ define bot refuse to respond
25
+ "I'm sorry, I can't respond to that."