faqbot | : question : An email bot to answer FAQ | Bot library
kandi X-RAY | faqbot Summary
kandi X-RAY | faqbot Summary
A bot to manage emails that ask frequenty asked questions.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Authenticate the user
- Encode a JWT token
- Generate a new UUID
- Return True if the JWT token is valid
- Generate config from defaults
- Load a configuration file
- Save configuration to file
- Returns the path to store
- Show the statistics panel
- Get the menu
- Redirect to the menu
- Save the commands to a file
- Render Quill
- Decorator to require authentication
- Render the template
- Dump menu to config file
- Load commands
faqbot Key Features
faqbot Examples and Code Snippets
Community Discussions
Trending Discussions on faqbot
QUESTION
The issue I was facing was that I am following this documentation for integrating both LUIS and QnA maker
https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/tutorials/integrate-qnamaker-luis
And I have modified the code for a FAQbot. I have two intents, one the FAQ intent which has the QnA maker and then another Intent. When I ask a question in the chatbot from the FAQ intent it gives an accurate response and when I ask a completely different question also it goes to the other Intent. However, when I ask another new question which is not in the knowledge base but has a few words which are similar to the existing questions it gives me an answer predicting it to be from the FAQ intent. instead of the other intent. How do I improve the accuracy of the model?
...ANSWER
Answered 2019-May-23 at 08:39When you plan to build a LUIS model, choose a good naming convention. Else It would be hard for you when you referring the particular intent from your code.
Don’t use too lengthy words as intent names. Just use short descriptive wordings. Using Camel case or dot separated phrases is a good practice
Must Remember About LUIS:
- Do define distinct intents
Make sure the vocabulary for each intent is just for that intent and not overlapping with a different intent
- Do find sweet spot for intents
Use prediction data from LUIS to determine if your intents are overlapping. Overlapping intents confuse LUIS. The result is that the top scoring intent is too close to another intent. Because LUIS does not use the exact same path through the data for training each time, an overlapping intent has a chance of being first or second in training
- Balance your utterances across all intents
In order for LUIS predictions to be accurate, the quantity of example utterances in each intent (except for the None intent), must be relatively equal.
If you have an intent with 100 example utterances and an intent with 20 example utterances, the 100-utterance intent will have a higher rate of prediction
Here are some Do and Don't for LUIS:
Note: For more details you could refer this docs
Update:
If you still have any query feel free to share in comment. Thanks and happy coding!
QUESTION
I have a system in which users can send many chat messages, and many of them tend to be questions, like How do I register an account?
How do I do this?
Where is X?
To help with this, I'm interested in creating a FAQbot
that takes a chat message then decides whether to send a helpful message explaining how to do things. So a user types in How do I register an account?
and the bot should reply something along the lines of You can register by ...
The bot should reply like that if the user types How do I register?
, I can't register an account!
, Can somebody please tell me how to register?
, or anything else like that. There would be a fixed set of answers this bot would give to various questions we'd expect users to have, so I plan on training the neural network to output 0
for a message that doesn't need a reply, or some other ID number
that corresponds to a given reply message.
I was thinking that I would log all chat messages, go through and classify them all with which message or no message would be an appropriate reply, and then feed that into a neural network. I would also create tools to correct inappropriate replies or lack thereof.
I'm using C#
and will probably use a library such as Accord.NET
, although I'm not asking for the specific implementation. My one question is how I would take the chat message string and turn it into valid input for the neural network. I imagine it would tell the network which words and punctuation were used, which order the words were in, and which words follow which other words. However, the specific implementation of that eludes me.
ANSWER
Answered 2017-Feb-11 at 06:52Firstly - seems like your task is some kind of natural text classification
(each FAQ question presents one class).
Also - maybe TF-IDF
vector?
Another way that I see - present input as matrix of word vector (from word2vec or something like it), but seems like in this case ANN will have many params - so it not seems like you'll can train it properly.
p.s. also - maybe you'll prefer api.ai, or, maybe - Watson nlc-based bot?
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install faqbot
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