fix: correct class name in deprecation warning and update vertexai im…
What this fixes
Bug 1: Incorrect class name in deprecation warning
The deprecation warning for LLMContextPrecisionWithoutReference told users to run:
from ragas.metrics.collections import LLMContextPrecisionWithoutReference
But that class doesn't exist, causing an ImportError.
Fixed the warning to show the correct name: from ragas.metrics.collections import ContextPrecisionWithoutReference
Bug 2: Broken vertexai import
langchain_community.chat_models.vertexai no longer exists in newer versions.
Updated to use langchain_google_vertexai directly.
Environment
- ragas: 0.4.3
- langchain-community: 0.4.2
- langchain-google-vertexai: 3.2.3
- langchain-core: 1.4.0
- langchain: 1.3.1
Tested
Verified the corrected warning shows the right class name and the import works successfully.
Related Issues
Fixes #2741 Fixes #2748
✅ No documentation update needed — This PR contains only internal fixes: correcting a renamed class name in a deprecation warning message and updating the vertexai import path. No user-facing API changes or new features require documentation updates.