Install

Works with Drupal: ^10.4 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 250.54 KB
MD5: 9238c30fe387982a30a9dd69788a8615
SHA-1: fc7de3db0e48cb270531d5f01554f0e51c47530e
SHA-256: 35f5dc769c0106af390d7129353c9d8b3ded2f4096affb61d36a5ce03797e3c2
Download zip 301.05 KB
MD5: fb472053c35bd1b339f3ff495338eb2b
SHA-1: 36aa21935139a75b4110e4ff593e32c37a137719
SHA-256: 712cce1c80b8f392b76b0452f236b8b91880d4dcf6b8996258b93f6839372cae

Release notes

Commits

Considerations for those extending the module

  • SearchApiAiSearchBackend: the $entityTypeManager property and its injection are gone. Subclasses that use $this->entityTypeManager must inject it themselves.
  • Access checks: private checkEntityAccess() is now checkItemAccess(). It uses the datasource's getItemAccessResult() rather than $entity->access('view'). Non-entity datasources work now, and custom datasource access logic is respected.
  • EmbeddingStrategyPluginBase: the constructor now takes EntityTypeManagerInterface instead of EntityTypeManager. Update subclass constructor signatures to match.
  • Chunk output from EmbeddingBase::prepareChunks(): with both contextual and main content, it now returns M chunks (one contextual prefix per main chunk) instead of M×C. Contextual content that doesn't fit the first contextual chunk is dropped. It throws \LogicException if the title leaves no room for main content.
  • Titles: prepareChunkText() no longer uppercases them. Embeddings change, but little impact, not necessary to reindex.
  • BoostByAiSearchBase: parent conditions are copied with their nested AND/OR groups intact instead of being flattened. The AI query now gets an added condition group rather than top-level conditions.
  • RagTool: $this->results now holds structured data (entity_type, entity_id, langcode, score, content), also available through the structured output. There's also a new parseDrupalEntityId() helper.
  • earchKeysHelper::flatten($keys, $include_negated): flattens nested Search API keys. Negated terms are now left out of the embedding prompt.
  • Tracker: chunk counting now uses the backend's configured chat_model tokenizer instead of the hardcoded gpt-3.5.
Created by: scott_euser
Created on: 23 Sep 2026 at 16:02 UTC
Last updated: 23 Sep 2026 at 16:07 UTC
Bug fixes
New features

Other releases