Drupal RAG Toolkit 1.0.0-alpha12¶
Summary¶
Alpha12 adds claim-by-claim citations that link to their sources and makes the toolkit easier to run across environments. A copied database is taken over with the deploy steps you already run. Replaced indexes can be removed from a deploy script, and uninstalling leaves nothing behind. These changes were rehearsed on an example site with development and test environments that share one Qdrant cluster.
Upgrading from alpha11¶
No reinstall and no database updates: update the package and clear caches.
composer require 'drupal/drupal_rag_toolkit:^1.0@alpha'
drush updb -y
drush cr
The profile gains three citation settings. Until you save Profile settings, they use the defaults listed below. Save the form and export configuration to deploy different values.
Citations¶
- Answers cite each claim with its own marker, placed before the sentence's punctuation. A marker links to the page it cites.
- Profile settings → Citations controls how they appear:
- Cite each claim in the answer, on by default.
- Citation links: open in a new tab (default), open in the same tab, or no links.
- Marker style: numbers (default) or letters.
- List the sources below the answer, on by default.
- Markers piled at the end of a multi-sentence answer are removed, because
they don't say which claim each source supports. Every source stays
listed. Adjacent markers such as
[1] [2]are joined as[1][2]. - In the Query API, marker n refers to the n-th citation.
Deploying across environments¶
- Copied databases.
drush drupal-rag-toolkit:initializenow takes over a database copied from another environment, such as a refresh from production to staging. Before, it failed with "The configured local resource scope does not match its initialized anchor". RAG setup preflight offers the same action as Take over this database. The other environment's records are kept, and its indexes are never used or removed. This replaces the manual rotation procedure in the support matrix. - Removing replaced indexes. The new
drush drupal-rag-toolkit:retire-historicalcommand removes this environment's failed builds and the indexes that are neither active nor kept for rollback, together with their Qdrant collections. Run it after activation in a deploy script. - Configuration import after removing an index. The import no longer requires the configuration of an index this environment already removed.
Uninstalling¶
- Uninstalling deletes the Search API indexes and servers that RAG indexes created, and every record the module stored, so a reinstall starts fresh.
- Qdrant collections are kept, because deleting vectors cannot be undone.
The warning lists only this environment's collections as safe to delete.
Collections built by the environment a database was copied from are listed
separately, to be left in place. To delete collections with the module,
run
drupal-rag-toolkit:reindex-deactivate defaultanddrupal-rag-toolkit:retire-historicalbefore uninstalling. Getting started has the full procedure.