Closed LTepliakov closed 5 years ago
Looks like the sample is designed to work only with this specific json document format that are placed in discovery collection with this sample... Java code tries to unpack result of discovery query, does not find expected values and crashes... Appreciate your comment. Please close the issue if my guess is correct.
Are you using the code in this repo? This is Node.js not Java
Looks like the sample is designed to work only with this specific json document format that are placed in discovery collection with this sample... Java code tries to unpack result of discovery query, does not find expected values and crashes... Appreciate your comment. Please close the issue if my guess is correct.
I confirmed my guess above. I have created my personal discovery collection, placed my documents into it in same json format as in athor's one and the sample worked fine on my data fine without any code changes. @germanattanasio Yes that is node.js, sorry for this typo in my comment. I am closing the question. Thank you very much for your sample!
I am a newbie and trying to study this sample technology by changing its configuration... I have built it from sources and tried to run with serve -s build It works fine. Then I changed .env and credentials.json so that it points to my assistant conversation. In my conversation I created #out_of_scope intent and configured it so, that it returns the same json as in your sample, with below key pattern:
Re-built and run, it works fine! But calls your sample discovery collection. As next step, I created my collection, placed one-word document into it, changed .env and credentials.json accordingly and rebuilt. Watson dialog itself works, but when I ask a #out_of_scope question it does not reply me at all... I checked the log with Kibana a can see below error messages below. I did not do any changes in the code, with my Watson dialog it does search in your Discovery collection, but fails to search in my one. What could be wrong?
Appreciate any advice!
Below are messages from Kibana log together with json, returned from Watson dialog:
And here is json message from my Watson dialog, shown in Kibana log: