Installation
Package Manager
Install@deepagents/evals using your preferred package manager:
Version
The current version is0.23.0. Check the GitHub repository for the latest releases.
Dependencies
The package has two main dependencies:- autoevals (v0.0.132) — Powers LLM-based scorers like
factuality - chalk (v5.6.0) — Terminal colors for console reporter
@deepagents/evals to your project.
Subpath Exports
The package uses Node.js subpath exports for tree-shakeable imports. You can import from specific modules:TypeScript Support
Full TypeScript support is included. All types are exported from their respective modules:Environment Setup
Node.js Version
The package requires Node.js with support for:- Native
node:sqlitemodule (Node.js 22.5.0+) - ECMAScript modules (ESM)
AsyncIterableand generator functions
SQLite Storage
By default, evaluation runs are stored in.evals/store.db in your project root. The directory is created automatically:
.evals/ to your .gitignore if you don’t want to commit evaluation results:
.gitignore
LLM API Keys
If you use LLM-based scorers likefactuality, you’ll need an OpenAI API key:
.env
autoevals library (used by factuality) reads from environment variables automatically.
Verification
Verify your installation by running a simple evaluation:Next Steps
Quickstart
Run your first real evaluation
Datasets
Learn about dataset loading