azure-search-openai-demo icon indicating copy to clipboard operation
azure-search-openai-demo copied to clipboard

Follow up questions feature does not seem to be working

Open kcordoc opened this issue 1 year ago • 3 comments

Please provide us with the following information:

This issue is for a: (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

run the app on local server.

Any log messages given by the failure

none

Expected/desired behavior

after completion, you should be able to see follow up questions when follow-up questions are enabled in 'developer settings'

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?) macOS

azd version?

run azd version and copy paste here.

Versions

1.0.0

Mention any other details that might be useful

I have deployed my app and the feature does not work


Thanks! We'll be in touch soon.

kcordoc avatar May 27 '23 20:05 kcordoc

Same for me as well. The follow up questions did not work.

ArunEPRO avatar Jun 02 '23 19:06 ArunEPRO

Same over here. Need to enable in developer settings but nothing happens.

anderl80 avatar Jun 21 '23 06:06 anderl80

+1 It seems like Completitions ignore instruction to generate follow up questions in our prompt and generate only answer for current question.

jomieljaniuk avatar Jul 04 '23 08:07 jomieljaniuk

Are there any update on this?

WhoIsDoctorWho avatar Oct 11 '23 06:10 WhoIsDoctorWho

I also encountered the issue. Could someone provide the correct prompt to receive the follow up question accurately?

sreesankar12 avatar Oct 11 '23 07:10 sreesankar12

The follow-up questions feature now works, but ChatGPT does not format the questions in a reliable manner. Sometimes it puts them inside angle brackets as requested, but it often puts them in a numbered list. That means the UI is not always able to render them as clickable links.

I've discussed follow-up questions with colleagues working on similar codebases, and we've identified three approaches to receiving follow-up questions in a well structured way so that they can become links in the UI:

  • Post-processing the response to look for the variations in how ChatGPT responds. That's fairly brittle however. (Approach used by the Javascript sample)
  • Using the "function call" feature of ChatGPT to receive a list of follow-up questions in the response. (Which I just prototyped for this repo in a branch)
  • Make an additional call to ChatGPT to specifically ask it to generate follow-up questions. (Approach used by the C# sample)

Each approach adds complexity in different parts of the codebase, so we haven't determined which way is the best.

pamelafox avatar Oct 11 '23 12:10 pamelafox

Great.Thanks!

sreesankar12 avatar Oct 11 '23 13:10 sreesankar12

It works on the last version, the issue may be closed

WhoIsDoctorWho avatar Oct 12 '23 14:10 WhoIsDoctorWho

I'll close this issue since follow-up questions are rendered, but we do have an issue with reliably rendering as links: https://github.com/Azure-Samples/azure-search-openai-demo/issues/783

pamelafox avatar Oct 12 '23 16:10 pamelafox