ai_rag_search_summary
No security coverage
Introduction
AI RAG Search Summary turns your Search API vector search into an intelligent Q&A system. Users ask questions in plain language and get an AI-generated summary answer along with the actual source documents used to verify information and explore deeper. No more scrolling through search results.
Choose how sources appear: use any Drupal view mode (teaser, full, custom) to render source nodes with your existing templates, or use the default JSON format. Style with CSS variables to match your theme.
Post-Installation
Prerequisites
- Have Drupal Search API configured with AI Search backend
- New to AI Search? Read the docs found here AI Search project page for setup instructions
- Video tutorials:
- Content already indexed with embeddings
2. Create Configuration
- Go to
/admin/config/ai/rag-search-summary - Click "Add configuration"
- Select your Search API index
- Choose AI provider:
openai__gpt-4o - Customize prompt, temperature, caching, and rate limits
- Save
3. Add Block
- Place the "RAG Search Summary" block via
/admin/structure/block - Select your configuration
- Customize UI text and display options
That's it! The block is now ready to use.
Customization
Styling with CSS Variables
The React component uses CSS variables for easy theming without touching component code per block config:
--rag-color-primary: #0a3f5a;
--rag-color-primary-hover: #0076a9;
--rag-color-primary-dark: #0a3f5a;
--rag-color-text-primary: #212529;
--rag-sources-columns-mobile: 1;
--rag-sources-columns-tablet: 2;
--rag-sources-columns-desktop: 2;
--rag-font-heading: "Forma DJR UI", Arial, sans-serif;
--rag-text-base: 18px;