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

ryota.matsuda 140 Reputation points
2023-10-16T09:07:01.25+00:00

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.

https://github.com/microsoft/sample-app-aoai-chatGPT/blob/main/app.py

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
    2023-10-20T16:22:52.9633333+00:00

    @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 ?

    Thanks

    Saurabh

    0 comments No comments