Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

OpenAI API response discrepancies between Azure OpenAI Playground and chat/completions #115

Open
psubbarao opened this issue May 15, 2024 · 1 comment

Comments

@psubbarao
Copy link

psubbarao commented May 15, 2024

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

  1. I've uploaded a collection of documents to blob storage and indexed them using Azure Search service.
  2. I've begun querying these documents with various questions using Azure OpenAI playground, and I'm receiving accurate responses.
  3. However, when I utilize the Azure.AI.OpenAI client to pose the same questions, the responses are not as expected. Some questions yield no information at all, whereas they provide appropriate responses in the OpenAI playground.

Any log messages given by the failure

Here are my Chat Completion Options, which are same as configured in OpenAI playground:


ChatCompletionsOptions options = new()
{
    DeploymentName = _modelName,
    Messages =
    {
        systemMessage,
        userMessage
    },
    User = sessionId,
    AzureExtensionsOptions = new AzureChatExtensionsOptions()
    {
        Extensions = {
            new AzureSearchChatExtensionConfiguration() {
                SearchEndpoint = new Uri(_searchIndexEndpoint),
                IndexName = _searchIndexName,
                Authentication = new OnYourDataApiKeyAuthenticationOptions(_searchIndexApiAccessKey),
                Strictness = 3,
                DocumentCount = 5,
                ShouldRestrictResultScope = true
            }
        }
    },
    MaxTokens = 800,
    Temperature = 0.2f,
    NucleusSamplingFactor = 1f,
    FrequencyPenalty = 0,
    PresencePenalty = 0
}

Expected/desired behavior

OS and Version?

Windows 10 Enterprise

Versions

22H2

Mention any other details that might be useful


Thanks! We'll be in touch soon.

@psubbarao psubbarao changed the title Output discrepancies between Azure OpenAI Playground and extensions/chat/completions OpenAI API response discrepancies between Azure OpenAI Playground and extensions/chat/completions May 15, 2024
@psubbarao psubbarao changed the title OpenAI API response discrepancies between Azure OpenAI Playground and extensions/chat/completions OpenAI API response discrepancies between Azure OpenAI Playground and chat/completions May 16, 2024
@markjbrown
Copy link
Contributor

@psubbarao, I'm not clear what this is. The code you are sharing here is not in this project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants