Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Smart Search, Safe Search How AI & Drupal Work...

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
Avatar for Sachiko Sachiko
December 09, 2025
2

Smart Search, Safe Search How AI & Drupal Work Together

AI search is powerful—but without access control, it can leak private content. This beginner-friendly session introduces RAG (Retrieval-Augmented Generation) and shows how Drupal can sit between users and AI to enforce roles and permissions.

The session will include these topics:
- What AI search and RAG really are
- Why just embedding content in a vector database isn’t enough
- Drupal as truth for permissions
- How to connect Drupal with vector DB and AI
- PoC (How a safe AI search looks like)

Avatar for Sachiko

Sachiko

December 09, 2025
Tweet

Transcript

  1. ABOUT ME Drupal Developer Since 2018 Currently Working for Mochiya

    AI enthusiast Proud Mom of Two Cats🐱🐱 Github: SachikoNitta Drupal.org: sachikonitta Sachiko Nitta
  2. THE GOAL OF THE PRESENTATION Build a secure and trustworthy

    AI search system using Drupal as the source of truth.
  3. AGENDA 1. How can we make AI search external content?🤔

    2. What is RAG?📚 3. Why Drupal for RAG?😲 4. Let’s Build It🔥 5. Summary👍
  4. What if … 👶 LLM My cat’s name is …

    His name is “Koro”! External Info
  5. 3 Ways to Pass Information to LLM RAG 📚 Fine

    -tuning 🧠 Prompt Engineer -ing ✍
  6. Basic Flow of RAG 🦱 User App Documents How do

    I apply for paid leave? 👶 LLM
  7. Basic Flow of RAG 🦱 User Chat App Documents 👶

    LLM “How to take paid leave like a pro” Let me search for the relevant documents
  8. Basic Flow of RAG 🦱 User App Documents 👶 LLM

    “Please submit a request through the HR system” Please summarize the text
  9. Basic Flow of RAG 🦱 User App Documents Oh I

    see Thank you 🫰 Please submit a request through the HR system 👶 LLM
  10. Prompt Injection 🦱 User Apps Data sorce 👶 LLM Data

    Poisoning Common RAG Security Attacking Techniques
  11. System Overview 🦱 User Drupal Gemini 001 Pinecone Embed Contents

    & Search Query Store Vectorized Content Gemini 2.5 Flash Summarize the Result
  12. How to implement this? Configuring AI & Search API Setting

    up Content types and Access Checking Building Custom Form
  13. RAG is a technique that provides additional context to AI

    models by retrieving relevant external information📝
  14. Drupal can serve as a RAG source, effectively acting as

    the Source of Truth for both content and access control🪨
  15. References - AI Module - Search API Module - Structure

    of routes - What is RAG (Retrieval-Augmented Generation)? - Retrieval-Augmented Generation (RAG) - RAG vs Fine-Tuning vs Prompt Engineering: Optimizing AI Models - Mapping attacks on generative AI to business impact