Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common query framework #1900

Merged
merged 2 commits into from Dec 5, 2018
Merged

Conversation

forslund
Copy link
Collaborator

@forslund forslund commented Dec 4, 2018

Description

A system similar to the common play for negotiating for finding the best answer for questions. Currently three levels of CQSMatchLevel Exist:
EXACT: If the query could be identified exactly and a response is returned.
Example: The cockail skill could find a cocktail in the query that exists in
it's database.

CATEGORY: A category of questions the skill handles could be identified.
Example: The wiki-data skill can identify that the question is regarding
A date of birth and finds an answer.

GENERAL: A general question and answer service could parse the question.
Example: The wolfram alpha skill got a match for "How tall is Abraham
Lincoln".

The skill can also return the CQSVisualMatchLevel indicating that they have visual media to go with the skill, on visual devices such as a Mark-2 a bonus is given to these matches.

The skill-query will send the response for the best match to the TTS but will also invoke the CQS_action() where additional handling may occur, showing of visual info or in the case of wolfram alpha preparing to send the sources via e-mail.

How to test

install https://github.com/mycroftai/skill-query and switch the branch on wolfram and duck-duck-go to feature/common-qa.

Make sure the questions still works.

Contributor license agreement signed?

CLA [ Yes ]

Adds support for negotiating best answer for a questions

Currently three levels of confidence are defined

EXACT: If the query could be identified exactly and a response is returned.
    Example: The cockail skill could find a cocktail in the query that exists in
             it's database.

CATEGORY: A category of questions the skill handles could be identified.
    Example: The wiki-data skill can identify that the question is regarding
             A date of birth and finds an answer.

GENERAL: A general question and answer service could parse the question.
    Example: The wolfram alpha skill got a match for "How tall is Abraham
             Lincoln".
CQSVisualMatchLevel can be returned and if the device is a mark-2 a bonus will be given to the skill.
@forslund forslund added the CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) label Dec 4, 2018
@pep8speaks
Copy link

Hello @forslund! Thanks for submitting the PR.

Copy link
Contributor

@LearnedVector LearnedVector left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@LearnedVector LearnedVector merged commit 3bb15bc into MycroftAI:dev Dec 5, 2018
@forslund forslund deleted the feature/common-qa branch February 18, 2019 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants