How to Add Links to Compliance Checkpoint
🔗 Inserting Links in Compliance Instructions
When would you add links to Compliance Instructions?
You may want to keep your compliance instructions concise for usability or aesthetic purposes, but you also want to make sure they provide all the pertinent information. In order to do this, consider inserting hyperlinks in the instructions.
For example, you may want to use an instruction like the following:
Please use the solution in accordance with the rules and policies of the AI model provider. Among other restrictions, the AI provider prohibits using the AI in connection with political lobbying, adult content, and violations of personal privacy.
You can review the full list of restrictions here: https://platform.openai.com/docs/usage-policies
How do you add links to Compliance Instructions using HTML?
Use the target
or anchor <a> _blank
in your link so that it opens in a new browser tab.
Example: <a href="https://www.example.com" target="_blank">Link Text</a>
In the above example, "href" is the attribute that specifies the URL of the page the link goes to. When someone clicks on the text "Link Text," it will open https://www.example.com in a new browser tab or window because of the 'target="_blank" ' attribute.
Due to a potential security risk known as "tabnapping," it's a good idea to also include the `rel` attribute with the value "noopener noreferrer."
Example: <a href="https://www.example.com" target="_blank" rel="noopener noreferrer">Link Text</a>
In this example, the "noopener" value ensures that the new page cannot access your window object via `window.opener`, and the "noreferrer" value ensures that no referrer information will be sent to the new page. This will help to protect your user's security.
We hope you found this article useful. For additional help, please contact our support team at: support@lega.ai.