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
| Item | Value |
|---|---|
| Symptom | import ragas raises ModuleNotFoundError at start-up |
| Cause | langchain-community 0.4.x removed the legacy VertexAI integrations |
| Failing import | from langchain_community.chat_models.vertexai import ChatVertexAI in ragas/llms/base.py |
| Fix | VertexAI 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
- Ragas v0.4.4 release notes, Ragas maintainers, 2026-11-14: "Those imports are now optional."
- PR 2956: make VertexAI imports optional for langchain-community >= 0.4, sanyaden, merged 2026-11-13: "Make the VertexAI imports optional"
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