Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Workflow Modeler 1.0.9 Minor update available for module modeler (1.0.9). Release: Vite 1.5.6 Minor update available for module vite (1.5.6). Release: Mautic Audiences 1.1.0 Minor update available for module mautic_audiences (1.1.0). Release: Freja eID for Drupal 1.0.2 Minor update available for module freja_eid (1.0.2). Release: FileGate 1.10.1 Minor update available for module file_gate (1.10.1). Release: MCP Sentinel 2.23.0 Minor update available for module mcp_sentinel (2.23.0). Release: Synapse helper module 3.0.9 Minor update available for module synhelper (3.0.9). Release: Synapse helper module 3.0.8 Minor update available for module synhelper (3.0.8). Module Revived: Decorative Images 1.3.6 Module decorative_images updated after 7 months of inactivity (1.3.6). Security Coverage: Pixie Dark Theme pixie_dark now has official Drupal security advisory coverage.

AI RAG Service

No security coverage Drupal 10–11

Part of the AI ecosystem · 308 projects

View on drupal.org

This module provides a headless, authenticated, and rate-limited HTTP API for Retrieval-Augmented Generation, similar to how JSON:API serves content. It exposes clean JSON endpoints for grounded question-answering, multi-turn chat, and semantic search, complete with citations, streaming, and cost controls.

The AI RAG Service turns the Drupal AI module into a headless, authenticated, rate-limited HTTP API for Retrieval-Augmented Generation. What JSON:API is to content, this is to AI: it wraps and serves the AI engine as clean JSON endpoints for grounded Q&A, multi-turn chat and semantic search — with citations, streaming and cost controls built in.

Features

  • Three ready-made endpoints: grounded Q&A, multi-turn chat, and LLM-free semantic search, plus a status/diagnostics endpoint.
  • Real token-by-token streaming over Server-Sent Events, with citations and token usage on the final event.
  • Grounded answers with source documents, URLs, similarity scores and snippets on every response.
  • Swappable RAG backend (in-process via the AI module, or proxy to an external service) — backends are plugins.
  • No-code endpoint builder in the admin UI, plus attribute-plugin resources for code-defined endpoints, each with auto-generated per-HTTP-method permissions.
  • Security first: Basic Auth/cookie auth, per-method permissions, CORS allow-list, prompt-injection hardening, and a relevance-score floor.
  • Cost control: per-consumer rate limiting and token budgets with reliable metering, plus answer caching.
  • Per-consumer isolation, opt-in audit logging, and an optional submodule for throttled failure/flagged-question email alerts.

Post-Installation

Configure at least one chat-capable AI provider via the AI module, then visit Configuration → AI → RAG Service to choose your provider/model, retrieval index and limits. Grant the "use ai rag service" permission to roles that may call the API. See the README below for full setup, including optional semantic (vector) retrieval via Search API + a vector database.

Additional Requirements

Requires the AI module, the Key module, core Basic Auth, and at least one configured AI chat provider. For semantic retrieval, also Search API, the AI module's AI Search submodule, and a vector-DB provider such as Milvus.

Similar projects

Unlike provider-specific chatbot modules, this is provider-agnostic (it depends only on the AI module, not on any specific LLM vendor) and exposes RAG as a clean, authenticated, guardrailed HTTP API rather than a site-facing UI — closer to "JSON:API for AI" than to a chat widget.

Depends on

Dependencies of the latest stable release

  • ai Drupal core
  • basic_auth Drupal core
  • key Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

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

Releases

Version Type Core Release date
1.0.0 Stable 10–11 Jun 21, 2026