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

where to change prompts in azure

Open michelltang001 opened this issue 2 years 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
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Any log messages given by the failure

Expected/desired behavior

I changed the prmopts about the assistant role but it didnt shows on the endpoint after deployment. Can I change them in azure? where should I change it?

OS and Version?

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

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

michelltang001 avatar May 14 '23 13:05 michelltang001

For my case I changed the default prompts locally (ex: chatreadretrieveread.py), and execute "azd deploy" to deploy again, and it worked.

PTTrazavi avatar May 15 '23 00:05 PTTrazavi

I've got the same question. If using Github codespaces or Remote Containers, then how you go about changing the default prompts in notebooks/chat-read-retrieve-read.ipynb.

Thanks

aero-girl avatar May 15 '23 19:05 aero-girl

For my case I changed the default prompts locally (ex: chatreadretrieveread.py), and execute "azd deploy" to deploy again, and it worked.

Thanks for your answer. I opened the py file and chagned the prompt and run azd deploy as well, but when I open tje web app endpoint, the origianl prompt were still there. :(

michelltang001 avatar May 18 '23 06:05 michelltang001

@michelltang001 Depending on the approach you choose, you have different prompts hard-coded in different python files. Chances are, you updated a prompt from an approach you don't use... Check the prompts in the following files:

  • retrievethenread.py
  • readretrieveread.py
  • chatreadretrieveread.py

Tibap avatar Jun 01 '23 15:06 Tibap

Yes, you should be able to change the prompt in the appropriate file, as @Tibap says. Closing this issue, please comment if you were unable to find the correct file.

pamelafox avatar Sep 08 '23 17:09 pamelafox