Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Cms 2.1.4 Update released for Drupal core (2.1.4)! Release: File Entity (fieldable files) 8.x-2.9 Minor update available for module file_entity (8.x-2.9). Release: Moderated Content Bulk Publish 2.0.53 Minor update available for module moderated_content_bulk_publish (2.0.53). Release: Mailchimp 2.2.9 Minor update available for module mailchimp (2.2.9). Release: Mailchimp 3.1.4 Minor update available for module mailchimp (3.1.4). Release: Seven 1.1.0-beta5 New beta version released for theme seven (1.1.0-beta5). Release: Domain 301 Redirect 2.0.7 Minor update available for module domain_301_redirect (2.0.7). Release: Moderated Content Bulk Publish 3.0.0-rc8 New release candidate for module moderated_content_bulk_publish (3.0.0-rc8). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Module Revived: Menu tree 2.1.2 Module menu_tree updated after 13 months of inactivity (2.1.2).

AI Recipe: Answers

No security coverage

Part of the AI ecosystem · 296 projects

View on drupal.org

Generic setup for the ai_answers RAG search-and-cite Q&A feature: a vector search index over all site content, a retrieval agent restricted to that index, and placeable Question/Answer/Sources blocks.

The ai_answers module is what actually answers questions: it takes a visitor's question, retrieves matching content through Search API/AI Search, and returns a cited answer with sources. This recipe exists to give it something real to search: the vector index, agent, and blocks described below.

This recipe installs and wires up Search API, AI Search, AI Agents, and AI Answers: it clones every node type's default view display into a dedicated view mode so indexing can embed the same rendered HTML a visitor would see (no need to know any site's field names), creates a Postgres/pgvector-backed Search API server and chunked-tracker index, creates an AI Agent whose RAG tool is forced to that index, enables AI Answers for it, and places the three AI Answers blocks with no visibility restriction.

It's deliberately unopinionated about what gets indexed, what the agent sounds like, and where the Q&A widget appears - those are exactly the things a real site needs to decide. Extend it with a recipes: [ai_recipe_answers] dependency and override the same config names via setProperties/simpleConfigUpdate actions to tailor the index's field mapping, the agent's instructions, and the blocks' placement/copy.

Requires:

  • A default embeddings provider already configured (Configuration > AI > AI settings)
  • A reachable Postgres instance with the vector extension (see ai_recipe_vdb_provider_postgres, which this recipe depends on)
  • The ai_search RagTool patch (issue #3584031) - without it, AI Answers silently gets zero retrieval results on every question even though search itself works

FYI: if the content you want indexed doesn't already live in Drupal (pages from other websites, for example), crwlr crawls external sites into structured Drupal content through a configurable admin workflow (CSS/XPath field mapping, robots.txt compliance, batch processing). Content it creates can then be indexed by this recipe like anything else.

See the project's README for full apply instructions, known limitations, and testing steps.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Sep 2026
Latest release
2 hours ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.x-dev Dev Sep 2, 2026