Drupal RAG Toolkit 1.0.0-alpha14¶
Summary¶
Alpha14 indexes text held in paragraphs, so sites that store page content in Paragraphs can use the toolkit without copying their text into a node field. It also fixes builds with 12 or 16 workers, which failed in alpha13, indexes a node that was empty at build time once it gets text, and lets a site delete a field that only removed indexes had read.
Upgrading from alpha13¶
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
Active indexes keep serving. To index paragraph text, select it in Corpus Builder and build a new index.
Text in paragraphs¶
- Corpus Builder lists the text fields of a node's paragraphs as Field › Paragraph field, such as Content › Description, for main content and context.
- Paragraph text is read in paragraph order and is part of the source's content hash. Editing a paragraph through its node re-indexes the node, and until then retrieval drops results built from the old text.
- At retrieval, a result is served only if the visitor can view the node, its fields and every paragraph that contributed text.
- Paragraphs are read one level deep. A paragraph saved on its own is re-indexed at its node's next save.
Fixes¶
- Builds with 12 or 16 workers failed with "The retained parallel indexing handoff is malformed." They now finish. Getting started recommends 12 workers for OpenAI.
- A node that had no text when the index was built was never indexed later, even after it got text and was saved; it stayed out of results until the next full rebuild. After it is saved, maintenance now indexes it.
- Maintenance stopped for good after a catalog error. If updating the search catalog failed three times, maintenance of the active index blocked without logging the cause, and no later node save reached the index until it was rebuilt. The catalog step changes only local tables, so it is now retried on the next cron, and each failure is logged. An index blocked this way by an earlier release resumes after the upgrade.
- Deleting a field an old index read. Once an index's resources were removed, the fields it had read stayed protected from deletion for good. Removed indexes now protect nothing, so a field can be deleted after the indexes that read it are removed.