Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions en/docs/ai-gateway/ai-guardrails/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,57 +41,57 @@ They act as intelligent filters that:

<div style="display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem;">

<a href="../content-length-guardrail" style="flex: 1 1 300px; min-width: 280px; max-width: 333px; min-height: 200px; background: var(--md-primary-fg-color--lightest, #f5f5f5); border: 2px solid var(--md-primary-fg-color, #2196f3); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: block;">
<a href="../content-length-guardrail" style="flex: 1 1 300px; min-width: 280px; max-width: 333px; min-height: 200px; background: var(--md-surface-fg-color, #fff); border: 2px solid var(--md-primary-fg-color, #2196f3); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: block;">
<div style="font-size: 0.8rem; font-weight: bold; margin-bottom: 0.5rem;">Content Length Guardrail</div>
<div style="font-size: 0.6rem; color: var(--md-default-fg-color--light, #333);">Restricts the maximum length of LLM requests or responses.</div>
</a>

<a href="../regex-guardrail" style="flex: 1 1 300px; min-width: 280px; max-width: 333px; min-height: 200px; background: var(--md-primary-fg-color--lightest, #f5f5f5); border: 2px solid var(--md-primary-fg-color, #2196f3); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: block;">
<a href="../regex-guardrail" style="flex: 1 1 300px; min-width: 280px; max-width: 333px; min-height: 200px; background: var(--md-surface-fg-color, #fff); border: 2px solid var(--md-primary-fg-color, #2196f3); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: block;">
<div style="font-size: 0.8rem; font-weight: bold; margin-bottom: 0.5rem;">Regex Guardrail</div>
<div style="font-size: 0.6rem; color: var(--md-default-fg-color--light, #333);">Validates LLM requests or responses using custom regular expressions.</div>
</a>

<a href="../json-schema-guardrail" style="flex: 1 1 300px; min-width: 280px; max-width: 333px; min-height: 200px; background: var(--md-primary-fg-color--lightest, #f5f5f5); border: 2px solid var(--md-primary-fg-color, #2196f3); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: block;">
<a href="../json-schema-guardrail" style="flex: 1 1 300px; min-width: 280px; max-width: 333px; min-height: 200px; background: var(--md-surface-fg-color, #fff); border: 2px solid var(--md-primary-fg-color, #2196f3); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: block;">
<div style="font-size: 0.8rem; font-weight: bold; margin-bottom: 0.5rem;">JSON Schema Guardrail</div>
<div style="font-size: 0.6rem; color: var(--md-default-fg-color--light, #333);">Ensures LLM requests or responses match a specified JSON schema.</div>
</a>

<a href="../sentence-count-guardrail" style="flex: 1 1 300px; min-width: 280px; max-width: 333px; min-height: 200px; background: var(--md-primary-fg-color--lightest, #f5f5f5); border: 2px solid var(--md-primary-fg-color, #2196f3); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: block;">
<a href="../sentence-count-guardrail" style="flex: 1 1 300px; min-width: 280px; max-width: 333px; min-height: 200px; background: var(--md-surface-fg-color, #fff); border: 2px solid var(--md-primary-fg-color, #2196f3); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: block;">
<div style="font-size: 0.8rem; font-weight: bold; margin-bottom: 0.5rem;">Sentence Count Guardrail</div>
<div style="font-size: 0.6rem; color: var(--md-default-fg-color--light, #333);">Limits the number of sentences in LLM requests or responses.</div>
</a>

<a href="../url-guardrail" style="flex: 1 1 300px; min-width: 280px; max-width: 333px; min-height: 200px; background: var(--md-primary-fg-color--lightest, #f5f5f5); border: 2px solid var(--md-primary-fg-color, #2196f3); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: block;">
<a href="../url-guardrail" style="flex: 1 1 300px; min-width: 280px; max-width: 333px; min-height: 200px; background: var(--md-surface-fg-color, #fff); border: 2px solid var(--md-primary-fg-color, #2196f3); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: block;">
<div style="font-size: 0.8rem; font-weight: bold; margin-bottom: 0.5rem;">URL Guardrail</div>
<div style="font-size: 0.6rem; color: var(--md-default-fg-color--light, #333);">Validates URLs in LLM responses, useful to detect hallucinated URLs.</div>
</a>

<a href="../word-count-guardrail" style="flex: 1 1 300px; min-width: 280px; max-width: 333px; min-height: 200px; background: var(--md-primary-fg-color--lightest, #f5f5f5); border: 2px solid var(--md-primary-fg-color, #2196f3); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: block;">
<a href="../word-count-guardrail" style="flex: 1 1 300px; min-width: 280px; max-width: 333px; min-height: 200px; background: var(--md-surface-fg-color, #fff); border: 2px solid var(--md-primary-fg-color, #2196f3); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: block;">
<div style="font-size: 0.8rem; font-weight: bold; margin-bottom: 0.5rem;">Word Count Guardrail</div>
<div style="font-size: 0.6rem; color: var(--md-default-fg-color--light, #333);">Restricts the number of words in LLM requests or responses.</div>
</a>

<a href="../regex-pii-masking" style="flex: 1 1 300px; min-width: 280px; max-width: 333px; min-height: 200px; background: var(--md-primary-fg-color--lightest, #f5f5f5); border: 2px solid var(--md-primary-fg-color, #2196f3); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: block;">
<a href="../regex-pii-masking" style="flex: 1 1 300px; min-width: 280px; max-width: 333px; min-height: 200px; background: var(--md-surface-fg-color, #fff); border: 2px solid var(--md-primary-fg-color, #2196f3); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: block;">
<div style="font-size: 0.8rem; font-weight: bold; margin-bottom: 0.5rem;">PII Masking with Regex</div>
<div style="font-size: 0.6rem; color: var(--md-default-fg-color--light, #333);">Safeguard Personally Identifiable Information (PII) in LLM requests or responses by leveraging user-defined regular expressions.</div>
</a>

<a href="../semantic-prompt-guardrail" style="flex: 1 1 300px; min-width: 280px; max-width: 333px; min-height: 200px; background: var(--md-primary-fg-color--lightest, #f5f5f5); border: 2px solid var(--md-primary-fg-color, #2196f3); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: block;">
<a href="../semantic-prompt-guardrail" style="flex: 1 1 300px; min-width: 280px; max-width: 333px; min-height: 200px; background: var(--md-surface-fg-color, #fff); border: 2px solid var(--md-primary-fg-color, #2196f3); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: block;">
<div style="font-size: 0.8rem; font-weight: bold; margin-bottom: 0.5rem;">Semantic Prompt Guardrail</div>
<div style="font-size: 0.6rem; color: var(--md-default-fg-color--light, #333);">Evaluate the semantic similarity of incoming prompts against a predefined list to allow or deny LLM requests.</div>
</a>

<a href="../semantic-tool-filtering-guardrail" style="flex: 1 1 300px; min-width: 280px; max-width: 333px; min-height: 200px; background: var(--md-primary-fg-color--lightest, #f5f5f5); border: 2px solid var(--md-primary-fg-color, #2196f3); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: block;">
<a href="../semantic-tool-filtering-guardrail" style="flex: 1 1 300px; min-width: 280px; max-width: 333px; min-height: 200px; background: var(--md-surface-fg-color, #fff); border: 2px solid var(--md-primary-fg-color, #2196f3); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: block;">
<div style="font-size: 0.8rem; font-weight: bold; margin-bottom: 0.5rem;">Semantic Tool Filtering</div>
<div style="font-size: 0.6rem; color: var(--md-default-fg-color--light, #333);">Selects and ranks available API tools by semantic relevance to the user's query; includes evaluation metrics comparing embedding providers.</div>
</a>

<a href="../azure-content-safety" style="flex: 1 1 300px; min-width: 280px; max-width: 333px; min-height: 200px; background: var(--md-primary-fg-color--lightest, #f5f5f5); border: 2px solid var(--md-primary-fg-color, #2196f3); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: block;">
<a href="../azure-content-safety" style="flex: 1 1 300px; min-width: 280px; max-width: 333px; min-height: 200px; background: var(--md-surface-fg-color, #fff); border: 2px solid var(--md-primary-fg-color, #2196f3); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: block;">
<div style="font-size: 0.8rem; font-weight: bold; margin-bottom: 0.5rem;">Azure Content Safety Content Moderation</div>
<div style="font-size: 0.6rem; color: var(--md-default-fg-color--light, #333);">Perform content moderation on LLM requests or responses using Azure Content Safety's Content Moderation API.</div>
</a>

<a href="../aws-bedrock-guardrail" style="flex: 1 1 300px; min-width: 280px; max-width: 333px; min-height: 200px; background: var(--md-primary-fg-color--lightest, #f5f5f5); border: 2px solid var(--md-primary-fg-color, #2196f3); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: block;">
<a href="../aws-bedrock-guardrail" style="flex: 1 1 300px; min-width: 280px; max-width: 333px; min-height: 200px; background: var(--md-surface-fg-color, #fff); border: 2px solid var(--md-primary-fg-color, #2196f3); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: block;">
<div style="font-size: 0.8rem; font-weight: bold; margin-bottom: 0.5rem;">AWS Bedrock Guardrail</div>
<div style="font-size: 0.6rem; color: var(--md-default-fg-color--light, #333);">Enforce AI API Safeguards with AWS Bedrock Guardrails</div>
</a>
Expand Down