qnabot-on-aws: QnA wont get any content from Kendra , if the Kendra content is not in english.
Describe the bug From the default QnA client only English content will be replied by QnA bot.
Even if the QnA langage is set to French, and that we have content in French in Kendra, no data is return to my french question.
As soon as I add a data source in English to Kendra I see only those answer in the chat bot.
To Reproduce Create de default QnA bot and select French as language
Create a kendra index and add a web crawler with data in french.
Expected behavior French response available in french that we can see from the kendra console if we set the language to Frnech
Please complete the following information about the solution:
-
Version: [e.g. v5.5.1]
-
Region: ca-central-1
-
Was the solution modified from the version published on this repository? No
-
Have you checked your service quotas for the services this solution uses? N/A
-
Were there any errors in the CloudWatch Logs? No
-
I was told that the kendra call must include a language_code something like this.
response = kendra.retrieve(
PageSize = 5,
PageNumber = 1,
QueryText = text,
IndexId = index_id,
AttributeFilter={ "EqualsTo": {
"Key": "_language_code",
"Value": {
"StringValue": "fr"
}
}
- Another point can we passe more than 1 language to kendra.retrieve ?
TIA
Guillaume.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (7 by maintainers)
@Guillaume-Bourque-Levio thanks for your report, we will investigate and get back to you