Skip to content
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

ActionQueryKnowledgeBase: utter_attribute_value wrong function argument #406

Closed
emanuel-metzenthin opened this issue Feb 12, 2021 · 2 comments · Fixed by #407
Closed

ActionQueryKnowledgeBase: utter_attribute_value wrong function argument #406

emanuel-metzenthin opened this issue Feb 12, 2021 · 2 comments · Fixed by #407
Assignees
Labels
area:rasa-sdk 🧑‍💻 Everything that touches our python Rasa SDK type:bug 🐛 Something isn't working

Comments

@emanuel-metzenthin
Copy link

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):

@emanuel-metzenthin emanuel-metzenthin added area:rasa-sdk 🧑‍💻 Everything that touches our python Rasa SDK type:bug 🐛 Something isn't working labels Feb 12, 2021
@sara-tagger
Copy link

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
Copy link
Contributor

amn41 commented Feb 15, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rasa-sdk 🧑‍💻 Everything that touches our python Rasa SDK type:bug 🐛 Something isn't working
Projects
None yet
4 participants