Installation¶
Requirements¶
- Python 3.9 or higher
- At least one LLM provider API key (OpenAI, Anthropic, Google, etc.)
Install from PyPI¶
Optional Extras¶
The default install is intentionally slim (~50 MB). Feature-specific dependencies are in extras, pick only what you need:
| Extra | When to use |
|---|---|
lite | Tracing only — pydantic + aiohttp, no evaluation code |
datagen | DatasetGenerator / DocumentLoader (langchain + pdf/docx/xlsx/ocr parsers) |
local-models | Local inference backends (MLX, transformers) |
pii | PIILeakageMetric with regex/NER backends |
vectors | SemanticSimilarityMetric, ReferenceMatchMetric (adds a local embeddings stack) |
deterministic | RegexMatchMetric, JsonSchemaMetric, LanguageDetectionMetric |
langchain | Only langchain-core — for integrating with an existing LangChain app |
full | Everything above (~3 GB) |
# Examples
pip install 'eval-ai-library[datagen]'
pip install 'eval-ai-library[datagen,pii,vectors]'
pip install 'eval-ai-library[full]'
Environment Setup¶
Set the API key(s) for the LLM provider(s) you plan to use:
Verify Installation¶
Optional: spaCy Model¶
Some metrics use spaCy for NLP processing. Download the English model:
Optional: Tesseract OCR¶
For OCR capabilities in data generation (extracting text from images):
Download from Tesseract GitHub and add to PATH.
What's Next?¶
- Quick Start — run your first evaluation in 5 minutes
- Configuration — configure providers and metrics