Install
Works with Drupal: ^10.4 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
32.29 KB
MD5: 059fb6f67c0be285821a187043d9ef89
SHA-1: 3d4782927f04cf28b6eb703bc60d3a9640cb7ccd
SHA-256: 754954414394758f828c8fbcd67335bf39e79435c6b606c43681af5f805cf758
Download zip
46.31 KB
MD5: 21e90421afd7f5a0b174b1fb7eec1f8b
SHA-1: e15e92c429f9d210dd836c88417d1504b5d2553d
SHA-256: 3d37f173863f40f9a4fc50efc629cc561a31ed6d6dce801a9bc45b4b76572d57
Release notes
This is the first alpha release of AI Semantic Expansion. It is ready for testing in non-production environments. APIs and configuration structure may change before the stable release.
What this module does
AI Semantic Expansion enriches Drupal Search API indexes with AI-generated synonyms and likely search intent phrases, enabling semantic search without a vector database or embeddings infrastructure. When content is indexed, a virtual field (ai_semantic_synonyms) is populated with comma-separated synonyms produced by any LLM supported by the drupal/ai module (OpenAI, Claude, NVIDIA NIM, Ollama, and others).
Features in this release
- Search API processor that adds a virtual AI Semantic Synonyms fulltext field to any index.
- Asynchronous queue worker — AI calls never block content saves or index runs.
- Content-hash cache (
{ai_semantic_cache}) so nodes are only re-processed when their content or the LLM prompt changes. - Drush batch command (
drush ai-expand:batch) for pre-warming the cache on existing content at any scale. - Automatic cache invalidation when the LLM system prompt is changed in the processor configuration.
- UI button to flush the cache from the processor settings form.
- Compatible with any Search API backend — Solr, Elasticsearch, or the Database backend.
- Supports Drupal 10.4 and Drupal 11.
Requirements
- drupal/ai with at least one provider configured.
- drupal/search_api
- A configured Drupal private files directory (required by the Drush batch command).
Known limitations
- Only node entities are supported by the Drush batch command in this release.
- This is an alpha release — configuration structure and hook APIs may change before 1.0.0.