Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

AI Recipe: Answers

No security coverage

Part of the AI ecosystem · 343 projects

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.

Ask your assistant about AI Recipe: Answers

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
2
Tracked since
Sep 2026
Latest release
3 weeks ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Core PHP Release date
1.0.0-beta3 Pre-release Sep 23, 2026
1.0.x-dev Dev Sep 2, 2026