Creating and managing prompts
Adding a New Prompt
-
Open the Prompt studio project. At the bottom of the Document Parser section, click on the "+ Prompt" button.
-
After clicking the "+ Prompt" button, you can enter a new prompt in the text field that appears. Each prompt should have a key and the Question.
- The example shown in the screenshot has prompts like:
- "account_holder_name" is the
key
(followed by a question "What is the name of the account holder?") - "balance" is the
key
(followed by a question "What is the new available balance?")
- "account_holder_name" is the
- The example shown in the screenshot has prompts like:
info
The Key
should follow JSON standards: only lowercase characters, numbers, and underscores are allowed.
- Run the prompt to get the results.
Creating Effective Prompts
-
Enter a descriptive prompt key: First, enter a descriptive key for your prompt (e.g., "account_holder_name").
-
Add a descriptive question: Below the key, add a clear question that explains what information you're trying to extract (e.g., "What is the name of the account holder?").
Working with Prompt Results
- The system will process your prompt using the configured LLM (in the example, it shows "gpt-4o").
- Results appear below each prompt (e.g., "JOSEPH PAULSON" for the account holder name).
- You can see performance metrics like token usage, processing time, and cost.
- Prompts can be enabled/disabled using the toggle button labeled "Enabled".