Install
Works with Drupal: ^10.3 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
258.21 KB
MD5: f070e0b29111cccd1640e202ced998f1
SHA-1: f20c0a0c1c8fe7ec1b4c411a1a373a33f140f08a
SHA-256: 9061517cc1934d0a14b7d5f0ad22cccbf819ccd6093f6bd4353d9a2ee3a8449a
Download zip
323.51 KB
MD5: b4ca6335de2aba7291f57ddffa1061af
SHA-1: f3eabc7d98162366a14482038e6117187f88eb01
SHA-256: 13e104372ae72ac49d1ce33bd5a17b302b00222ffd4fa0f79ebe9ff22ca32944
Release notes
Initial release of AI RAG Service for Drupal 10.3+ and 11.
AI RAG Service wraps the Drupal AI module as a headless, authenticated, rate-limited HTTP API for Retrieval-Augmented Generation — grounded Q&A, multi-turn chat and semantic search, served as clean JSON with citations, streaming and cost controls.
Included in this release
- Three built-in endpoints — grounded Q&A (
POST /api/ai/rag-query), multi-turn chat (POST /api/ai/chat) and LLM-free semantic search (POST /api/ai/search), plusGET /api/ai/statusfor diagnostics. - Real token-by-token streaming over Server-Sent Events, with citations and token usage on the final event.
- Grounded answers returning source documents, URLs, similarity scores and snippets.
- Swappable, plugin-based RAG backend: run in-process via the AI module, or proxy to an external service over HTTP.
- No-code endpoint builder in the admin UI, plus attribute-plugin resources for code-defined endpoints — both with auto-generated per-HTTP-method permissions.
- Security guardrails: 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 of chat sessions and cache, opt-in audit logging, and the optional
ai_rag_service_notifysubmodule for throttled failure / flagged-question email alerts.
Requirements
Requires the AI and Key modules, core Basic Auth, and at least one configured AI chat provider. Semantic (vector) retrieval additionally needs Search API, the AI module's AI Search submodule, and a vector-database provider such as Milvus.
This is the first public release — feedback and bug reports are welcome in the issue queue.