Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Mailchimp 3.1.5 Minor update available for module mailchimp (3.1.5). Release: Commerce Shipping 3.0.5 Minor update available for module commerce_shipping (3.0.5). Release: GoogleTag Manager 2.0.1 Minor update available for module gtm (2.0.1). Usage Milestone: Easy Breadcrumb Module easy_breadcrumb crossed 100,000 active installs. Release: MCP Sentinel 2.17.0 Minor update available for module mcp_sentinel (2.17.0). Release: Commerce ML Exchange 2.0.1 Minor update available for module cmlexchange (2.0.1). Release: Commerce ML Exchange 2.0.0 Major update available for module cmlexchange (2.0.0). Release: SynImport 2.0.0 Major update available for module synimport (2.0.0). Release: Contact ajax 3.0.0 Major update available for module contact_ajax (3.0.0). Module Revived: Contextual Filter from Referer 1.0.2 Module contextual_filter_referer updated after 22 months of inactivity (1.0.2).

AI Recipe: Answers

No security coverage

Part of the AI ecosystem · 302 projects

View on drupal.org

This project provides a searchable Q&A feature powered by AI, allowing users to ask questions and receive cited answers based on your website's content. It sets up a system to index all site content, retrieve relevant information, and display it to users in a question and answer format.

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
1 week ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

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