In the world of LLMs and GPTs and AIs, a Prompt is a text instruction, or set of instructions. For example:
Besides the usual way of prompting a model with a question like those above, it’s also possible to store instructions that will be applied to the prompt performing the request. This can also be understood as predefined instructions for an app.
Let’s understand what this means:
M
via our app A
, we ask for something specific: Hello World!
A
should do a certain transformation to the prompt: Translate to German: ...
M
receiving, through the app A
, the text: Translate to German: Hello World!
Hallo, Welt!
Create a Prompt
To create a prompt, navigate to Prompts and click on “Create Prompt”:
Customize the prompt
Enter the desired prompt, without forgetting the placeholder {{prompt}}
. Then, enter the Title/Description and click Save
Create an App and go to Settings
Create an App (in our case, we call it translate
) and go to the App Settings page
Configure App to use the Prompt
To connect this App to the Prompt we just created, we scroll to the bottom of the Policies. In particular, to the Prompt ID
field:
We select a prompt by clicking on it, and confirm selection
Finally, we save the App configuration changes.
Perform a request
Your app is now ready to receive requests, so let’s have a look:
Indeed, without the need to send any instructions, we directly receive an answer: A translated text
In the world of LLMs and GPTs and AIs, a Prompt is a text instruction, or set of instructions. For example:
Besides the usual way of prompting a model with a question like those above, it’s also possible to store instructions that will be applied to the prompt performing the request. This can also be understood as predefined instructions for an app.
Let’s understand what this means:
M
via our app A
, we ask for something specific: Hello World!
A
should do a certain transformation to the prompt: Translate to German: ...
M
receiving, through the app A
, the text: Translate to German: Hello World!
Hallo, Welt!
Create a Prompt
To create a prompt, navigate to Prompts and click on “Create Prompt”:
Customize the prompt
Enter the desired prompt, without forgetting the placeholder {{prompt}}
. Then, enter the Title/Description and click Save
Create an App and go to Settings
Create an App (in our case, we call it translate
) and go to the App Settings page
Configure App to use the Prompt
To connect this App to the Prompt we just created, we scroll to the bottom of the Policies. In particular, to the Prompt ID
field:
We select a prompt by clicking on it, and confirm selection
Finally, we save the App configuration changes.
Perform a request
Your app is now ready to receive requests, so let’s have a look:
Indeed, without the need to send any instructions, we directly receive an answer: A translated text