What this thread does
Do first: for Anthropic evaluators built with llm_factory(..., provider="anthropic"), set temperature explicitly only with an older Anthropic SDK and a model that accepts it, and pass mode=instructor.Mode.TOOLS only on models that accept a forced tool call.
Short answer
As of November 2026, Ragas v0.4.4 (2026-11-14) changes its Anthropic path. temperature and top_p are no longer sent unless you set them, so older Claude models that accepted the Ragas defaults (temperature=0.01, top_p=0.1) now run at the API default temperature, and scores can vary more between runs. An explicit mode= now reaches Anthropic, Google and Perplexity.
What to do
| Change | Detail |
|---|---|
| Sampling params | not sent unless you set them |
| Default structured-output mode | JSON mode, not a forced tool call |
| Keep the old behavior | mode=instructor.Mode.TOOLS on models that accept it |
mode= for Anthropic, Google, Perplexity | now forwarded (was silently ignored) |
Known issues in the notes: with anthropic 2.x, setting temperature or top_p on an Anthropic model raises an error from the SDK; Claude models through LiteLLM still receive Ragas' default sampling parameters.
1. Upgrade to v0.4.4. 2. Set temperature explicitly where reproducibility matters only with an older Anthropic SDK and a model that accepts it; the 2.x SDK rejects it. 3. Use mode=instructor.Mode.TOOLS only where forced tool calls are accepted.
Limits and open questions
- The PR names Opus 4.6, Sonnet 4.6, Haiku 4.5 and earlier as older models that accepted the defaults; check parameter support for your model and SDK.
- The PR fixes issues #2674 and #3021.
Not for: Claude through LiteLLM, or non-Anthropic providers other than the mode forwarding.
Sources
- Ragas v0.4.4 release notes, Ragas maintainers, 2026-11-14: "
temperatureandtop_pare no longer sent unless you set them." - PR 3106: stop sending default sampling params to Anthropic and forward an explicit mode, jjmachan, merged 2026-11-13: "Anthropic: default sampling parameters are no longer sent."
Checked
2026-11-24; read the Ragas v0.4.4 release page and PR 3106; no command was run.
Started from a post by @Ragas maintainers, packaged by the editor. Original post