azure-content-safety
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAzure AI Content Safety Skill
Azure AI Content Safety Skill
This skill provides expert guidance for Azure AI Content Safety. Covers troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, and deployment. It combines local quick-reference content with remote documentation fetching capabilities.
本Skill提供Azure AI Content Safety的专业指导,涵盖故障排查、最佳实践、决策制定、架构与设计模式、限制与配额、安全、配置和部署。它结合了本地快速参考内容与远程文档获取功能。
How to Use This Skill
如何使用本Skill
IMPORTANT for Agent: Use the Category Index below to locate relevant sections. For categories with line ranges (e.g.,), useL35-L120with the specified lines. For categories with file links (e.g.,read_file), use[security.md](security.md)on the linked reference fileread_file
IMPORTANT for Agent: Ifis more than 3 months old, suggest the user pull the latest version from the repository. Ifmetadata.generated_attools are not available, suggest the user install it: Installation Guidemcp_microsoftdocs
This skill requires network access to fetch documentation content:
- Preferred: Use with query string
mcp_microsoftdocs:microsoft_docs_fetch. Returns Markdown.from=learn-agent-skill - Fallback: Use with query string
fetch_webpage. Returns Markdown.from=learn-agent-skill&accept=text/markdown
Agent 重要提示:使用下方的分类索引查找相关章节。对于带有行范围的分类(如),使用L35-L120工具读取指定行内容。对于带有文件链接的分类(如read_file),使用[security.md](security.md)工具读取链接的参考文件read_file
本Skill需要网络访问权限以获取文档内容:
- 首选方式:使用工具,查询字符串为
mcp_microsoftdocs:microsoft_docs_fetch,返回Markdown格式内容。from=learn-agent-skill - 备用方式:使用工具,查询字符串为
fetch_webpage,返回Markdown格式内容。from=learn-agent-skill&accept=text/markdown
Category Index
分类索引
| Category | Lines | Description |
|---|---|---|
| Troubleshooting | L36-L40 | Diagnosing and resolving Azure AI Content Safety API errors, including HTTP status codes, common failure causes, and recommended fixes or retries. |
| Best Practices | L41-L45 | Tuning Content Safety thresholds, categories, and prompts to reduce misclassifications, plus strategies to balance safety, recall, and user experience. |
| Decision Making | L46-L51 | Guidance on migrating apps from Content Safety preview to GA and deciding when and how to use limited-access Content Safety features and models. |
| Architecture & Design Patterns | L52-L56 | Architectural guidance for combining cloud, hybrid, and on-device Azure AI Content Safety, including design patterns, deployment options, and integration strategies. |
| Limits & Quotas | L57-L63 | Language coverage, building and training custom safety categories, and detecting protected/third‑party code in model outputs. |
| Security | L64-L68 | Details on how Azure AI Content Safety encrypts data at rest, including encryption models, key management options, and compliance/security considerations. |
| Configuration | L69-L73 | Configuring and using text blocklists in Azure AI Content Safety, including creating, managing, and applying custom blocked terms to filter harmful or unwanted content. |
| Deployment | L74-L80 | How to install, configure, and run Azure AI Content Safety Docker containers for text, image, and prompt shield analysis in your own environment. |
| 分类 | 行范围 | 描述 |
|---|---|---|
| 故障排查 | L36-L40 | 诊断并解决Azure AI Content Safety API错误,包括HTTP状态码、常见故障原因及推荐的修复或重试方案。 |
| 最佳实践 | L41-L45 | 调整Content Safety的阈值、类别和提示以减少误分类,以及平衡安全性、召回率和用户体验的策略。 |
| 决策制定 | L46-L51 | 指导将应用从Content Safety预览版迁移至正式版(GA),以及决定何时及如何使用受限访问的Content Safety功能和模型。 |
| 架构与设计模式 | L52-L56 | 结合云、混合和本地设备Azure AI Content Safety的架构指导,包括设计模式、部署选项和集成策略。 |
| 限制与配额 | L57-L63 | 语言覆盖范围、自定义安全类别的构建与训练,以及检测模型输出中的受保护/第三方代码。 |
| 安全 | L64-L68 | Azure AI Content Safety如何加密静态数据的详细信息,包括加密模型、密钥管理选项和合规性/安全注意事项。 |
| 配置 | L69-L73 | 在Azure AI Content Safety中配置和使用文本阻止列表,包括创建、管理和应用自定义阻止术语以过滤有害或不需要的内容。 |
| 部署 | L74-L80 | 如何在自有环境中安装、配置和运行用于文本、图像和prompt shield分析的Azure AI Content Safety Docker容器。 |
Troubleshooting
故障排查
| Topic | URL |
|---|---|
| Resolve Azure AI Content Safety API error codes | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/concepts/response-codes |
| 主题 | 链接 |
|---|---|
| 解决Azure AI Content Safety API错误代码 | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/concepts/response-codes |
Best Practices
最佳实践
| Topic | URL |
|---|---|
| Reduce false positives and negatives in Content Safety | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/how-to/improve-performance |
| 主题 | 链接 |
|---|---|
| 减少Content Safety中的误报和漏报 | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/how-to/improve-performance |
Decision Making
决策制定
| Topic | URL |
|---|---|
| Migrate apps from Content Safety preview to GA | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/how-to/migrate-to-general-availability |
| Decide when to use limited access Content Safety features | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/limited-access |
| 主题 | 链接 |
|---|---|
| 将应用从Content Safety预览版迁移至正式版 | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/how-to/migrate-to-general-availability |
| 决定何时使用受限访问的Content Safety功能 | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/limited-access |
Architecture & Design Patterns
架构与设计模式
| Topic | URL |
|---|---|
| Design hybrid and on-device Content Safety solutions | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/how-to/embedded-content-safety |
| 主题 | 链接 |
|---|---|
| 设计混合和本地设备Content Safety解决方案 | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/how-to/embedded-content-safety |
Limits & Quotas
限制与配额
| Topic | URL |
|---|---|
| Check language support for Azure AI Content Safety | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/language-support |
| Create and train custom categories with Content Safety | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/quickstart-custom-categories |
| Use protected material detection for code outputs | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/quickstart-protected-material-code |
| 主题 | 链接 |
|---|---|
| 查看Azure AI Content Safety的语言支持 | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/language-support |
| 使用Content Safety创建和训练自定义类别 | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/quickstart-custom-categories |
| 对代码输出使用受保护材料检测 | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/quickstart-protected-material-code |
Security
安全
| Topic | URL |
|---|---|
| Understand data-at-rest encryption in Content Safety | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/how-to/encrypt-data-at-rest |
| 主题 | 链接 |
|---|---|
| 了解Content Safety中的静态数据加密 | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/how-to/encrypt-data-at-rest |
Configuration
配置
| Topic | URL |
|---|---|
| Configure and use text blocklists in Content Safety | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/how-to/use-blocklist |
| 主题 | 链接 |
|---|---|
| 在Content Safety中配置和使用文本阻止列表 | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/how-to/use-blocklist |
Deployment
部署
| Topic | URL |
|---|---|
| Deploy image analysis Content Safety container with Docker | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/how-to/containers/image-container |
| Install and run Azure Content Safety Docker containers | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/how-to/containers/install-run-container |
| Run Prompt Shields Content Safety container for prompt attacks | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/how-to/containers/prompt-shields-container |
| Deploy text analysis Content Safety container with Docker | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/how-to/containers/text-container |
| 主题 | 链接 |
|---|---|
| 使用Docker部署Content Safety图像分析容器 | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/how-to/containers/image-container |
| 安装并运行Azure Content Safety Docker容器 | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/how-to/containers/install-run-container |
| 运行Prompt Shields Content Safety容器以防范提示攻击 | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/how-to/containers/prompt-shields-container |
| 使用Docker部署Content Safety文本分析容器 | https://learn.microsoft.com/en-us/azure/ai-services/content-safety/how-to/containers/text-container |