New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle custom fields from an NLU Message #6293
Comments
Exalate commented: degiz commented: I think Initially I underestimated the situation here
In general I agree, that the I think that it makes a lot of sense to implement @akelad wdyt? |
Exalate commented: akelad commented: So point 1 I agree, that's fine. About point 2, hm but would the parsed message still come through as something like this? { { "name": "foo", "confidence": 0.1234567890 } , { "value": "NEUTRAL", "score": 0.123, "confidence": 0.897 } ], I'm not sure we should process that the same way as an entity in terms of featurization. If people would want to store this info in a slot they can do that from a custom action no? If they want to do anything fancier then that, could they not just write a custom policy or something? |
Exalate commented: degiz commented:
It will not be saved to the tracker atm, the code is here If we want to save something extra to the tracker, aside from
Sure! It was us who showed an example with putting the |
Exalate commented: degiz commented: Ok let's leave Sentiments out
|
Exalate commented: akelad commented: So what I meant in this situation is that But yeah so what I'm saying is that we use a key like |
Exalate commented: akelad commented: i'm trying to think of other use cases for this apart from the |
Exalate commented: mjaycub commented: @degiz what priority should we assign to this issue? |
Exalate commented: degiz commented: @mjaycub added the |
➤ Maxime Verger commented: 💡 Heads up! We're moving issues to Jira: https://rasa-open-source.atlassian.net/browse/OSS. From now on, this Jira board is the place where you can browse (without an account) and create issues (you'll need a free Jira account for that). This GitHub issue has already been migrated to Jira and will be closed on January 9th, 2023. Do not forget to subscribe to the corresponding Jira issue! ➡️ More information in the forum: https://forum.rasa.com/t/migration-of-rasa-oss-issues-to-jira/56569. |
A forum user (post) brought up a good point that at the moment if you build a custom NLU component, you have to put any additional information (like sentiment) into the entities key of the
Message
for the formation to be passed onto the dialogue manager.A sentiment component right now should return output like this:
{
'intent':
{ 'name':'greet', 'confidence':0.44503513568867775 }
,
'entities':[
{ 'value':'neg', 'confidence':0.9933702940854111, 'entity':'sentiment', 'extractor':'sentiment_extractor' }
}
It would be more intuitive to have this information in a separate field since sentiment isn't really an entity:
{
"intent":
{ "name": "foo", "confidence": 0.1234567890 }
,
"entities": [],
"sentiment": [
{ "value": "NEUTRAL", "score": 0.123, "confidence": 0.897 }
],
}
On the NLU side the
Message
class would already allow this extra field (only on the master branch of rasa though) - see here. But I'm not sure whether the dialogue manager will handle that properly.@degiz said he would look into this when he's back from vacation
The text was updated successfully, but these errors were encountered: