Why I am getting the response beyond the data source added in Azure Open AI ?

Katriya Bhavik Babubhai 10 Reputation points
2023-08-18T11:55:44.34+00:00

Hi Everyone,

I have added data from blob storage, also configured cognitive search and indexing. When I am asking question beyond the data source, I am able to get response, which should not happen.

For example, Bot is giving responses for generic questions like:

  1. who is PM/President of XYZ country?
  2. what is capital of XYZ country?

while responding it is also incorrectly referring to the document that I have added in data source.

Could someone please help me solve this issue?

Thanks,

Bhavik

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
1,353 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,098 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 17,741 Reputation points Microsoft Employee Moderator
    2023-08-19T01:07:47.3133333+00:00

    @Katriya Bhavik Babubhai It sounds like the default pre-built knowledge base is enabled.

    To exclude the pre-built knowledge base, set the "isTest" property to "true" in the request body when you call the question-answering API. This will ensure that the model only uses the data source(s) that you have specified in the configuration.

    For example, the request body might look like this:

    {
        "question": "<span class=" active-doc-0" data-doc-items="0">How long does it take to charge a Surface Pro 4[1](#doc-pos=0)</span>?",
        "dataSources": "myDataSource",
        "isTest": true
    }
    
    
    

    In this example, the question-answering model will only use the "myDataSource" data source to retrieve answers and will not use the pre-built knowledge base.

    I hope this answers your question. Let me know if you have any further questions.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.