QnA-Bot | QnA bot powered by CoQA BERT | Natural Language Processing library
kandi X-RAY | QnA-Bot Summary
kandi X-RAY | QnA-Bot Summary
QnA bot powered by CoQA + BERT
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Convert examples to features .
- Writes the prediction results .
- Create a model from a pretrained model .
- Read Coqa examples .
- Get the final prediction .
- Load weights from a TensorFlow checkpoint file .
- Initialize model .
- Predict a CoAqa example .
- Improve the explanation span of an answer span .
- Check if the document spans with the given position .
QnA-Bot Key Features
QnA-Bot Examples and Code Snippets
Community Discussions
Trending Discussions on QnA-Bot
QUESTION
I was using webchat v3 with iframe implementation and used the following to modify the UI of my webchat frame. Link here
Microsoft released the new webchat v4 but I could not follow the same steps to change the UI in v4 of webchat. Can anyone guide me how to change the UI of webchat v4 with Iframe (not directline)
...ANSWER
Answered 2020-Mar-05 at 23:37Unfortunately, in v4 iframe Web Chat, there is no way to alter the CSS as it is locked down. The only option is to use v4 directline Web Chat.
The iframe version is meant to be minimal, out-of-the-box ready, and purposely designed to not be customized. If you are seeking to customize the UI, then using BotFramework-WebChat is what you want.
Does it require a bit of elbow grease? Yes. Is it robust and offer the opportunity to build a better experience for your users? Absolutely.
Side note: Don't revert back to v3 in order to utilize the iframe and customize. v3 (BotChat) is deprecated and is no longer supported by Microsoft.
Hope of help!
QUESTION
ISSUE:
Today my chat bot stopped working and started giving the following error. No changes were made on my end when this started happening.
I could not find any error in console log. Then I tested the bot with Emulator and in Azure Portal's Test in Webchat feature and the bot worked fine. This bot is using webchat (iframe embed) as well as DirectLine channel. The DirectLine channel works fine it is only the webchat that is not working.
So to test my theory that I am getting the error because of webchat getting updated by Microsoft. I used the embed code in Azure Portal to use the latest webchat and the webchat channel started working.
BRIEF HISTORY: To modify the UI of the webchat I used this method to modify the UI of the IFrame of my bot. This method requires to download the source of IFrame, create an HTML page and use that page as a source of your IFRAME in your website (you can see the customization in the image).
Now that I started getting the issue I mentioned above, I tried to do the same thing with the latest version of webchat but it is not working. The webchat is not sending messages and I cannot find what CSS file this new version of webchat is using.
WHAT I NEED GUIDANCE ON:
- Either a way to continue using the old webchat with the proper UI
OR
- How to update the UI of this new webchat version?
ANSWER
Answered 2020-Feb-27 at 17:54I can't advise on fixing the iframe version, but this already wasn't officially supported, and with the latest webchat update Microsoft is moving more to recommending botframework-webchat (directline) to format the UI. A good place to start is the branding sample.
That sample doesn't spell out the options in the code, but if you take a look at the default options file, that should give you everything you need to customize the chat the way you want.
What this does not do is set up the header that used to be present in ootb webchat (and which I see you customized in your example). Now the best way is to do this in html/css, and you probably can just reuse what you did for your custom option. I just created an additional DIV, set it to height: 40px;
, then set the webchat DIV to height: calc(100% - 40px);
. Anyone who's good with HTML can probably come up with better than this, essentially you just build your page however you want at that point and the webchat implementation just controls the chat area itself (essentially send box and response/bubble area). I also added a custom button to my header.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install QnA-Bot
You can use QnA-Bot like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page