How to Set Up Drupal AI Search with RAG on Varbase

About the Author

Mohammed J. Razem

CEO

Mohammed Razem is a technologist and entrepreneur, and the CEO and founder of Vardot, a global agency that builds enterprise web solutions on Drupal and open source. He has been working with Drupal since 2007 and is a member of the Forbes Technology Council.

FAQs

RAG (retrieval-augmented generation) in a Drupal AI chatbot retrieves relevant passages from your own content using semantic vector search, then feeds them to a language model to generate the answer. On Drupal, the AI Search module handles retrieval and an AI assistant handles generation, so responses come from your site rather than the model's training data.

AI Search on Varbase 11 needs the Varbase AI Base recipe, which ships with Varbase 11 and installs the Drupal AI core and provider wiring, plus the AI Search, AI Chatbot, and AI Assistant API submodules of the Drupal AI module, and the Milvus VDB Provider module to connect a vector database. You also need an OpenAI API key for embeddings.

AI Search on Varbase 11 needs the Varbase AI Base recipe, which ships with Varbase 11 and installs the Drupal AI core and provider wiring, plus the AI Search, AI Chatbot, and AI Assistant API submodules of the Drupal AI module, and the Milvus VDB Provider module to connect a vector database. You also need an OpenAI API key for embeddings.

You can do either, since both connect through the same Milvus VDB Provider module. Self-hosting Milvus in a container keeps everything on your own infrastructure and needs no third-party account, which suits local development and data residency requirements. Zilliz Cloud is managed, so you supply a public endpoint on port 443 and an API key instead of running the database.

In AI module 1.4 the assistant first decides whether to answer directly or run an action, so a prompt that only says to answer from retrieved content lets it return the fallback message without ever running the search. Fix it by making the search explicitly mandatory in the instructions: require the assistant to run the RAG Actions search on every content question before answering.

Join the conversation +