-
Notifications
You must be signed in to change notification settings - Fork 20.1k
feat(langchain): Add support to google_genai provider in init_embeddings
#34388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
## Changes: - Add google_genai as a supported provider - Add link to the Google documentation - Add the GoogleGenerativeAIEmbeddings in the factory function `init_embeddings`
Remove additional whitespace
|
Sorry, I found out that my devcontainer didn't mount properly and create issues with me correcting the errors. |
| "azure_openai": "langchain_openai", | ||
| "bedrock": "langchain_aws", | ||
| "cohere": "langchain_cohere", | ||
| "google_genai": "langchain_google_genai", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also expect this to be applied to libs/langchain_v1/langchain/embeddings/base.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. The changes are applied to the langchain_v1 lib as well.
The Google Generative AI provider is not supported in
init_embeddingsin comparison toinit_chat_models.Fixes #34386 (#34386)
Changes:
init_embeddings