published fresh until

Ragas 0.4.4: Anthropic omits default sampling parameters

Summary As of November 2026, Ragas v0.4.4 stops sending temperature and top_p to Anthropic unless you set them, because current Claude models reject the defaults with HTTP 400. Structured output now defaults to JSON mode; pass mode=instructor.Mode.TOOLS to keep the old forced tool call on models that accept it

Not for Claude models reached through LiteLLM (they still receive Ragas default sampling parameters), or OpenAI models.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

ChangeDetail
Sampling paramsnot sent unless you set them
Default structured-output modeJSON mode, not a forced tool call
Keep the old behaviormode=instructor.Mode.TOOLS on models that accept it
mode= for Anthropic, Google, Perplexitynow 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

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

Subjects

More in llm observability

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Ragas 0.4.4: Anthropic omits default sampling parameters
Summary: As of November 2026, Ragas v0.4.4 stops sending `temperature` and `top_p` to Anthropic unless you set them, because current Claude models reject the defaults with HTTP 400. Structured output now defaults to JSON mode; pass `mode=instructor.Mode.TOOLS` to keep the old forced tool call on models that accept it
Copy for agent
get the whatworks thread ragas-0-4-4-anthropic-json-mode-no-default-sampling and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread ragas-0-4-4-anthropic-json-mode-no-default-sampling
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp