I'm using REST API. How can I disable the "Limit response to your data content" function on your data (like unchecking the same item in Playground)?

Atsushi Nakamoto 20 Reputation points
2023-09-12T10:13:29.26+00:00

I would like to create a system using Onyourdata, an Azure AI service.

I'm using REST API. How can I disable the "Limit response to your data content" function on your data (like unchecking the same item in Playground)?

I'm using REST API. How can I disable the "Limit response to your data content" function on your data (like unchecking the same item in Playground)?

Until now, with reference to here https://learn.microsoft.com/en-us/azure/ai-services/openai/reference,

I set inScope to False, but for some reason I don't see any change in the output.

Thank you for your cooporation.

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,767 questions
0 comments No comments
{count} votes

Accepted answer
  1. Saurabh Sharma 23,796 Reputation points Microsoft Employee
    2023-09-12T21:20:21.4266667+00:00

    Hi Atsushi Nakamoto,

    Thanks for using Microsoft Q&A!!

    How are you passing the "InScope" parameter, it needs to be inside the datasource parameters. I have tried using the parameter and it worked fine. (Please find below the screenshots)

    Request Body:

    User's image

    {
        "temperature": 0,
        "max_tokens": 1000,
        "top_p": 1.0,
        "dataSources": [
            {
                "type": "AzureCognitiveSearch",            
                "queryType": "simple",
                "parameters": {
                    "endpoint": "https://{cognitivesearch}.search.windows.net",
                    "key": "{API KEY}",
                    "indexName": "azureblob-index",
                     "inScope": false
                }
                
            }
        ],
        "messages": [
            {
    		"role": "system",
    		"content": "You are an AI assistant that helps people find information"
    	},
            {
                "role": "user",
                "content": "What are the best places to visit in USA?"
            }
        ]
    }
    

    Result:

    User's image

    Please let me know if you have any questions.

    Thanks

    Saurabh


    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.