Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

[QnA] Fix MultiTurnPrompt QnA conversation #1204

Conversation

Batta32
Copy link
Contributor

@Batta32 Batta32 commented May 11, 2021

Fixes #1203
Related to #1166

Description

When the MultiTurnPrompt QnA conversation is configured and executed in a Java sample (e.g. 49.qnamaker-all-features), the conversation has an infinite loop.

Specific Changes

  • Get the response from the qnaMakerClient (like JS)
  • Obtain a default empty dictionary when the QNA_CONTEXT_DATA is not present in the state of the active dialog (like C#)

Testing

MultiTurnPrompt working as expected
image

image

mvn clean install passing successfully
image

@Batta32
Copy link
Contributor Author

Batta32 commented May 26, 2021

@tracyboehrer and @LeeParrishMSFT, we updated this branch adding the last changes of the main branch and it's ready to be reviewed and merged 😊!

@tracyboehrer tracyboehrer merged commit 955b836 into microsoft:main May 26, 2021
@Batta32 Batta32 deleted the external/fix/southworks/java/qna/qnamakerdialog branch May 26, 2021 15:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[QnA] Infinite loop using MultiTurnPrompt
2 participants