Welcome to the Microsoft Q&A and thank you for posting your questions here.
I think prompt flow or python SDK will be suitable for your requirement as Chat playground can take only one AI search index or container at the moment.
Through Prompt flow, you can leverage different type of tools like python/prompt /lookup tools to authenticate users and search in different AI search indexes.
and
with Python SDK, you will need to create flask routes for authentication, route user from different SBU user group and deploy through Azure webapp and show results.
To achieve your requirement to
- You need route users to SBU1, SBU2, SBU3 document indexes based on their SBU for which you need to create multiple containers on the similar name convention of SBU prior
- You will need to fetch details of user when prompted for their SBU and route to their respective AI search indexes and show "access denied to other indexes, if access is not authenticated to respective SBU index"
def getsbu():
#fetch user group details
return sbu
def searchSBU(sbu):
#based on user group details , use if-else condition to search in respective sbu index through OpenAI agent and show the results
Given that:
SBU n user will have access to only SBU n only prior from IAM access of containers.
Kindly refer below documentation for reference.
Hope it helps address your requirements.
Thank you.