Support matrix and limitations¶
Tested versions¶
The Search API reference setup is tested with these versions. Other versions may install, but the toolkit checks the patched packages at runtime and refuses to send embeddings or vector writes through a combination it does not recognize.
| Component | Version |
|---|---|
| Drupal core | ^11.2 (tested on 11.4) |
| PHP | 8.3 |
| Search API | ^1.41 |
| Drupal AI | 1.4.11 |
| AI Search | 1.3.0-alpha5 |
| Vector database | Qdrant through ai_vdb_provider_qdrant 1.3.3 |
| Embeddings, hosted | OpenAI text-embedding-3-small through ai_provider_openai 1.2.5, openai-php/client 0.20.1 and guzzlehttp/guzzle 7.15.5 |
| Embeddings, local | Ollama through ai_provider_ollama ^1.2@RC; qwen3-embedding:0.6b is the reference model |
| Chat (optional) | Any Drupal AI chat provider, for generated summaries, reranking and evaluation judging |
| Composer Patches | ^2.0, owned by the site |
The largest tested corpus is 5,000 nodes (16,673 chunks) with OpenAI embeddings and 12 workers.
The base module alone needs only Drupal core.
Temporary patches¶
The reference setup carries one patch for each of five upstream packages,
shipped in support-assets/ with a SHA256SUMS file. Installing the base
module never copies them into a site.
| Package | Patch | What it adds |
|---|---|---|
drupal/ai 1.4.11 |
ai-current-main.patch |
Explicit provisioning, redacted provider errors, embedding several inputs per request. |
drupal/ai_provider_openai 1.2.5 |
ai_provider_openai-current-main.patch |
Guarded multi-input embedding requests with response index checks. |
drupal/ai_provider_ollama ^1.2@RC |
ai_provider_ollama-current-main.patch |
Guarded local embedding requests that record each attempt. |
drupal/ai_search 1.3.0-alpha5 |
ai_search-current-main.patch |
Final filter validation, provenance fields, complete queries for Views ordering, preflight checks, indexing receipts, tokenizer selection and bounded ingestion. |
drupal/ai_vdb_provider_qdrant 1.3.3 |
ai_vdb_provider_qdrant-current-main.patch |
Payload filtering, complete queries, vector checks, collection lifecycle, write receipts, bounded upserts and exact-ID deletes. |
Apply the patches only to clean copies of these versions. Never apply them over files that already carry an older patch stack.
A toolkit update never edits your site's patches/, patches.json or
patches.lock.json. When a release changes a patch, back up those files plus
composer.json and composer.lock, replace the changed patch and its
manifest entry, then run composer reinstall on that package so Composer
Patches applies it to a clean copy. A patch is removed only when upstream
ships the same capability and a fresh install passes.
Environment and recovery¶
Each installation names the environment that owns its RAG resources in
settings.php (drupal_rag_toolkit_resource_scope), so a copied database
never writes to the original's collections. Getting started
shows the first-time setup. Keep credentials in Key or provider settings; they are never
part of resource names, scope settings or operator screens.
Run the steps below in a maintenance window with a database backup. Run them with the target site's Drush. They change which environment owns resources; they do not delete or rename Search API configuration or Qdrant collections.
Copying a site to a new environment¶
A copied database still names the environment it came from, so it neither builds nor serves until it is taken over.
- Give the copy its own
drupal_rag_toolkit_resource_scopeinsettings.php, with a new scope UUID. Do not reuse another environment's UUID. - Make sure no build is running, then run:
drush drupal-rag-toolkit:initialize
On a copied database this takes it over for the environment in
settings.php, the same as Take over this database on RAG setup
preflight. The other environment's records are kept, and its indexes are
never used or removed here. A repeated or interrupted run is safe to
rerun. Restoring the old settings afterwards is not a rollback.
3. Build, validate and activate a new index.
When the active index's collection is lost¶
If the active index's collection or configuration is missing or was reset, mark that exact index unavailable, then build, validate and activate a new one. Read the values to record first:
drush php:eval '
$corpusUuid = \Drupal::config("drupal_rag_toolkit_search_api.rag_corpus.default")->get("uuid");
$anchor = \Drupal::service("drupal_rag_toolkit_search_api.environment")->currentAnchor();
$accepted = \Drupal::service("drupal_rag_toolkit_search_api.active_index_records")
->loadAccepted($anchor["scope_id"], "default", $corpusUuid);
if ($accepted === NULL) {
throw new \LogicException("This environment has no active index for the corpus.");
}
print json_encode(["corpus_uuid" => $corpusUuid, "accepted_record_hash" => $accepted["record_hash"], "binding_digest" => $accepted["binding"]["binding_digest"]], JSON_PRETTY_PRINT | JSON_THROW_ON_ERROR) . PHP_EOL;'
Then, with a new operation UUID and an active lifecycle administrator:
drush php:eval '
$account = \Drupal::entityTypeManager()->getStorage("user")->load(1);
if (!$account || !$account->isActive() || !$account->hasPermission("administer drupal rag lifecycle")) {
throw new \LogicException("Choose an active lifecycle administrator.");
}
$switcher = \Drupal::service("account_switcher");
$switcher->switchTo($account);
try {
print json_encode(\Drupal::service("drupal_rag_toolkit_search_api.active_index_records")->markResourceUnavailable(
"default", "CORPUS-UUID", "ACCEPTED-RECORD-HASH", "BINDING-DIGEST",
"NEW-OPERATION-UUID", "missing_local_resource",
), JSON_PRETTY_PRINT | JSON_THROW_ON_ERROR) . PHP_EOL;
}
finally {
$switcher->switchBack();
}'
The reasons are missing_local_resource, local_config_drift,
collection_absent and operator_reported_reset. The mark is permanent for
that index, even if the collection reappears.
Limitations¶
- This is an alpha for evaluation and early pilots. The Query API may still change before beta.
- Only Drupal nodes are indexed. Documents, media and external sources are not supported.
- Text in paragraphs is read one level deep: from a node's paragraphs, not from paragraphs nested inside them. Edit paragraphs through their node; a paragraph saved on its own is re-indexed at the node's next save, and until then retrieval drops the node's results as stale.
- If a visitor cannot view one of the paragraphs a result's text came from, the whole result is left out for that visitor.
- There is no multilingual retrieval policy and no HTTP API.
- Keyword (lexical) retrieval does not serve these indexes.
- Access is checked after retrieval, so when many results are hidden from a visitor, a page can show fewer results than the retrieval limit.
- Replaced and failed indexes keep their resources until an operator selects
Remove resources on the Index lifecycle page or runs
drupal-rag-toolkit:retire-historical. Uninstalling deletes the Search API side but keeps Qdrant collections; see Getting started for removing them first. - Rollback reactivates the previous index only while its ledger still verifies; otherwise build a new index.
- Generated answers are not stored. Query embeddings and rerank scores are cached for an hour.
- Changing the embedding model, dimensions or chunking requires a new index; existing vectors are never rewritten in place.
- The reference setup depends on the temporary patches above.