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.
@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
@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.
@vijmeister Thanks for the update. What kind of dependency conflict?
@tabergma primarily the TensorFlow version.
@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:
- loosen the range of package versions you've specified
- 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:
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 !!