File size: 493 Bytes
2c73167 | 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 | define flow self check input
$allowed = execute self_check_input
if not $allowed
bot refuse to respond
stop
define flow self check output
$allowed = execute self_check_output
if not $allowed
bot refuse to respond
stop
define flow user query
$answer = execute user_query
bot $answer
define flow self check hallucinations
$answer = execute rag()
$check_hallucination = True
bot $answer
define bot refuse to respond
"I'm sorry, I can't respond to that."
|