How to define a catch all for off-topic? As there are endless possibilities #129
Replies: 3 comments 10 replies
-
@gilinachum did you end up figuring this out? I'm finding that the bot generates brand new intents when nothing is a close match. The best workaround I can think of is changing the guardrails code to match against a list of acceptable intents (provided in Colang). This would probably happen inside |
Beta Was this translation helpful? Give feedback.
-
I am not sure if this would work for your use-case, but I have been finding adjusting the E.G., in config.yml,
Then, when I prompt something unrelated to technology, for which I have not explicitly defined any rails, such as, Can you help me prepare for my technical interviews? The log indicates the bot generated a user intent, and then a bot intent based on the config.yml,
I have not experimented enough to know if this method is too strict. |
Beta Was this translation helpful? Give feedback.
-
Did you ever release a solution for a catch all term for all off topic? Really in need for sth like that! |
Beta Was this translation helpful? Give feedback.
-
I want to implement a topic rail on user queries. There are 2-3 on-topic categories (say questions on mechanics) I define, but then how can I easily define that everything else is off topic?
I can give examples to off-topic (say politics), but as there are endless off-topic categories (say toys), how will the guardrail know if they count as on or off topic? In concrete terms: As the implementation is a similarity search is toys more similar to mechanics or to politics?
Thought: I assume there should be a way to define on-topic and then say that everything more distant than X imaginary similarity units is off-topic? Is this possible? Do I find X empirically?
Beta Was this translation helpful? Give feedback.
All reactions