AI Interpolator PromptPerfect
The PromptPerfect plugin is a helper plugin that works like a middle layer between your editors, end-users or LLM's attempt to generate a good prompt for use in generative AI models. This makes anyone into a so called prompt engineer.
Even if the whole prompt engineer feels a little bit overhyped, prompting matters and not everyone has the possibility to do try and error.
If you for instance have editors that knows very little about prompting or you even open up for the end-user to generate content, putting PromptPerfect in between makes sense.
If you create an account, you get free test credits, so its worth to test it just to see for yourself.
It works with most all plugins available in AI Interpolator and from my testing are great at improving short prompts or prompting generated by GPT-4.
Module link: https://www.drupal.org/project/ai_interpolator_promptperfect
Installation
- Use Composer to get the module: "composer require 'drupal/ai_interpolator_promptperfect"
- Install the AI Interpolator PromptPerfect like any other module.
- Login to your PromptPerfect account and get an API token.
- Visit /admin/config/promptperfect/settings and paste the API token.
How to use
In this use case we will generate a better image prompt for DALL-E 3.
- Create a new node called "Article"
- On the "Article" you generate a Text (plain, long) field that you name "Image Prompt".
- On the "Article" you generate another Text (plain, long) field that you name "Image Prompt Improved"
- If you scroll down on the settings page you should now see a check box titled "Enable AI Interpolator". Check that one.
- In the "Choose AI Interpolato Rule" field select "PromptPerfect Prompt".
- In the "Interpolator Base Field" you choose "Image Prompt" as the context to improve.
- In the "Target Model" you choose DALL-E 3. Its important that you take the correct model for your task.
- In "Iterations" you can set 10.
- Save the settings.
- Now try generating an Article and fill out the image prompt.
- After saving the image prompt improved should have been filled out automatically.
Example ideas of workflows that could be done with the PromptPerfect plugin.
- You are uncertain on how to do text generation prompts using GPT-4.
- You want to generate an header image from an article text, but the initial prompt to GPT-4 to generate the image prompt is usually not very expressive.
- You want to open up prompting on user generated content, that might be very sparse. You use this to improve it and make sure its following content policies.
You can also find videos of OpenAI Workflows under workflows-of-ai.com
Available Rules
| Rule Name | Description | Field Types |
|---|---|---|
| PromptPerfect Prompt | Improve a text- or image generation prompt using the prompt perfect service. | Text (plain, long) Text (formatted, long) |
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion
