Skip to content

Conversation

@Christophe-Lamarche-Cossette

The Google Generative AI provider is not supported in init_embeddings in comparison to init_chat_models.

Fixes #34386 (#34386)

Changes:

  • Add google_genai as a supported provider
  • Add link to the Google documentation
  • Add the GoogleGenerativeAIEmbeddings in the factory function init_embeddings

## Changes: 
- Add google_genai as a supported provider
- Add link to the Google documentation
- Add the GoogleGenerativeAIEmbeddings in the factory function `init_embeddings`
@github-actions github-actions bot added langchain-classic feature For PRs that implement a new feature; NOT A FEATURE REQUEST labels Dec 16, 2025
@Christophe-Lamarche-Cossette
Copy link
Author

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",
Copy link
Member

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

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.

@github-actions github-actions bot added the langchain `langchain` package issues & PRs label Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature For PRs that implement a new feature; NOT A FEATURE REQUEST langchain `langchain` package issues & PRs langchain-classic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add google_genai as supported provider for embeddings factory in init_embeddings.

2 participants