Skip to content

Conversation

@Zerryth
Copy link
Contributor

@Zerryth Zerryth commented Nov 12, 2020

Fixes #1392

Description

In QnAMaker Knowledge Bases (KB), your question-and-answer pairs can include metadata, which you can filter against.
image

In situations where there are multiple filters, you can have the option to require that the results returned from querying a KB must either satisfy all filters using AND operator (i.e. the question-answer-pair has metadata tags for all filters) or you can require that the qna pairs have at least one of the metadata tags using the OR operator.

This PR adds the functionality of choosing either AND or OR operator, where AND is the default behavior.

@axelsrz axelsrz merged commit d00c0e1 into main Dec 10, 2020
@axelsrz axelsrz deleted the Zerryth/qna-join-operator branch December 10, 2020 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Port "QnAMaker GenerateAnswer filters need to support OR operation"

4 participants