Comments (6)
re: 2) Yes, the idea is you can take the code and "tweak" it. It might be more than a tweak, but adding new documents and using this as a starting put should work for you
re: 1) I just created an assistant service and imported the banking.json successfully. I'm assuming you tried importing it in the IBM Cloud/Assistant Tool UI. It looks like something specific to your account. I think you should Contact IBM Cloud Support.
from watson-banking-chatbot.
Thanks for the quick help. I was able to import the banking.json by starting the browser in incognito mode.
It would appreciate if you could share your thoughts on the below questions about the app -
- Can I configure the app to not have a watson assistant and make the chatbot directly query only the watson discovery service? if so how can I do so?
- Does the chatbot generate answer or does it paste the results of the search in the discovery service?
For e.g. with the current banking chat bot referring to the BankRnR-OMP-General.docx, if I ask the question "I didn't not receive my cashback. What do I do?", it returns the result as "We regret the inconvenience. Please try again. Please call the merchant Customer care for any queries regarding the product or payment confirmation" while the document has the question and answer in a different format. Is it generating the answer or there is some other document that has details about cashback failures?
Thanks.
from watson-banking-chatbot.
-
The discovery lookup code is here:
https://github.com/IBM/watson-banking-chatbot/blob/master/app.js#L574
after "else if (data.context.action.lookup === DISCOVERY_ACTION) {".
You can take that code and run it instead of assistant message. It is pretty simple input from user, sent to query, return response. The conversation won't be as nice, but if you just want query/response you can do that. -
The chatbot tries to answer the easy questions and only uses discovery when it needs to. This is the short-tail, long-tail strategy. Unfortunately there is too much overlap. So you are probably seeing assistant try to answer things that were also in the FAQ docs.
from watson-banking-chatbot.
I tried configuring the chatbot to use a discovery service that had different/custom documents uploaded instead of the banking documents (I removed the default config to load them too).
It seems the query isn't going to the discovery service. I see the below log in the command prompt
assistant.message :: {"intents":[],"entities":[],"input":{"text":"password policy"},"output":{"text":["I didn't understand. You can try rephrasing."],"nodes_visited":["Anything else"],"log_messages":[]}
-
Do I need any configuration to let the chatbot know that it should fallback on the discovery service if the assistant isn't able to respond to user question? I initially thought that no config is needed for this but probably I missing something since I don't see anything in the logs too.
-
How can enable more logging on the command prompt? I see a lot of console.log() statements in the javascript source files but how can I enable to view them?
Thanks.
from watson-banking-chatbot.
The current code only does the discovery lookup when the conversation tells it to.
} else if (data.context.action.lookup === DISCOVERY_ACTION) {
If you want it to always do the lookup, you can change the condition. Your current example hit the "Anything Else" node. So you could also key off of that.
from watson-banking-chatbot.
Thank you. I could link the discovery service by specifying the context variable "action" to "lookup":"rnr". 1. Is it possible to link the document from which the discovery service has answered the user query? This would help the user to download and look up the document further.
2. Also in one of my test I saw that the discovery service returned the passage text with the score of 38.604 but the bot still prints the message "Sorry I currently do not have an appropriate response for your query. Our customer care executive will call you in 24 hours." What could be wrong?
3. Is it possible to train the watson discovery service for instances when it gives incorrect results?
Thank you for sharing your valuable insights.
from watson-banking-chatbot.
Related Issues (20)
- Push button deploy fail: An operation for service instance wbc-discovery-service is in progress. HOT 5
- .travis.yml: The 'sudo' tag is now deprecated in Travis CI
- Discovery parsing is broken (and more...) HOT 1
- Discovery parsing is broken HOT 6
- branch info lookup is broken HOT 1
- "can use atm in any city" example doesn't work (use "can I use an atm in any city")
- Deploy to cloud button fails. Can't find banking.json to upload HOT 3
- Cloud deploy failed. Can't find documents to upload to discovery. HOT 1
- README needs...
- CF deploy button is broken HOT 1
- Do you have a branch in Mumbai? -> Sorry currently we don't have branch details for undefined
- Pay Now / pay credit card is not responding
- Suggest Gifts -> accounType is not defined
- the first button "Yes" does not work for me HOT 1
- Forbidden when using CloudFoundry deploy button
- Readme needs updating ...
- Error: Missing required parameters: apikey HOT 1
- Error invalid credentials HOT 1
- in ibm watson i configured options, image and all options other than text, but it is not shown in banking chat widget
- Error: Failed to create Watson Assistant skill: Error: connect ETIMEDOUT 23.221.22.91:443 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from watson-banking-chatbot.