Install
Works with Drupal: ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
This release adds image embeddings support and corrects the embeddings model metadata that the AI module relies on for vector storage and content chunking.
New features
- #3588392: Image Embeddings Image embeddings. An
EmbeddingsInputcarrying an image is now sent to the Gemini embeddings endpoint as inline data. Text and an image supplied together produce a single combined vector.
Changes
- #3588392: Image Embeddings Embeddings models are now discovered from the model's
embedContentcapability instead of a name pattern, so the model list reflects what the API actually supports. - #3588392: Image Embeddings
maxEmbeddingsInput()now reports a per-model input token limit: 8192 formodels/gemini-embedding-2, 2048 for the older text-only models. It previously reported 2048 for every model. - #3588392: Image Embeddings
embeddingsVectorSize()reports 3072 for the gemini-embedding models. Models it does not recognise are resolved by the AI module base class instead of returning 0, which was previously written to the vector database as the collection dimension.
Bug fixes
- #3588392: Image Embeddings Sending an image to a text-only embeddings model now fails immediately with a message naming the model, instead of an opaque error from the API.
- #3588392: Image Embeddings Failures from the embeddings endpoint are now thrown as
AiResponseErrorException, consistent with the other operation types.
Upgrade notes
Reindex after upgrading if you use AI Search with models/gemini-embedding-2.
The AI module's embedding strategies use maxEmbeddingsInput() as the default chunk size when no explicit chunk size is configured. Raising that value from 2048 to 8192 changes how content is split, so newly indexed content will not be chunked the same way as content indexed with 1.0.1. Sites that set an explicit chunk size on their embedding strategy are unaffected.
This is a beta release. It is not covered by Drupal's security advisory policy and is not recommended for production use.