RasaHQ/rasa-sdk

ActionQueryKnowledgeBase: utter_attribute_value wrong function argument

emanuel-metzenthin opened this issue · 2 comments

Rasa version: 2.2.5

Rasa SDK version: 2.2.0

Python version: 3.7.3

Operating system (windows, osx, ...): osx

Issue: When using action_query_knowledge_base attributes are not uttered correctly as instead of the object_name the representation function of that object is passed to utter_attribute_value (here:

dispatcher, object_representation, attribute, value
)

Error (including full traceback):


Command or request that led to error:


Content of configuration file (config.yml) (if relevant):

Content of domain file (domain.yml) (if relevant):

Contents of actions.py (if relevant):

Thanks for the issue, @amn41 will get back to you about it soon!

You may find help in the docs and the forum, too 🤗
amn41 commented

thank you for spotting this! I was able to reproduce it.

  1. go to examples/knowledgebasebot
  2. train a model and start rasa shell
  3. say 'hotels' and then say 'does the last one offer breakfast?'

bot responds with:

Your input ->  does the last one offer breakfast?                                                                                              
'<function ActionMyKB.__init__.<locals>.<lambda> at 0x7fb23b7fddd0>' has the value 'True' for attribute 'breakfast-included'.

@kedz since this was a place we thought about doing some more sophisticated NLG, maybe you want to jump on this one?