You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using VertexAISearchRetriever without the beta=True flag (default is False obviously), the following warning appears:
langchain_google_community/vertex_ai_search.py:364: UserWarning: Beta features are configured but beta=False. The following beta features will be ignored:['custom_embedding_ratio']
Possible reason
The beta version validation only checks for None equality
langchain_google_community/vertex_ai_search.py:363: if not self.beta and any(value is not None for value in beta_features.values()):
Description
When using
VertexAISearchRetriever
without thebeta=True
flag (default isFalse
obviously), the following warning appears:Possible reason
The beta version validation only checks for
None
equalitybut the
custom_embedding_ratio
defaults to0.0
Environment
langchain-google-community==2.0.7
langchain-google-vertexai==2.0.23
Unacceptable workaround
Set the
custom_embedding_ratio
toNone
when usingVertexAISearchRetriever
The text was updated successfully, but these errors were encountered: