Installation
EvalKit exports multiple NPM packages.We’ll concentrate on the evaluations framework package, which is available at:
OpenAI Configuration
Currently, EvalKit is using OpenAI API in order to perform evaluations.Therefore, you’ll need to set up an OpenAI account and get an API key. Or configure it otherwise
Standard OpenAI
Simply set your OpenAI API key in your environment:Custom OpenAI/Azure OpenAI
For custom OpenAI endpoints (like Azure OpenAI), use the config:apiKeybaseURLdeploymentName(for Azure OpenAI)
Configuration File
You can also configure EvalKit using anevalkit.config.ts (or .js) file in your project root:
OpenAI Settings
Same as the programmatic configuration above.Reporting Settings
outputFormats: Array of report formats to generate[]: Console output only (default)['json']: JSON reports['html']: HTML reports['json', 'html']: Both formats
outputDir: Directory where reports will be saved (default: ’./eval-reports’)