Prompts
Maxim Prompt Testing
Learn how to test prompts stored on the Maxim platform using the Maxim SDK
Test prompts that are stored and managed on the Maxim platform using the With Prompt Version ID
function. This approach allows you to evaluate prompts that have been versioned on Maxim.
Prerequisites
Before testing Maxim prompts, ensure you have:
- Created a prompt on the Maxim platform through the UI
- Created a prompt version with the configuration you want to test
- Obtained the prompt version ID from the Maxim UI
Basic Maxim Prompt Testing
Use the With Prompt Version ID
function to test a specific prompt version:
Important Notes
-
Variable Mapping: Ensure that variable names in your testing data match the variable names defined in your Maxim prompt.
-
Model Settings: The model, temperature, and other parameters are automatically inherited from the prompt version configuration.
-
Cost Tracking: Token usage and costs are automatically tracked when using Maxim prompts.
Best Practices
- Version Control: Use descriptive names for your prompt versions to make testing easier
- Consistent Data: Ensure your test data format matches your prompt’s expected input structure (basically, have the variables used in prompts match the columns in your testing data)
- Evaluation Metrics: Choose evaluators that align with your prompt’s intended purpose
- Regression Testing: Regularly test new prompt versions against established baselines
Troubleshooting
If you encounter issues:
- Check Prompt Version ID: Verify the prompt version ID is correct and accessible
- Data Structure: Confirm your data structure matches the prompt’s variable requirements
Next Steps
- Querying Prompts - Learn how to retrieve prompts for production use
- CI/CD Integration - Automate testing of your Maxim prompts
- Local Prompt Testing - Compare with custom prompt implementations