azure-sdk-for-net icon indicating copy to clipboard operation
azure-sdk-for-net copied to clipboard

Why only 1 answer returns from Custom Question Answering project through Orchestration

Open DDavaa opened this issue 2 years ago • 2 comments

Library name and version

Azure.AI.Language.Conversations 1.0.0

Query/Question

I have Orchestration workflow that contains "Conversational language understanding" and "Custom question answering" projects. After I ask question through the Orchestration, if my top intent is selected from "Custom question answering", I can see there is property called "Answers" which supposed to be list of answers, however, it always returns only 1 answer versus I can see multiple intents from "Conversational language understanding" if my topIntent is selected with that project. How can I get multiple answers from the "Custom question answering" project through Orchestration? Or will it be available sometime soon?

I am using Azure.AI.Language.Conversations 1.0.0 and calling AnalyzeConversation from ConversationAnalysisClient.

Environment

No response

DDavaa avatar Dec 26 '22 20:12 DDavaa

Thank you for your feedback. Tagging and routing to the team member best able to assist. Please expect delayed responses due to the US holidays.

jsquire avatar Dec 27 '22 15:12 jsquire

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @bingisbestest, @nerajput1607.

Issue Details

Library name and version

Azure.AI.Language.Conversations 1.0.0

Query/Question

I have Orchestration workflow that contains "Conversational language understanding" and "Custom question answering" projects. After I ask question through the Orchestration, if my top intent is selected from "Custom question answering", I can see there is property called "Answers" which supposed to be list of answers, however, it always returns only 1 answer versus I can see multiple intents from "Conversational language understanding" if my topIntent is selected with that project. How can I get multiple answers from the "Custom question answering" project through Orchestration? Or will it be available sometime soon?

I am using Azure.AI.Language.Conversations 1.0.0 and calling AnalyzeConversation from ConversationAnalysisClient.

Environment

No response

Author: DDavaa
Assignees: heaths
Labels:

Service Attention, customer-reported, question, needs-team-attention, Service, Cognitive - QnA Maker

Milestone: -

ghost avatar Jan 05 '23 18:01 ghost

Please take a look at: https://learn.microsoft.com/en-us/rest/api/language/2022-05-01/conversation-analysis-runtime/analyze-conversation?tabs=HTTP

You can add the "targetProjectParameters" and specify the "top" value as mentioned below (please replace the query and intent name) to get more CQA results.

var data = new
{
    analysisInput = new
    {
        conversationItem = new
        {
            text = "<your query>",
            id = "1",
            participantId = "1",
        }
    },
    parameters = new
    {
        projectName,
        deploymentName,

        stringIndexType = "Utf16CodeUnit",
        targetProjectParameters = new {
            <intent_name>= new {
                targetProjectKind = "QuestionAnswering",
                callingOptions = new {
                  top = 3
                }
            }
        }
    },
    kind = "Conversation",
};

dasvictor avatar Jan 12 '23 12:01 dasvictor

Hi @DDavaa. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “/unresolve” to remove the “issue-addressed” label and continue the conversation.

ghost avatar Jan 13 '23 18:01 ghost

Thank you for the information @dasvictor ! I tried the data filter before with couple different ways but the filter was not working with any of my provided info. After seeing your response, I actually double checked again and the reason was my intent/project name for the Custom Question Answering had dash.

image

So I recreated my project without any dashes and that worked as expected!

image

Just curiosity, do you know why the data filter wouldn't accept the dash if the language studio lets us create the name with other symbols?

Thanks, Davaa

DDavaa avatar Jan 13 '23 22:01 DDavaa