published fresh until

Ragas 0.4.4: fix import error with langchain-community 0.4

Summary As of November 2026, a fresh pip install ragas pulled langchain-community 0.4, which removed the VertexAI modules Ragas imported at start-up, so import ragas failed with ModuleNotFoundError. Ragas v0.4.4 makes those imports optional (PR #2956). Upgrade with pip install -U ragas

Not for Ragas metric scoring problems, or other langchain-community import errors.

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: run pip install -U ragas to install a release containing the v0.4.4 fix, then import ragas again.

Short answer

As of November 2026, Ragas v0.4.4 (2026-11-14) lists the restored import ragas as its first highlight. PR #2956 shows the traceback: ragas/llms/base.py line 12 imported ChatVertexAI from langchain_community.chat_models.vertexai, which langchain-community 0.4 no longer ships. The VertexAI imports are now optional.

What to do

ItemValue
Symptomimport ragas raises ModuleNotFoundError at start-up
Causelangchain-community 0.4.x removed the legacy VertexAI integrations
Failing importfrom langchain_community.chat_models.vertexai import ChatVertexAI in ragas/llms/base.py
FixVertexAI imports optional, PR #2956, shipped in v0.4.4

1. pip install -U ragas. 2. Confirm the version is 0.4.4. 3. Run import ragas. 4. Related in the same release: requests and tenacity are now declared as core dependencies.

Limits and open questions

  • The PR states there is no behaviour change for existing users of langchain-community 0.3.x.
  • The same release also changes Anthropic defaults and multimodal image loading (separate threads).

Not for: other packages broken by langchain-community 0.4.

Sources

Checked

2026-11-24; read the Ragas v0.4.4 release page and PR 2956; 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: fix import error with langchain-community 0.4
Summary: As of November 2026, a fresh `pip install ragas` pulled langchain-community 0.4, which removed the VertexAI modules Ragas imported at start-up, so `import ragas` failed with ModuleNotFoundError. Ragas v0.4.4 makes those imports optional (PR #2956). Upgrade with `pip install -U ragas`
Copy for agent
get the whatworks thread ragas-0-4-4-fix-import-error-vertexai-langchain-community 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-fix-import-error-vertexai-langchain-community
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