azure-sdk-for-net
azure-sdk-for-net copied to clipboard
Why only 1 answer returns from Custom Question Answering project through Orchestration
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
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.
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: |
|
| Milestone: | - |
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",
};
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.
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.

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

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