Proposal: Topical Guidelines #230
Replies: 5 comments 7 replies
-
Sounds good to me overall, it should solve current problems we have where the agent doesn't know what it can and cannot do. One point of potential improvement - if no guidelines were proposed in the classical way (by the guideline proposer), instead of having one (new) module suggest up to 3 continuations, and then sending them to the message event producer, maybe it should directly choose a reply to the user? Thereby saving an LLM call. Meaning, instead of building this new module, we could build an alternative version of the message event generator which is used exclusively for when we're in the 'no-match' mode, where no guidelines were activated. |
Beta Was this translation helpful? Give feedback.
-
Great proposal for improving agent responses! I'd like to suggest an enhancement using intent classification while adhering to the guidelines: Example Enhancement: 1)Current: 2)Proposed Intent-Based Enhancement:
I am thinking more on this ......this is a basic idea i have in mind |
Beta Was this translation helpful? Give feedback.
-
Looks pretty solid to me! @MCBarKar's optimization is very important! Considering my latest discord message about having "global", "meta", and "task-specific" tags for every guideline, one simple optimization could be to add topics to task-specific guidelines for which no topics have been added. But this would be a one-time exercise. |
Beta Was this translation helpful? Give feedback.
-
Let us consider the following scenario Let us say that the user's query is "dispute transaction". This will match at the topic level, but not at the guideline level, obviously. I am assuming that in this case, the msg gen will just output something like "Sorry, I can't help with disputing a transaction". Because the guidelines are not at all related |
Beta Was this translation helpful? Give feedback.
-
@vahuja4 @MCBarKar Interesting advice came from an experience Conversation Designer I was talking to today. He was saying, from a practical standpoint, it may make sense to allow a default guideline for any topic. When the conversation matches that topic, and no other guidelines are matched in that topic, we include this default guideline. This would allow a designer to provide a clear fallback strategy on any topic, as well as covering the case where there is a no-guideline and no-topic match, in which case we just say, "We can't help with that" or something of that nature. WDYT? |
Beta Was this translation helpful? Give feedback.
-
Motivation
Imagine we have a Parlant insurance agent "working at" an insurance company with strict regulatory requirements.
Because of the strict regulations of this use case, the agent must not work by a "best effort" strategy in trying to help the customer. Instead, it must only offer support in cases where human input and guidance was explicitly provided to it by the system—specifically, in this scope, through its provided set of guidelines.
Let's construct a minimal example to illustrate the challenge that may arise here.
The Use Case
Current Behavior
Today, the
MessageEventGenerator
should evaluate the context and see that it doesn't have the necessary information to answer the customer's question, and ideally (WIP) respond with some equivalent of "I don't have that information."In short, in today's version of the engine, the agent should reply, "Sorry but I don't have that information."
Desired Behavior
While, strictly speaking, the agent doesn't have the information, there may still be a more productive answer than "I don't know." This is because, while the agent doesn't have that information, it could still proactively offer to help with things within the same topic that it does know about.
For example, since it can help with booking an appointment, it could arguably handle the interaction as follows:
Solution Proposal
TopicalGroundingDocument
that are automatically retrieved in the appropriate conversational contexts.topics
to each guideline. Each guideline can be associated with zero or more topics.no-topic
.no-topic
), it relates to the engine in exactly the same way it does today.no-topic
.no-topic
, allowing them to affect the rest of the generation.no-topic
guideline, this feature kicks into effect, constraining the agent to never reply in an unguided way.no-topic
state and follow the same logic as outline above.Discussion
Let's try to consider various use cases and see if the current proposal properly addresses them. Also, let's try to consider where this approach could go wrong.
Beta Was this translation helpful? Give feedback.
All reactions