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:
{
"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:
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.