Skip to main content
To create a Prompt Snippet, head to the orq.ai Studio:
  • Choose a Project and Folder and select the + button.
  • Choose Prompt Snippet
You will then be asked to fill in a key that will be used to reference your snippet. You can then configure your snippet, defining its language, and using tags to classify its use case.

Using Prompt Snippets in Prompts

To use a Prompt Snippet in a prompt, reference it with the {{snippet:key}} syntax where key is the key of your snippet. This allows you to inject reusable templates into prompts for modular LLM configuration and DRY prompt engineering. Any updates you make to the snippet will automatically be reflected in all prompts that use it.
Prompt Snippets are useful for maintaining consistent instructions across multiple prompts and reducing duplication in your prompt templates.