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:
rasa-sdk/rasa_sdk/knowledge_base/actions.py
Line 248 in f8c2ce0
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):
thank you for spotting this! I was able to reproduce it.
- go to
examples/knowledgebasebot
- train a model and start
rasa shell
- 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?