When working with prompts in Promptitude, it’s essential to ensure that everything is functioning as expected. One of the best ways to do this is by using the Preview Prompt feature.
This allows you to see how your prompt is being processed behind the scenes:
Check Variable Inputs: Ensure that your variables are replaced with the correct values.
Review Context: Confirm that the relevant context is being pulled from your content storage.
Debugging: Identify any issues with your prompt before you generate results.
👌🏻 How to Access the Preview Prompt
Finding the Preview Prompt feature is simple! Just follow these steps:
Locate the Generate Button in the "Edit" tab for a prompt.
Next to the Generate button, you’ll see an arrow. Click on it.
From the dropdown menu, choose the Preview Prompt option.
This will open a popup window.
📋 Components
Once you have the popup open, you’ll see several tabs that provide valuable information:
Preview Tab
Raw Prompt: This tab displays the raw prompt that the AI will receive. You can see how your variables have been replaced with their actual values. Check if the context you intended to add is present.
Content Tab
Chunk Details: Here, you can view the specific chunks of content that are linked to your prompt. This helps you understand what information is being pulled in.
Each chunk will have a relevance percentage, indicating how closely it relates to your prompt.
Web Tab
Scraped Website Details: If you’re using web-sourced context, this tab will show you the details of the websites that were scraped for information.
📌 Tips for Effective Prompt Verification
Check Word Count: In the metadata, look for the approximate number of words in your prompt. This helps ensure it aligns with the input context windows of the selected model.
Adjust as Needed: If you notice any discrepancies in the preview, go back and adjust your prompt or context inputs accordingly.
Using the Preview Prompt is a straightforward way to ensure that your prompts are well parsed and functioning as intended. This not only saves you time but also enhances the quality of the results you generate.
Happy prompting!