Forum Discussion
neet_gupta
Jul 25, 2024Copper Contributor
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"
}
]
}
- neet_guptaCopper ContributorCan you pls give any reference for this?
- sdtslmnBrass Contributorhello
you can use Document-level Access Control in Azure OpenAI
This allows you to filter search results based on user group membership, ensuring that only authorized users can access specific documents.
please check the following
https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/use-your-data-securely- neet_guptaCopper ContributorYeah i read it but challenge is that i am not using access control and dont want to use it as my use case goes beyond user consideration and is more based on process.