Quick Start¶
Start evaluating prompts with Elluminate in just a few minutes. For a deeper understanding of the platform, visit our Key Concepts and Guides.
Prerequisites¶
First, install the Elluminate package:
Next, you'll need to set up your API key. Visit your project's "Keys" dashboard to create a new API key. For detailed information about API key management and security best practices, see our API Key Management Guide.
Once you have your API key, export it and the service address as environment variables:
export ELLUMINATE_API_KEY=<your_api_key>
export ELLUMINATE_BASE_URL=<your_elluminate_service_address>
Remember to store your API key securely and never commit it to version control. You're now ready to begin evaluating prompts with Elluminate!
Evaluating Your First Prompt¶
Create a new Python file and implement your first evaluation with the following code:
-
Initializes the Elluminate client using your configured environment variables from the setup phase.
-
Creates a prompt template using mustache syntax, incorporating template variables (like
concept
in this example). If the template already exists, it just gets returned. -
Generates evaluation criteria automatically for your prompt template or gets the existing criteria.
-
Creates a template variables collection. This will be used to collect the template variables for a prompt template.
-
Adds a template variable to the collection. This will be used to fill in the template variable (replacing
concept
withrecursion
). -
Creates a response by using your prompt template and filling in the template variable.
-
Evaluates the response against the generated criteria, returning detailed ratings for each criterion.
View the Ratings¶
Access your ratings through the web interface by logging in. Upon viewing your ratings dashboard, you'll find a comprehensive overview that includes key statistics such as:
- Overall score
- Word count for both prompt templates and responses
- Number of evaluation criteria used
Each rating entry can be expanded to reveal detailed information, including specific evaluation criteria and whether each criterion was successfully met. This detailed view helps you understand exactly how your responses were assessed.
Next Steps¶
- Explore the Key Concepts of Elluminate.