You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"I am an example bot that illustrates the fact checking and hallucination detection capabilities. Ask me about the documents in my knowledge base to test my fact checking abilities, or about other topics to test my hallucination detection."
15
+
16
+
define flow capabilities
17
+
user ask capabilities
18
+
bot inform capabilities
19
+
20
+
define user ask knowledge base
21
+
"What is in your knowledge base?"
22
+
"What do you know?"
23
+
"What can I ask you about?"
24
+
25
+
define bot inform knowledge base
26
+
"You can ask me about anything! My knowledge base includes information about the pluto for which I have documents in knowledge base, which I can use for fact checking."
27
+
28
+
define flow knowledge base
29
+
user ask knowledge base
30
+
bot inform knowledge base
31
+
32
+
define user request repeat
33
+
"Please repeat that"
34
+
"repeat"
35
+
"What was that?"
36
+
37
+
define flow
38
+
user express greeting
39
+
bot express greeting
40
+
41
+
define bot offer additional help
42
+
"If you have any more questions or if there's anything else I can help you with, please don't hesitate to ask."
"$bot_message Factcheck output violation has been detected by AutoAlign."
609
+
```colang
610
+
define user ask about pluto
611
+
"What is pluto?"
612
+
"How many moons does pluto have?"
613
+
"Is pluto a planet?"
614
+
615
+
define flow answer report question
616
+
user ask about pluto
617
+
# For pluto questions, we activate the fact checking.
618
+
$check_facts = True
619
+
bot provide report answer
594
620
```
595
621
622
+
The above example is of a flow related to a case where the
623
+
knowledge base is about pluto. You need to define the flow
624
+
for use case by following the above example, this ensures that
625
+
the fact-check takes place only for particular topics and not
626
+
for ideal chit-chat.
627
+
628
+
629
+
596
630
The output of the factcheck endpoint provides you with a factcheck score against which we can add a threshold which determines whether the given output is factually correct or not.
597
631
598
632
The supporting documents or the evidence has to be placed within a `kb` folder within `config` folder.
0 commit comments