Few shots and prompts don't work as well as they should.

ryota.matsuda 140 Reputation points

Few shots and prompts don't work as well as they should.

I put the fuchot in ChatCompletion. It works without error but is not working at all.

I am processing this.


def prepare_body_headers_with_data内に追加しました。
request_messages.insert(0, {
    "role": "system",
    "content": role_system

    request_messages.insert(1, {
        "role": "user",
        "content": question_0

    request_messages.insert(2, {
        "role": "assistant",
        "content": answer_0

    request_messages.insert(3, {
        "role": "user",
        "content": question_1

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,302 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Saurabh Sharma 23,761 Reputation points Microsoft Employee

    @ryota.matsuda -

    I have tried this by updating the code at https://github.com/microsoft/sample-app-aoai-chatGPT/blob/main/app.py and the chatbot is able to summarize user's ask correctly. I have tried this with GPT35Turbo model.

    User's image

    OpenAI ChatGPT bot Result:

    User's image

    Which model and model version you are using ?



    0 comments No comments