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

Intents/Slots history for awareness #6

Open
YuukanOO opened this issue Jul 5, 2019 · 0 comments
Open

Intents/Slots history for awareness #6

YuukanOO opened this issue Jul 5, 2019 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects

Comments

@YuukanOO
Copy link
Member

YuukanOO commented Jul 5, 2019

We need to provide an history of intents with their slots in the Agent.

With that in mind, when parsing a new sentence, if some slots couldn't have been extracted, we could try to look for them in the recent history before calling the skill handler.

The idea behind this is to be able to make something like this:

- Turn the living room TV on please
- Raise the volume <--- No identifier specified but since we previously mentionned "living room TV", use that instead
- Turn it off <--- Same as above

As a side effect, refering to #4 :

- Lower the temperature in the living room and turn lights off <--- Refers to the "living room"

should work too :)

Open questions are:

  • Should it always try to fill needed slots? Only if created in a predefined interval? Only when multiple intents in the same sentence ?
  • What are the bounds of the history ? Keep it forever? last 5 intents?

Regarding the implementation, nothing breaking here, a method such as get_available_slots(intent_name) should be added to Interpreter and returns the list of possible slot names given an intent (as per the training data)`.

@YuukanOO YuukanOO created this issue from a note in Tasks (To do) Jul 5, 2019
@YuukanOO YuukanOO added enhancement New feature or request question Further information is requested help wanted Extra attention is needed labels Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
Tasks
  
To do
Development

No branches or pull requests

1 participant