Azure / GPT-RAG

Sharing the learning along the way we been gathering to enable Azure OpenAI at enterprise scale in a secure manner. GPT-RAG core is a Retrieval-Augmented Generation pattern running in Azure, using Azure Cognitive Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
https://azure.microsoft.com/en-us/products/cognitive-services/openai-service
MIT License
772 stars 125 forks source link

Responsible AI improvement with Content Safety/Content Filtering (multiple items) #129

Open gbecerra1982 opened 8 months ago

gbecerra1982 commented 8 months ago

List of tasks: (see this item description below)

Item description

User should be able to define what functions from Responsible AI plugin he/she wants to use as a guardrail when receiving the ask from the user and before sending the response back to the user and its thresholds.

List of functions:

Notes:

Out of scope items to be handled in a separated item:

1) IaaS (bicep) update to create and configure content safety service

2) Architecture redesign: Create a new Azure Function "Custom Security Policy" that will receive the text from the Orchestrator and validate the content does not have violence, sexual, etc. This function is the beggining of Security Function to add controls of security to the platform, further will be introduced additional security controls. Image

We need to prepare this function so the Security Team can add additional controls (i.e. Microsoft Purview, etc)

References: https://techcommunity.microsoft.com/t5/ai-azure-ai-services-blog/azure-ai-announces-prompt-shields-for-jailbreak-and-indirect/ba-p/4099140

https://techcommunity.microsoft.com/t5/ai-azure-ai-services-blog/detect-and-mitigate-ungrounded-model-outputs/ba-p/4099261%23:~:text=Today%2520Azure%2520AI%2520makes%2520this,Copilots%2520and%2520document%2520summarization%2520applications.

vladborys commented 1 month ago

AOAI Blocklist branch: https://github.com/vladborys/GPT-RAG/tree/feature/aoai-blockwords

placerda commented 1 month ago

I'll pull this to my fork and then create the pull request after doing the bash/sh adjustments