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

Prompt Override stopped working correctly in @2023-05-01 version

Open acomas1 opened this issue 1 year ago • 3 comments

Please provide us with the following information:

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

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

Minimal steps to reproduce

enter into prompt override something like

answer like a pirate or Generate HTML for any formatting request such as summarize in a table, list, highlight, etc.

Any log messages given by the failure

NONE

Expected/desired behavior

for a pirate - something like 'arrg...' for table summary - not formatting in HTML

OS and Version?

Windows 11

azd version?

azd version 1.0.2

Versions

Previous 2022 version worked correctly

Mention any other details that might be useful


Thanks! We'll be in touch soon.

acomas1 avatar Jun 22 '23 12:06 acomas1

The prompt override language has changed. For a pirate, I found this worked: '>>>Talk like a pirate in your answer.' and '>>>For any formatting request such as summarize in a table, list, highlight, return the answer as an HTML table' (for this one I find I somethings need to ask it twice -"Summarize in a table", then "format table" to get HTML table our

acomas1 avatar Jun 26 '23 18:06 acomas1

I also started getting completely incorrect answers when I wrote '''Answer like a pirate''' after updating to the @2023-05-01 version. However, if I now include the prompt override like this: '''>>>> Answer like a pirate''' it seems to work for some reason.

I received a tip from this video: https://www.youtube.com/watch?v=tW2EA4aZ_YQ (at 8:51).

josuakiviranta avatar Jun 28 '23 14:06 josuakiviranta

how do you guys use @2023-05-01 version? I only see version @2023-05-15 in this web page (Azure OpenAI)

PTTrazavi avatar Jul 05 '23 05:07 PTTrazavi

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed.

github-actions[bot] avatar Sep 04 '23 01:09 github-actions[bot]

I discovered we had a bug which caused us to ignore the prompt override in the chat tab, I just merged a fix for it in pr #606

pamelafox avatar Sep 08 '23 17:09 pamelafox