Skip to content

fix(deps): pin langchain-community<0.4.2 for ragas ChatVertexAI import#337

Merged
decko merged 1 commit into
mainfrom
fix/pin-langchain-community
May 26, 2026
Merged

fix(deps): pin langchain-community<0.4.2 for ragas ChatVertexAI import#337
decko merged 1 commit into
mainfrom
fix/pin-langchain-community

Conversation

@decko
Copy link
Copy Markdown
Owner

@decko decko commented May 26, 2026

Problem

langchain-community==0.4.2 removed chat_models/vertexai.py but ragas 0.4.3 still imports ChatVertexAI from that path at module load time. This causes ModuleNotFoundError when running raki run --judge.

Fix

Pin langchain-community>=0.4,<0.4.2 in the ragas extra until ragas updates their import.

Upstream: vibrantlabsai/ragas#2745

Test plan

  • uv tool install raki[ragas]ChatVertexAI importable
  • Local uv sync --all-extras → tests pass

🐚 Generated with Crush

langchain-community 0.4.2 removed chat_models/vertexai.py but ragas 0.4.3
still imports ChatVertexAI from that path at module load time. Pin to
<0.4.2 until ragas updates their import.

Upstream: vibrantlabsai/ragas#2745

Assisted-by: Crush:claude-opus-4-6
@decko decko merged commit 5aa347f into main May 26, 2026
4 checks passed
@decko decko deleted the fix/pin-langchain-community branch May 26, 2026 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant