Overview
Portkey allows workspace owners to enforce request guardrails at the workspace level. This feature ensures that all API requests made within a workspace comply with predefined policies, enhancing security, compliance, and governance at a more granular level.How It Works
Workspace owners can define input and output guardrails in the workspace settings. These guardrails are enforced on all API requests made within the workspace, ensuring uniform policy enforcement across all users and applications in that workspace.- Input Guardrails: Define checks and constraints for incoming LLM requests within the workspace.
- Output Guardrails: Ensure LLM responses align with the defined guardrail policies.
Guardrails Docs
Learn about the different Guardrails you can set up in Portkey
Configuration
Setting Up Workspace-Level Guardrails
- Head to the Portkey dashboard and navigate to the sidebar.
- Click on your workspace and select the Edit (🖊️) option.
- In the Edit Workspace menu:
- Choose an Input Guardrail and Output Guardrail from the options (created in the workspace) .
- Save your changes.
Best Practices
- Clearly communicate guardrail requirements to all members in your workspace.
- Maintain internal documentation on your workspace guardrail policies to ensure consistency.