Summary

Completed

In this workshop, you used Azure AI Content Safety to moderate text and images, inspect prompts and documents for prompt attacks, and evaluate whether model output is grounded in source material. You also saw where protected material detection fits into an end-to-end guardrail workflow.

As you continue building AI responsibly, keep in mind that Azure AI Content Safety is only one part of a broader safety architecture. Effective guardrails usually combine model instructions, retrieval design, moderation thresholds, prompt-attack detection, output validation, and human review where appropriate.

After completing the project, you might wish to clean up your development environment or return it to its typical state.

Deleting the GitHub Codespaces environment helps avoid consuming compute and storage from your included Codespaces usage.

  1. Sign into the GitHub Codespaces dashboard (https://github.com/codespaces).

  2. Locate your currently running Codespace in the list of Codespaces.

  3. Open the context menu for the Codespace (...) and select Delete.

  4. Select Delete to confirm deletion.

Clean up Azure resources

If you no longer need the Azure AI Content Safety resource that you created for this workshop, delete the resource or delete the resource group that contains it. Deleting the resource group also deletes any other resources in that group, so verify that it doesn't contain resources you want to keep. For cleanup guidance, see Clean up resources for Azure AI services.

Learn more