Azure Question Answering + Azure Translator Combination

Yacine Ben Abdallah 21 Reputation points
2022-08-01T11:27:26.677+00:00

I'm trying to create a bot that will answer the questions that my team members have. Since we are using Microsoft solutions, I wanted to implement the new Azure Cognitive Service "Question Answering" to deliver a capable bot that will answer questions in both languages ; English & French. It's working fine on its own (I implemented it in Teams) for the French language but from the little search I made, I can't add a language support for the English but there is a possibility to add Azure Translator. How ? No idea since I can't find anything to help me through the process.

Anyone can share with me a Tutorial or a document that will guide me through the steps of using both services together ?

Thanks a lot !

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
746 questions
Azure Translator
Azure Translator
An Azure service to easily conduct machine translation with a simple REST API call.
340 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,375 questions
{count} votes

Accepted answer
  1. YutongTie-MSFT 46,566 Reputation points
    2022-08-16T05:20:55.697+00:00

    Hello @Yacine Ben Abdallah

    Sorry for the late response. I think we have plan for your question - Logic App will be a good choice to create a workflow.
    https://learn.microsoft.com/en-us/connectors/custom-connectors/
    https://learn.microsoft.com/en-us/connectors/custom-connectors/use-custom-connector-flow

    Above document provide more details about what is connector and how to create a flow.

    I have checked the document, we have connectors for both Azure Translator and Language Service as below:
    Azure Translator - https://learn.microsoft.com/en-us/connectors/translatorv2/
    Azure Language Service Question Answering - https://learn.microsoft.com/en-us/connectors/languagequestionansw/

    You can create your workflow and triger the step one by one -
    intro.png
    authoring-steps.png

    I will give an example as below flow. The flow is triggered when an item is added to a SharePoint list, then the flow uses the custom connector to call the Cognitive Services Text Analytics API. The connector returns the sentiment score (0 to 1) for the text in the list item, and the flow writes the score back to the list. The following image shows the finished flow:
    finished-flow.png

    At the meantime, we think we should support bilingual, I am still waiting for the response from product manager about this point and will let you know once I have any response.

    Sorry for the late response again and I hope Logic App helps. Let me know if you have more questions and we are happy to help.

    Regards.
    Yutong

    -Please kindly accept the answer if you feel helpful to support the community, thanks a lot.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Senjo Joseph 21 Reputation points
    2022-08-17T12:30:22.823+00:00

    You may create custom Question answering service in English language and the within your bot you may implement Translator service which will detect and translate query & response to native language. This link might help you to achieve this. You may have to write down a middleware which detects and translate query & response. That means when a user send a query in French first you will detect the language then convert it into English then send that query to CQA service. Then you will translate the response from the CQA to French and respond to the user. For English query you may bypass the translation through a condition.

    0 comments No comments