From 9ca4e3498c13ec42ed8d90b36e048865d5fdca3d Mon Sep 17 00:00:00 2001 From: Solaris-star <820622658@qq.com> Date: Tue, 21 Jul 2026 11:13:00 +0800 Subject: [PATCH] docs: note openai dep for DeclineLLMEval in LLM quickstart DeclineLLMEval defaults to provider=\"openai\". A fresh environment that only runs `pip install evidently` then hits ImportError when following the quickstart. Document `pip install evidently openai` (lightweight) instead of requiring the heavier evidently[llm] extra. Fixes #1898 Signed-off-by: Solaris-star <820622658@qq.com> --- quickstart_llm.mdx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/quickstart_llm.mdx b/quickstart_llm.mdx index 9a03bec..87e1357 100644 --- a/quickstart_llm.mdx +++ b/quickstart_llm.mdx @@ -18,12 +18,19 @@ Let’s dive in. ## 1. Set up your environment -Install the Evidently Python library: +Install the Evidently Python library. The OpenAI-backed LLM judges in this +quickstart (for example `DeclineLLMEval`, which defaults to `provider="openai"`) +also need the `openai` package. Installing `openai` alone is enough for these +examples — you do not need the heavier `evidently[llm]` extra (which pulls +`transformers[torch]` and similar deps). ```python -!pip install evidently +!pip install evidently openai ``` +If you only need deterministic descriptors (`Sentiment`, `TextLength`, +`IncludesWords`, …), `pip install evidently` is sufficient. + Components to run the evals: ```python