RasaHQ / tutorial-knowledge-base

Integrating Rasa with a knowledge base to encode domain knowledge and resolve entities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can you please update the tutorial to the lates versions of rasa and grakn.

GBkiriti opened this issue · comments

@tabergma Can you Please update the repository to the latest versions of the grakn and rasa, Or add a file to do all the necessary modifications in the current repository to make it run with latest versions.

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

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

@GBkiriti Thanks for pointing this out. As we are not actively maintaining this repository, this is not our first priority. But I guess it makes sense to update this repository at some point. I hope I can find some time soon.

@tabergma that would be really helpful, and when I tried to run this on the mentioned rasa version 1.7.0 and rasa-sdk version 1.7.0. But when I use the command rasa train after loading the schema and data into grakn, I get the following error.
Error - rasa.core.policies.ensemble.InvalidPolicyConfig: Module for policy 'KerasPolicy' could not be loaded. Please make sure the name is a valid policy.
If possible can you help me resolve or point me where the problem is
Thanks for the response @tabergma

commented

@GBkiriti Can you please ask your question in our forum? We aim to use GitHub only for feature requests and bug reports. Feel free to tag me on your forum question (@tanja). It would be great if you could provide some more detail when asking the question on the forum. Thanks!

@tabergma I am trying to update the code this weekend using the following: https://blog.rasa.com/updating-to-rasa-open-source-2-0/. If I get stuck, I'll let you know.

UPDATE: I have the rasa component updated, still need to work on the grakn part.

UPDATE: Unfortunately there is a dependency conflict that makes grakn-client incompatible with rasa >= 2.0.

commented

@vijmeister Thanks for the update. What kind of dependency conflict?

@tabergma primarily the TensorFlow version.

commented

@vijmeister Too bad 😞 Can this be solved somehow?

@tabergma Here is more info:

ERROR: Cannot install grakn-client==1.8.0, tensorflow==2.3.0 and tensorflow==2.3.1 because these package versions have conflicting dependencies.

The conflict is caused by:
grakn-client 1.8.0 depends on protobuf==3.6.1
tensorflow 2.3.1 depends on protobuf>=3.9.2
grakn-client 1.8.0 depends on protobuf==3.6.1
tensorflow 2.3.0 depends on protobuf>=3.9.2

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

Looks like there is already a ticket with the grakn team on fixing this issue:

typedb/typedb-driver-python#101

Grakn has had a total rewrite and is now known as TypeDB! The dependency issue for the TypeDB python client mentioned above has been resolved. It shouldn't be too much work to upgrade this repo to TypeDB 2.x. Is there anything in the Rasa SDK (or elsewhere) that is specific to Grakn? I want to know if the work on upgrading is scoped to this repo. I've looked here but everything there seems to be generic.

One thing easy to update would be to modify the code where get_concepts() is used https://github.com/RasaHQ/tutorial-knowledge-base/blob/master/graph_database.py
Could you tell a way to do the same thing as in the _execute_entity_query function ?
Then I could provide a new version of the graph_database Class !!