Aporia Guardrails is highly customizable, and we continuously add more customization options. Learn how to customize guardrails for your needs.
Get Started
To begin customizing your project, enter the policies tab of your project by logging into the Aporia dashboard, selecting your project and clicking on the Policies tab.Here, you can add new policies1, customize2, and delete existing ones3.
A policy in Aporia is a specific safeguard against a single LLM risk.Examples include RAG hallucinations, Restricted topics, or Prompt Injection. Each policy allows for various customizations, such as adjustable sensitivity levels or topics to restrict.
Adding a policy
To add a new policy, click Add policy to enter the policy catalog:Select the policies you’d like to add and click Add to project.
Editing a policy
Next to the new policy you want to edit, select the ellipses (…) menu and click Edit configuration.Overview of the edit configuration page:
Policy Detection Customization: Use this section to customize the policy detection algorithm (e.g. topics to restrict). The configuration options here depend on the type of policy you are editing.
Action Customization: Customize the actions taken when a violation is detected in this section.
Sandbox: Test your policy configurations using the chatbot sandbox. Enable or disable a policy using the Policy State toggle.
Save Changes: Click this button to save and implement your changes.
The Quickstart guide includes an end-to-end example of how to customize a policy.
Select your project and click on the Policies tab.
Next to the policy you’d like to remove, select the ellipses (…) and then select Delete policy from the menu.
Custom policies
You can also build your own custom policies by writing a prompt. See the Custom Policy documentation for more information.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Aporia","colors":{"primary":"#0D9373","light":"#07C983","dark":"#0D9373"},"favicon":"/favicon.svg","logo":{"light":"https://mintcdn.com/aporia/67z2pg4gk3aiMXT7/logo/light.svg?fit=max\u0026auto=format\u0026n=67z2pg4gk3aiMXT7\u0026q=85\u0026s=966825e33ef682d0fdd1826ea5b680b7","dark":"https://mintcdn.com/aporia/67z2pg4gk3aiMXT7/logo/light.svg?fit=max\u0026auto=format\u0026n=67z2pg4gk3aiMXT7\u0026q=85\u0026s=966825e33ef682d0fdd1826ea5b680b7"},"appearance":{"default":"light","strict":true},"navbar":{"links":[{"label":"contact us","href":"https://www.aporia.com/contact-us/"}],"primary":{"type":"button","label":"Book a Demo","href":"https://www.aporia.com/demo/"}},"footer":{"socials":{"website":"https://www.aporia.com","x":"https://twitter.com/AporiaAi","github":"https://github.com/aporia-ai","linkedin":"https://www.linkedin.com/company/aporiaai","youtube":"https://www.youtube.com/channel/UClImHZUPNbL-PxKSMS1E92g","instagram":"https://www.instagram.com/life.at.aporia/"}},"integrations":{"gtm":{"tagId":"GTM-NNNMX2PG"}},"navigation":{"global":{"anchors":[{"anchor":"Guardrails Dashboard","href":"https://guardrails.aporia.com/","icon":"shield"},{"anchor":"GenAI Academy","href":"https://www.aporia.com/learn/generative-ai/","icon":"graduation-cap"},{"anchor":"ML Observability Docs","href":"https://docs.aporia.com","icon":"heart-pulse"},{"anchor":"Blog","href":"https://www.aporia.com/blog/","icon":"newspaper"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"aporia","hasAudioNarration":false,"actualSubdomain":"aporia","customDomains":["gr-docs.aporia.com"],"gitSource":{"type":"github","owner":"aporia-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"DISABLED"},"CONTEXTUAL_FEEDBACK":{"status":"DISABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"DISABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae91f42e285e7410aae864f:success","clientVersion":"0.0.4131","searchFilterCounts":[{"language":"default","tag":"Documentation","count":58},{"language":"default","tag":"Policies","count":21},{"language":"default","tag":"Fundamentals","count":12},{"language":"default","tag":"Release Notes","count":12},{"language":"default","tag":"Enterprise","count":5},{"language":"default","tag":"Text-to-SQL Security","count":5},{"language":"default","tag":"Examples","count":4},{"language":"default","tag":"AI Gateway integration","count":4},{"language":"default","tag":"Integrate to LLM app","count":3},{"language":"default","tag":"Get Started","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"fundamentals/customization","slug":"/fundamentals/customization","pageMetadata":{"title":"Customization","description":"Aporia Guardrails is highly customizable, and we continuously add more customization options. Learn how to customize guardrails for your needs.","href":"/fundamentals/customization"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Aporia Guardrails is highly customizable, and we continuously add more customization options. Learn how to customize guardrails for your needs.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Heading,OptimizedImage,Tip}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`get-started`,children:`Get Started`}),`\n`,_jsxs(_components.p,{children:[`To begin customizing your project, enter the policies tab of your project by logging into the `,_jsx(_components.a,{href:`https://guardrails.aporia.com`,children:`Aporia dashboard`}),`, selecting your project and clicking on the `,_jsx(_components.strong,{children:`Policies`}),` tab.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/aporia/ikR99If3485QaXQB/images/policies-tab-customization.png?fit=max\u0026auto=format\u0026n=ikR99If3485QaXQB\u0026q=85\u0026s=4426ae18bda390fc6d79ef50dea7ec70`,className:`mint-rounded-md mint-block`,\"data-og-width\":`3024`,width:`3024`,\"data-og-height\":`1546`,height:`1546`,\"data-path\":`images/policies-tab-customization.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/aporia/ikR99If3485QaXQB/images/policies-tab-customization.png?w=280\u0026fit=max\u0026auto=format\u0026n=ikR99If3485QaXQB\u0026q=85\u0026s=3d5583add077f8ea8ec7d6a6e8e81131 280w, https://mintcdn.com/aporia/ikR99If3485QaXQB/images/policies-tab-customization.png?w=560\u0026fit=max\u0026auto=format\u0026n=ikR99If3485QaXQB\u0026q=85\u0026s=e966c3ef0eb195ce1377bfd2f9523a93 560w, https://mintcdn.com/aporia/ikR99If3485QaXQB/images/policies-tab-customization.png?w=840\u0026fit=max\u0026auto=format\u0026n=ikR99If3485QaXQB\u0026q=85\u0026s=f5242d4f65ca4ca7268da1536fba7e7d 840w, https://mintcdn.com/aporia/ikR99If3485QaXQB/images/policies-tab-customization.png?w=1100\u0026fit=max\u0026auto=format\u0026n=ikR99If3485QaXQB\u0026q=85\u0026s=95e9cbcd68e67eec95a867a0b1178c70 1100w, https://mintcdn.com/aporia/ikR99If3485QaXQB/images/policies-tab-customization.png?w=1650\u0026fit=max\u0026auto=format\u0026n=ikR99If3485QaXQB\u0026q=85\u0026s=498c28957ce1afaeca978ed2832a224a 1650w, https://mintcdn.com/aporia/ikR99If3485QaXQB/images/policies-tab-customization.png?w=2500\u0026fit=max\u0026auto=format\u0026n=ikR99If3485QaXQB\u0026q=85\u0026s=64c7fab4a162b7efa03ae51a88431aaa 2500w`}),`\n`,_jsxs(_components.p,{children:[`Here, you can add new policies`,_jsx(`sup`,{children:`1`}),`, customize`,_jsx(`sup`,{children:`2`}),`, and delete existing ones`,_jsx(`sup`,{children:`3`}),`.`]}),`\n`,_jsxs(Tip,{children:[_jsx(_components.p,{children:`A policy in Aporia is a specific safeguard against a single LLM risk.`}),_jsx(_components.p,{children:`Examples include RAG hallucinations, Restricted topics, or Prompt Injection. Each policy allows for various customizations, such as adjustable sensitivity levels or topics to restrict.`})]}),`\n`,_jsx(Heading,{level:`2`,id:`adding-a-policy`,children:`Adding a policy`}),`\n`,_jsxs(_components.p,{children:[`To add a new policy, click `,_jsx(_components.strong,{children:`Add policy`}),` to enter the policy catalog:`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/aporia/ikR99If3485QaXQB/images/policy-catalog.png?fit=max\u0026auto=format\u0026n=ikR99If3485QaXQB\u0026q=85\u0026s=c8bf0af39c617d129fea79ee0a6ec6c1`,className:`mint-rounded-md mint-block`,\"data-og-width\":`3024`,width:`3024`,\"data-og-height\":`1546`,height:`1546`,\"data-path\":`images/policy-catalog.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/aporia/ikR99If3485QaXQB/images/policy-catalog.png?w=280\u0026fit=max\u0026auto=format\u0026n=ikR99If3485QaXQB\u0026q=85\u0026s=fafc2ecf04485c1f37a2b1b1661b64fe 280w, https://mintcdn.com/aporia/ikR99If3485QaXQB/images/policy-catalog.png?w=560\u0026fit=max\u0026auto=format\u0026n=ikR99If3485QaXQB\u0026q=85\u0026s=5e1f9ea515cc7ae72ca516f2754c677c 560w, https://mintcdn.com/aporia/ikR99If3485QaXQB/images/policy-catalog.png?w=840\u0026fit=max\u0026auto=format\u0026n=ikR99If3485QaXQB\u0026q=85\u0026s=ec63913fc79bfa5b5777fdd0b7ac8203 840w, https://mintcdn.com/aporia/ikR99If3485QaXQB/images/policy-catalog.png?w=1100\u0026fit=max\u0026auto=format\u0026n=ikR99If3485QaXQB\u0026q=85\u0026s=e13930116de30435c55fc52486677d60 1100w, https://mintcdn.com/aporia/ikR99If3485QaXQB/images/policy-catalog.png?w=1650\u0026fit=max\u0026auto=format\u0026n=ikR99If3485QaXQB\u0026q=85\u0026s=cb8e2fb937d90bcf79bf14e01cb06bb3 1650w, https://mintcdn.com/aporia/ikR99If3485QaXQB/images/policy-catalog.png?w=2500\u0026fit=max\u0026auto=format\u0026n=ikR99If3485QaXQB\u0026q=85\u0026s=ca2b52948f721cca257f6182c35a1a65 2500w`}),`\n`,_jsxs(_components.p,{children:[`Select the policies you’d like to add and click `,_jsx(_components.strong,{children:`Add to project`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`editing-a-policy`,children:`Editing a policy`}),`\n`,_jsxs(_components.p,{children:[`Next to the new policy you want to edit, select the ellipses (…) menu and click `,_jsx(_components.strong,{children:`Edit configuration`}),`.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/aporia/ikR99If3485QaXQB/images/edit-policy.png?fit=max\u0026auto=format\u0026n=ikR99If3485QaXQB\u0026q=85\u0026s=27a36cf0b50dd2bb9c92f7d01e2fdcff`,className:`mint-rounded-md mint-block`,\"data-og-width\":`3024`,width:`3024`,\"data-og-height\":`1548`,height:`1548`,\"data-path\":`images/edit-policy.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/aporia/ikR99If3485QaXQB/images/edit-policy.png?w=280\u0026fit=max\u0026auto=format\u0026n=ikR99If3485QaXQB\u0026q=85\u0026s=7c0b8eed7ae2bee26af4ea116c9d462d 280w, https://mintcdn.com/aporia/ikR99If3485QaXQB/images/edit-policy.png?w=560\u0026fit=max\u0026auto=format\u0026n=ikR99If3485QaXQB\u0026q=85\u0026s=f6d7cce8f248c847902b9bee7bd2ae61 560w, https://mintcdn.com/aporia/ikR99If3485QaXQB/images/edit-policy.png?w=840\u0026fit=max\u0026auto=format\u0026n=ikR99If3485QaXQB\u0026q=85\u0026s=436207a7424412e9d9cdfa321df43cd8 840w, https://mintcdn.com/aporia/ikR99If3485QaXQB/images/edit-policy.png?w=1100\u0026fit=max\u0026auto=format\u0026n=ikR99If3485QaXQB\u0026q=85\u0026s=48286eb5ff5d248a750bee105f6193f0 1100w, https://mintcdn.com/aporia/ikR99If3485QaXQB/images/edit-policy.png?w=1650\u0026fit=max\u0026auto=format\u0026n=ikR99If3485QaXQB\u0026q=85\u0026s=b36ce57e68408c1b0f83cc06a324087b 1650w, https://mintcdn.com/aporia/ikR99If3485QaXQB/images/edit-policy.png?w=2500\u0026fit=max\u0026auto=format\u0026n=ikR99If3485QaXQB\u0026q=85\u0026s=23d7b0bae6b86d1f9a067636020ade17 2500w`}),`\n`,_jsx(_components.p,{children:`Overview of the edit configuration page:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Policy Detection Customization:`}),` Use this section to customize the policy detection algorithm (e.g. topics to restrict). The configuration options here depend on the type of policy you are editing.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Action Customization:`}),` Customize the actions taken when a violation is detected in this section.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Sandbox:`}),` Test your policy configurations using the chatbot sandbox. Enable or disable a policy using the `,_jsx(_components.strong,{children:`Policy State`}),` toggle.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Save Changes:`}),` Click this button to save and implement your changes.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`/get-started/quickstart`,children:`Quickstart`}),` guide includes an end-to-end example of how to customize a policy.`]}),`\n`,_jsx(Heading,{level:`2`,id:`deleting-a-policy`,children:`Deleting a policy`}),`\n`,_jsx(_components.p,{children:`To delete a policy:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://guardrails.aporia.com`,children:`Log into your Aporia Guardrails account.`})}),`\n`,_jsxs(_components.li,{children:[`Select your project and click on the `,_jsx(_components.strong,{children:`Policies`}),` tab.`]}),`\n`,_jsxs(_components.li,{children:[`Next to the policy you’d like to remove, select the ellipses (…) and then select `,_jsx(_components.strong,{children:`Delete policy`}),` from the menu.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`custom-policies`,children:`Custom policies`}),`\n`,_jsxs(_components.p,{children:[`You can also build your own custom policies by writing a prompt. See the `,_jsx(_components.a,{href:`/policies/custom-policy`,children:`Custom Policy`}),` documentation for more information.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Customization","description":"Aporia Guardrails is highly customizable, and we continuously add more customization options. Learn how to customize guardrails for your needs.","href":"/fundamentals/customization"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Get Started","slug":"get-started","depth":2,"children":[]},{"title":"Adding a policy","slug":"adding-a-policy","depth":2,"children":[]},{"title":"Editing a policy","slug":"editing-a-policy","depth":2,"children":[]},{"title":"Deleting a policy","slug":"deleting-a-policy","depth":2,"children":[]},{"title":"Custom policies","slug":"custom-policies","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"dynamicCss":".mint-block {\n display: block\n}\n.mint-rounded-md {\n border-radius: 0.375rem\n}","subdomain":"aporia","siteName":"Aporia","title":"Customization - Aporia","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T01:42:05.841Z","originalFileLocation":"fundamentals/customization.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Aporia Guardrails is highly customizable, and we continuously add more customization options. Learn how to customize guardrails for your needs.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Aporia\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aporia/H_DPHe6g25nENpoI/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/aporia/H_DPHe6g25nENpoI/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aporia/H_DPHe6g25nENpoI/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/aporia/H_DPHe6g25nENpoI/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/aporia/H_DPHe6g25nENpoI/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aporia/H_DPHe6g25nENpoI/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aporia/H_DPHe6g25nENpoI/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/aporia/H_DPHe6g25nENpoI/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/aporia/H_DPHe6g25nENpoI/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Customization - Aporia\">\u003cmeta data-mint-head property=\"og:description\" content=\"Aporia Guardrails is highly customizable, and we continuously add more customization options. Learn how to customize guardrails for your needs.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Aporia\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://gr-docs.aporia.com/fundamentals/customization\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://aporia.mintlify.site/_mintlify/api/og/v2?division=Fundamentals\u0026amp;title=Customization\u0026amp;description=Aporia+Guardrails+is+highly+customizable%2C+and+we+continuously+add+more+customization+options.+Learn+how+to+customize+guardrails+for+your+needs.\u0026amp;theme=b112d892635a0ec5730b8d3f\u0026amp;signature=fecb48d99acc9bc8a55815c0b227cc55939e0d8e33604c4d642644d8dc830f22\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Customization - Aporia\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Aporia Guardrails is highly customizable, and we continuously add more customization options. Learn how to customize guardrails for your needs.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://aporia.mintlify.site/_mintlify/api/og/v2?division=Fundamentals\u0026amp;title=Customization\u0026amp;description=Aporia+Guardrails+is+highly+customizable%2C+and+we+continuously+add+more+customization+options.+Learn+how+to+customize+guardrails+for+your+needs.\u0026amp;theme=b112d892635a0ec5730b8d3f\u0026amp;signature=fecb48d99acc9bc8a55815c0b227cc55939e0d8e33604c4d642644d8dc830f22\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/aporia/H_DPHe6g25nENpoI/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Aporia\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://gr-docs.aporia.com/fundamentals/customization\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/fundamentals/customization.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://gr-docs.aporia.com/#organization\",\"name\":\"Aporia\",\"url\":\"https://gr-docs.aporia.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/aporia/67z2pg4gk3aiMXT7/logo/light.svg?fit=max\u0026auto=format\u0026n=67z2pg4gk3aiMXT7\u0026q=85\u0026s=966825e33ef682d0fdd1826ea5b680b7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://gr-docs.aporia.com#website\",\"name\":\"Aporia\",\"url\":\"https://gr-docs.aporia.com\",\"publisher\":{\"@id\":\"https://gr-docs.aporia.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://gr-docs.aporia.com/fundamentals/customization#webpage\",\"url\":\"https://gr-docs.aporia.com/fundamentals/customization\",\"name\":\"Customization\",\"description\":\"Aporia Guardrails is highly customizable, and we continuously add more customization options. Learn how to customize guardrails for your needs.\",\"dateModified\":\"2026-01-07T01:42:05.841Z\",\"isPartOf\":{\"@id\":\"https://gr-docs.aporia.com#website\"},\"breadcrumb\":{\"@id\":\"https://gr-docs.aporia.com/fundamentals/customization#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://gr-docs.aporia.com/fundamentals/customization#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Fundamentals\",\"item\":\"https://gr-docs.aporia.com/fundamentals/projects\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Customization\",\"item\":\"https://gr-docs.aporia.com/fundamentals/customization\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://gr-docs.aporia.com/fundamentals/customization#article\",\"headline\":\"Customization\",\"name\":\"Customization\",\"description\":\"Aporia Guardrails is highly customizable, and we continuously add more customization options. Learn how to customize guardrails for your needs.\",\"url\":\"https://gr-docs.aporia.com/fundamentals/customization\",\"mainEntityOfPage\":{\"@id\":\"https://gr-docs.aporia.com/fundamentals/customization#webpage\"},\"dateModified\":\"2026-01-07T01:42:05.841Z\",\"publisher\":{\"@id\":\"https://gr-docs.aporia.com/#organization\"},\"isPartOf\":{\"@id\":\"https://gr-docs.aporia.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Aporia\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Aporia\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/fundamentals/customization.md","siteName":"Aporia","nav":{"global":{"anchors":[{"anchor":"Guardrails Dashboard","href":"https://guardrails.aporia.com/","icon":"shield"},{"anchor":"GenAI Academy","href":"https://www.aporia.com/learn/generative-ai/","icon":"graduation-cap"},{"anchor":"ML Observability Docs","href":"https://docs.aporia.com","icon":"heart-pulse"},{"anchor":"Blog","href":"https://www.aporia.com/blog/","icon":"newspaper"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/get-started/introduction"},{"title":"Quickstart","href":"/get-started/quickstart"},{"title":"Why Guardrails?","href":"/get-started/why-guardrails"}]},{"group":"Fundamentals","pages":[{"title":"Projects overview","href":"/fundamentals/projects"},{"title":"Extractions","href":"/fundamentals/extractions"},{"group":"Integrate to LLM app","pages":[{"title":"Overview","href":"/fundamentals/integration/integration-overview"},{"title":"OpenAI Proxy","href":"/fundamentals/integration/openai-proxy"},{"title":"REST API","description":null,"href":"/fundamentals/integration/rest-api"}]},{"title":"Customization","href":"/fundamentals/customization"},{"title":"Streaming support","description":"Aporia Guardrails provides guardrails for both prompt-level and response-level streaming, which is critical for building reliable chatbot experiences.","href":"/fundamentals/streaming"},{"group":"AI Gateway integration","pages":[{"title":"Overview","href":"/fundamentals/ai-gateways/overview"},{"title":"LiteLLM integration","href":"/fundamentals/ai-gateways/litellm"},{"title":"Portkey integration","href":"/fundamentals/ai-gateways/portkey"},{"title":"Cloudflare AI Gateway","href":"/fundamentals/ai-gateways/cloudflare"}]},{"title":"Team Management","href":"/fundamentals/team-management"}]},{"group":"Policies","pages":[{"title":"AGT Test","href":"/policies/agt-test"},{"title":"Toxicity","href":"/policies/toxicity"},{"title":"RAG Hallucination","href":"/policies/rag-hallucination"},{"title":"Restricted Phrases","href":"/policies/restricted-phrases"},{"title":"Prompt Injection","href":"/policies/prompt-injection"},{"title":"Allowed Topics","href":"/policies/allowed-topics"},{"title":"Restricted Topics","href":"/policies/restricted-topics"},{"group":"Text-to-SQL Security","pages":[{"title":"Overview","href":"/policies/sql-security"},{"title":"Allowed Tables","href":"/policies/sql-allowed-tables"},{"title":"Load Limit","href":"/policies/sql-load-limit"},{"title":"Read-Only Access","href":"/policies/sql-read-only-access"},{"title":"Restricted Tables","href":"/policies/sql-restricted-tables"}]},{"title":"Competition Discussion","href":"/policies/competition"},{"title":"PII","href":"/policies/pii"},{"title":"Task Adherence","href":"/policies/task-adherence"},{"title":"Custom Policy","href":"/policies/custom-policy"},{"title":"Language Mismatch","href":"/policies/language-mismatch"},{"title":"Denial of Service","href":"/policies/denial-of-service"},{"title":"Cost Harvesting","href":"/policies/cost-harvesting"},{"title":"Rag Access Control","href":"/policies/rag-access-control"},{"title":"Tool Parameter Correctness","href":"/policies/tool-parameter-correctness"}]},{"group":"Observability","pages":[{"title":"Dashboard","href":"/observability/dashboard"},{"title":"Session Explorer","href":"/observability/session-explorer"},{"title":"Dataset Upload","href":"/observability/dataset-upload"}]},{"group":"REST API","pages":[{"title":"Projects API","href":"/crud-operations/projects-and-project-policies"},{"title":"Policies API","href":"/crud-operations/policy-catalog-and-custom-policies"}]},{"group":"Enterprise","pages":[{"title":"Security \u0026 Compliance","href":"/enterprise/security-and-compliance"},{"title":"Self Hosting","href":"/enterprise/self-hosting"},{"title":"Single sign-on (SSO)","href":"/enterprise/single-sign-on"},{"title":"Multi-factor Authentication (MFA)","href":"/enterprise/multi-factor-authentication"},{"title":"Directory sync","href":"/enterprise/directory-sync"}]},{"group":"Release Notes","pages":[{"title":"December 1st 2024","href":"/release-notes/rn-28-11-2024"},{"title":"October 31st 2024","href":"/release-notes/rn-31-10-2024"},{"title":"September 19th 2024","href":"/release-notes/release-notes-19-09-2024"},{"title":"September 3rd 2024","href":"/release-notes/release-notes-03-09-2024"},{"title":"August 20th 2024","href":"/release-notes/release-notes-20-08-2024"},{"title":"August 6th 2024","href":"/release-notes/release-notes-28-07-2024"},{"title":"July 17th 2024","href":"/release-notes/rn-21-07-2024"},{"title":"June 1st 2024","href":"/release-notes/rn-01-06-2024"},{"title":"May 1st 2024","href":"/release-notes/rn-01-05-2024"},{"title":"April 1st 2024","href":"/release-notes/rn-01-04-2024"},{"title":"March 1st 2024","href":"/release-notes/rn-01-03-2024"},{"title":"February 1st 2024","href":"/release-notes/rn-01-02-2024"}]}]},{"tab":"Examples","pages":[{"title":"Examples","href":"/examples/embedchain-chainlit"}]}]},"basePath":"","title":"Customization - Aporia","buildId":"dpl_5joLUXmnJgwqjrHAS4dxZrQTdxgh","deploymentId":"dpl_5joLUXmnJgwqjrHAS4dxZrQTdxgh","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-B3yYlvdS.js","lightbox-handle-r17bVUz3.js"]}