kengz / aiva

AIVA (A.I. Virtual Assistant): General-purpose virtual assistant for developers.
http://kengz.me/aiva/
MIT License
824 stars 596 forks source link

Data not getting saved in Neo4j graph db #41

Open tosunil1983 opened 7 years ago

tosunil1983 commented 7 years ago

Hi first of all very nice approach to deduce the machine response. I was trying your https://explosion.ai/blog/chatbot-node-js-spacy tutorial but i can't see any data getting saved in Graph Db i am using Slack as the chat client. I am getting something like below on the terminal but no data seems get saved in Neo4j,

[Wed Apr 12 2017 19:06:50 GMT+0000 (UTC)] DEBUG hash string exists for global-client [Wed Apr 12 2017 19:06:50 GMT+0000 (UTC)] DEBUG hasher.handle invoking cb for global-client [Wed Apr 12 2017 19:06:50 GMT+0000 (UTC)] DEBUG hash string exists for global-client [Wed Apr 12 2017 19:06:50 GMT+0000 (UTC)] DEBUG hash string exists for global-client [Wed Apr 12 2017 19:06:50 GMT+0000 (UTC)] DEBUG hash string exists for global-client [Wed Apr 12 2017 19:06:50 GMT+0000 (UTC)] DEBUG hash string exists for global-client [Wed Apr 12 2017 19:06:50 GMT+0000 (UTC)] ERROR [Wed Apr 12 2017 19:06:50 GMT+0000 (UTC)] INFO Knowledge saved to brain [Wed Apr 12 2017 19:08:19 GMT+0000 (UTC)] DEBUG [In log]: alice hello_py py [Wed Apr 12 2017 19:08:19 GMT+0000 (UTC)] DEBUG Started global js socketIO client for SLACK at 6466 [Wed Apr 12 2017 19:08:19 GMT+0000 (UTC)] DEBUG Added a callback to hasher for global-client [Wed Apr 12 2017 19:08:19 GMT+0000 (UTC)] INFO global-client-js 7l4lt02SGuYEtjo7AAAC joined, -5 remains [Wed Apr 12 2017 19:08:19 GMT+0000 (UTC)] INFO All 4 IO clients have joined [Wed Apr 12 2017 19:08:19 GMT+0000 (UTC)] DEBUG IO on pass, msg: { "hash": "global-client-js_d71ff935b97c97237e8618234aac84b7", "from": "global-client-js", "input": "hello_py py", "to": "nlp.cgkb-py", "intent": "parse" } fn: undefined [Wed Apr 12 2017 19:08:19 GMT+0000 (UTC)] DEBUG IO on pass, msg: { "to": "global-client-js", "from": "cgkb-py", "hash": "global-client-js_d71ff935b97c97237e8618234aac84b7", "output": null } fn: undefined [Wed Apr 12 2017 19:08:19 GMT+0000 (UTC)] DEBUG Added a callback to hasher for global-client [Wed Apr 12 2017 19:08:19 GMT+0000 (UTC)] DEBUG IO on pass, msg: { "hash": "global-client-js_c9d8d43bf56a7f451e47587bdc08bd43", "from": "global-client-js", "input": "hello_py py", "to": "convo_classifier.py", "intent": "classify" } fn: undefined [Wed Apr 12 2017 19:08:19 GMT+0000 (UTC)] DEBUG hash string exists for global-client [Wed Apr 12 2017 19:08:19 GMT+0000 (UTC)] DEBUG hasher.handle invoking cb for global-client [Wed Apr 12 2017 19:08:19 GMT+0000 (UTC)] DEBUG hash string exists for global-client [Wed Apr 12 2017 19:08:19 GMT+0000 (UTC)] DEBUG hash string exists for global-client [Wed Apr 12 2017 19:08:19 GMT+0000 (UTC)] DEBUG hash string exists for global-client [Wed Apr 12 2017 19:08:19 GMT+0000 (UTC)] DEBUG hash string exists for global-client [Wed Apr 12 2017 19:08:19 GMT+0000 (UTC)] DEBUG hash string exists for global-client [Wed Apr 12 2017 19:08:19 GMT+0000 (UTC)] INFO Knowledge saved to brain

Below is my config json and my Neo4j is working on 7474 with Neo4j/0000 credentials

"PORTS": { "NEO4J": 7476, "SOCKETIO": 6466, "SLACK": 8345, "TELEGRAM": 8443, "FB": 8545 },

can you please guide me through.

arnitkun commented 7 years ago

[Wed Apr 12 2017 19:08:19 GMT+0000 (UTC)] INFO Knowledge saved to brain

It says it does about data being saved in the log.

P.S. : sorry for replying in the necro thread