Forum Discussion

neet_gupta's avatar
neet_gupta
Copper Contributor
Jul 25, 2024

Search Selected Documents with Azure Open AI BYOD Search

I have azure blob with 3 documents (Doc 1, Doc 2, Doc 3) and they are being search through azure open and azure search service which is working perfectly fine.
 
But my requirement is to restrict my search to only Doc 2 and Doc 3. But m unable to find any option through which i can do this. How can this be done? Below is the sample body-
 
{
  "dataSources": [
    {
      "type": "AzureCognitiveSearch",
      "parameters": {
        "endpoint": "https://@@@@@@@@@@@@@.search.windows.net",
        "key": "@@@@@@@@@@@@@",
        "indexName": "abcd-index",
        "semanticConfiguration": "",
        "queryType": "simple",
        "fieldsMapping": {
          "contentFieldsSeparator": "\n",
          "contentFields": [
            "content"
          ],
          "filepathField": null,
          "titleField": "title",
          "urlField": null
        },
        "inScope": true,
        "roleInformation": "You are an AI assistant that helps people find information."
      }
    }
  ],
  "messages": [
    {
      "role": "user",
      "content": "tell me about solution versioning"
    }
  ]
}

Resources