CustomQuestionAnswering answers return empty metadata #4288
Labels
Bot Services
Required for internal Azure reporting. Do not delete. Do not change color.
bug
Indicates an unexpected problem or an unintended behavior.
customer-replied-to
Indicates that the team has replied to the issue reported by the customer. Do not delete.
customer-reported
Issue is created by anyone that is not a collaborator in the repository.
Versions
SDK: 4.16.0
NodeJS: 16.15.1
Browser: Chrome 103
OS: macOS 11.2.3
Describe the bug
When using the CustomQuestionAnswering class to query against a Language project, the answers returned contain empty arrays in place of the actual metadata key/value pairs configured in Language Studio.
To Reproduce
Expected behavior
Output of the get/generateAnswer methods should include all metadata tags
Screenshots
N/A
Additional context
At a first glance it seems the issue is that, unlike the QnA Maker API, CustomQuestionAnswering stores its metadata in an object rather than an array. However, the function languageServiceUtils.formatQnaResult tries to map the metadata object from the response as if it were an array.
The text was updated successfully, but these errors were encountered: