What you’ll need
To run our evaluators using any of our available methods, you must have:- Text you want to evaluate
- Grade level of the intended audience
- API keys required by the evaluators you want to use
Required API keys
By default, each evaluator uses a provider and model that we have tested for reliability for that task. As a result, different evaluators require different API keys.| Evaluator | Required API key(s) |
|---|---|
| Grade Level Appropriateness ↗ | |
| Subject Matter Knowledge ↗ | |
| Vocabulary ↗ | Google and OpenAI |
| Sentence Structure ↗ | OpenAI |
| Conventionality ↗ | |
| Purpose ↗ |
Running evaluators
| How to run evaluators | When to use |
|---|---|
| Evaluators Playground | For a quick demo of how evaluators work |
| SDK | To integrate into your TypeScript or Python project |
| Python notebooks | For quick prototyping |
Evaluators Playground
The Evaluators Playground on the Learning Commons Platform ↗ is the easiest way to see our evaluators in action. It evaluates text using all our literacy evaluators, and provides an output to help you:- Understand the pedagogical attributes of your text
- Assess the performance of different prompts
- Compare models for any AI-generated content in your products
SDK
Run evaluators from your project by installing the SDK of your choice.Contact us ↗ to request additional SDK
language support. You can also sign up on the Learning Commons
Platform ↗ for updates on availability.
Python notebooks
The Python interpreter powers our evaluators. All downloadable
examples ↗
and tutorials are provided as Python snippets.
- Mac/Linux
- Windows
Install Python 3.10 or newer. To verify your version of Python:
STEP 1: Create a virtual environment
Creating an isolated environment prevents conflicts between Python packages used in this project and others on your system:Remember to activate the virtual environment for each new shell session.
STEP 2: Install dependencies
Install all required packages listed in
requirements.txt ↗:STEP 4: Run an evaluator
Start a Jupyter Notebook in your web browser (usually at Create a new notebook by clicking the Notebook: Python 3 (ipykernel) tile in the Jupyter Lab launcher. Alternatively, select File > New > Notebook > Python 3 (ipykernel) in the menu.Run an evaluator by copying the code from our
examples ↗ into the cells of your notebook.
http://localhost:8888):