Code Monkey home page Code Monkey logo

Comments (6)

markstur avatar markstur commented on May 26, 2024

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.

shahamit avatar shahamit commented on May 26, 2024

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 -

  1. 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?
  2. 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.

markstur avatar markstur commented on May 26, 2024
  1. 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.

  2. 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.

shahamit avatar shahamit commented on May 26, 2024

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":[]}

  1. 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.

  2. 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.

markstur avatar markstur commented on May 26, 2024

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.

shahamit avatar shahamit commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.