Install

Works with Drupal: ^10.5 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 46.93 KB
MD5: 08da2775ef82c03e8aaf04405367173b
SHA-1: ce71dad38305b4a6716cfdef7c4d32554090d300
SHA-256: 750f2bb15501c21307cdedda98b3fbbe90bb424fc6b87e63e99a613270d1f10a
Download zip 77.2 KB
MD5: 1c585346e1a368e0ffb9d4367ecb8f8f
SHA-1: 7ecfa26042b0b57d2130bc3634f2fddbd45d9605
SHA-256: f2fcfd07da0a0112e018ecb11d224cb748a42722feaab7a7aeff0ef9854197ce

Release notes

First alpha release of AI RAG API: an OpenAI-compatible chat completions API with Retrieval Augmented Generation for headless Drupal.

  • OpenAI-compatible endpoints: /api/ai-rag/v1/chat/completions and /api/ai-rag/v1/models, usable with the official OpenAI SDKs.
  • RAG profiles as configuration entities — the OpenAI model parameter selects the profile.
  • Streaming via server-sent events, with sources delivered on the first chunk.
  • Sources (title, URL, entity ID, score) on every response; full retrieved contexts on request for evaluation tools such as RAGAS.
  • Bearer API key authentication via the Key module, optional permission-based session access, and entity access filtering on retrieved content.
  • AI guardrail set support with finish_reason: "content_filter".
  • Covered by unit, kernel and functional tests.

Alpha status: the API surface (request/response shapes, the rag object) may still change before 1.0.0. Feedback in the issue queue is very welcome.

Created by: emielb
Created on: 6 Jul 2026 at 23:15 UTC
Last updated: 6 Jul 2026 at 23:15 UTC
New features

Other releases