{"id":74729,"date":"2025-09-08T12:25:02","date_gmt":"2025-09-08T06:55:02","guid":{"rendered":"https:\/\/www.tothenew.com\/blog\/?p=74729"},"modified":"2025-11-19T11:18:51","modified_gmt":"2025-11-19T05:48:51","slug":"drupal-ai-chatbot-with-custom-data","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/drupal-ai-chatbot-with-custom-data\/","title":{"rendered":"Drupal AI Chatbot with Custom Data"},"content":{"rendered":"<p>Drupal chatbots powered by AI use Large Language Models (LLMs) to understand user queries and provide intelligent, context-aware responses. These models rely on transformer-based neural networks, which allow the chatbot to interpret questions, generate relevant answers, and maintain a natural conversational flow. By integrating LLaMA3 via Ollama and connecting it to a vector database, your Drupal chatbot can offer smarter search, handle complex queries, and deliver a more interactive experience for users.<\/p>\n<h2>LLMs (Large Language Models)<\/h2>\n<ul>\n<li>LLMs are AI models trained on huge text data to understand and generate human-like language using advanced neural networks called transformers.<\/li>\n<li>They use deep neural networks called transformers to predict the next word or token in a sentence, enabling coherent and context-aware text generation, etc.<\/li>\n<\/ul>\n<h2>Why Use Ollama and LLaMA3 On-Premises or On Cloud<\/h2>\n<p>Using Ollama with the LLaMA3 model on-premises or on cloud offers several advantages:<\/p>\n<ul>\n<li><strong>Privacy and Control:<\/strong> Sensitive data remains under your supervision, avoiding third-party API exposure.<\/li>\n<li><strong>Cost Efficiency:<\/strong> You avoid recurring API costs while leveraging powerful AI capabilities.<\/li>\n<li><strong>Faster Iteration:<\/strong> On-premises\/cloud deployment allows rapid experimentation and fine-tuning without relying on network speed or cloud latency.<\/li>\n<li><strong>Customisable Development:<\/strong> Easily modify prompts, integrate with existing systems, and test multiple AI models without restrictions.<\/li>\n<\/ul>\n<h2>Vector DB<\/h2>\n<p>A <strong>Vector Database (Vector DB)<\/strong> is optimised to store, index, and search high-dimensional vector data used in AI applications.<\/p>\n<ul>\n<li><strong>Vectors<\/strong> represent complex data like text, images, or audio in numerical form for similarity and nearest-neighbor searches.<\/li>\n<li><strong>Embeddings<\/strong> are generated by AI models to convert raw data into fixed-length vectors capturing semantic meaning.<\/li>\n<li><strong>Milvus<\/strong> is a leading open-source vector database designed for efficient and scalable similarity search on large datasets.<\/li>\n<li>Running Milvus on-premises or on cloud allows faster development, testing, and secure AI model experimentation before production deployment.<\/li>\n<\/ul>\n<h2>Prerequisites<strong> for Drupal AI Chatbot Setup<\/strong><\/h2>\n<h3>Step 1:\u00a0Download Ollama<\/h3>\n<p>Download and install Ollama based on your operating system:<\/p>\n<ul>\n<li><strong>MacOS:<\/strong> <a href=\"https:\/\/ollama.com\/download\/mac\">Ollama for Mac<\/a><\/li>\n<li><strong>Ubuntu\/Linux:<\/strong> <a href=\"https:\/\/ollama.com\/download\/linux\">Ollama for Linux<\/a><\/li>\n<li><strong>Windows:<\/strong> <a href=\"https:\/\/ollama.com\/download\/windows\">Ollama for Windows<\/a><\/li>\n<\/ul>\n<h3>Step 2: Start Ollama<\/h3>\n<ol>\n<li>Open your terminal or command prompt.<\/li>\n<li>Navigate to the directory where Ollama is installed.<\/li>\n<li>Start Ollama by running:<br \/>\n<em><span style=\"color: #008000;\">ollama &#8211;version<\/span><\/em><\/li>\n<li>Default Ollama URL (API endpoint): <a href=\"11434\/\">localhost:11434\/<\/a><\/li>\n<\/ol>\n<h3>Step 3: Pull AI Models<\/h3>\n<p>Pull the necessary models for chat and embedding functionality:<\/p>\n<ul>\n<li>LLaMA3 model for chat:<br \/>\n<em><span style=\"color: #008000;\">ollama pull llama3<\/span><\/em><\/li>\n<li>Model for generating embeddings:<br \/>\n<em><span style=\"color: #008000;\">ollama pull nomic-embed-text<\/span><\/em><\/li>\n<\/ul>\n<h3>Step 4: Run Ollama Chat Example<\/h3>\n<ul>\n<li>Start a chat session with the LLaMA3 model:<br \/>\n<em><span style=\"color: #008000;\">ollama run llama3<\/span><\/em><\/li>\n<li>Example prompt:<br \/>\n&gt;&gt;&gt; What is the capital of India?<\/li>\n<li><strong>Additional Resources:<\/strong> <a href=\"https:\/\/github.com\/ollama\/ollama\/tree\/main\/docs\">Ollama Docs<\/a><\/li>\n<\/ul>\n<h2>Drupal AI Chatbot Setup<\/h2>\n<p><strong>Step 1:<\/strong> Install Drupal<br \/>\nBegin by creating a new Drupal project:<br \/>\n<em><span style=\"color: #008000;\">composer create-project drupal\/recommended-project chatbotdemo<\/span><\/em><\/p>\n<p>For beginners, detailed installation instructions are available here: <a href=\"https:\/\/www.drupal.org\/docs\/installing-drupal\">Drupal Installation Guide<\/a><\/p>\n<h3>Step 2: Install Required Modules<\/h3>\n<ul>\n<li>Run the following composer commands to install the core AI modules, Ollama provider, Milvus provider, and AI search block:<br \/>\n<em><span style=\"color: #008000;\">composer require drupal\/ai drupal\/search_api<br \/>\n<\/span><\/em><em><span style=\"color: #008000;\">composer require drupal\/ai_provider_ollama:^1.1@beta drupal\/ai_vdb_provider_milvus:^1.1@beta drupal\/ai_search_block:^1.0@RC<\/span><\/em><\/li>\n<\/ul>\n<h3>Step 3: Milvus Installation with DDEV<\/h3>\n<ul>\n<li>Copy the Milvus Docker Compose example:<br \/>\n<em><span style=\"color: #008000;\">cp web\/modules\/contrib\/ai_vdb_provider_milvus\/docs\/docker-compose-examples\/ddev-example.docker-compose.milvus.yaml .ddev\/docker-compose.milvus.yaml<\/span><\/em><\/li>\n<li>Restart DDEV to apply changes:<br \/>\n<em><span style=\"color: #008000;\">ddev restart<\/span><\/em><\/li>\n<\/ul>\n<h3>Step 4: Milvus Database Custom Setup(Ignore for DDev\/Drupal)<\/h3>\n<ul>\n<li>Download and run Milvus standalone using Docker:<br \/>\n<em><span style=\"color: #008000;\">docker run -d &#8211;name milvus-standalone -p 19530:19530 -p 19121:19121 milvusdb\/milvus:latest<\/span><\/em><\/li>\n<li>Documentation: <a href=\"https:\/\/milvus.io\/docs\">https:\/\/milvus.io\/docs<\/a><\/li>\n<\/ul>\n<h3>Step 5: Enable Drupal Modules<\/h3>\n<ul>\n<li>Enable the AI Search module; this will also enable dependencies such as Search API, AI Core, and Key modules.<\/li>\n<li>Enable the Ollama Provider module.<\/li>\n<\/ul>\n<h3>Step 6: Configure Ollama Provider<\/h3>\n<ul>\n<li>Navigate to Drupal Configuration \u2192 Provider Settings and set up Ollama provider with your desired configurations.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<div id=\"attachment_74433\" style=\"width: 958px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-74433\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-74433\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-20-at-10.46.24\u202fPM.png\" alt=\"Ollama Provide Setup\" width=\"948\" height=\"519\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-20-at-10.46.24\u202fPM.png 2324w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-20-at-10.46.24\u202fPM-300x164.png 300w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-20-at-10.46.24\u202fPM-1024x560.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-20-at-10.46.24\u202fPM-768x420.png 768w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-20-at-10.46.24\u202fPM-1536x841.png 1536w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-20-at-10.46.24\u202fPM-2048x1121.png 2048w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-20-at-10.46.24\u202fPM-624x342.png 624w\" sizes=\"(max-width: 948px) 100vw, 948px\" \/><p id=\"caption-attachment-74433\" class=\"wp-caption-text\">Ollama Provide Setup<\/p><\/div>\n<h3>Step 7: Configure Default AI Providers<\/h3>\n<ul>\n<li>Navigate to Drupal Configuration \u2192 AI Default Settings and set up Default provider with your desired configurations.<\/li>\n<\/ul>\n<div id=\"attachment_75446\" style=\"width: 959px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-75446\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-75446\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-20-at-11.01.23\u202fPM.png\" alt=\"AI Provider Chat\" width=\"949\" height=\"266\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-20-at-11.01.23\u202fPM.png 2062w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-20-at-11.01.23\u202fPM-300x84.png 300w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-20-at-11.01.23\u202fPM-1024x287.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-20-at-11.01.23\u202fPM-768x215.png 768w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-20-at-11.01.23\u202fPM-1536x431.png 1536w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-20-at-11.01.23\u202fPM-2048x574.png 2048w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-20-at-11.01.23\u202fPM-624x175.png 624w\" sizes=\"(max-width: 949px) 100vw, 949px\" \/><p id=\"caption-attachment-75446\" class=\"wp-caption-text\">AI Provider Chat<\/p><\/div>\n<div id=\"attachment_74434\" style=\"width: 962px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-74434\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-74434\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-20-at-10.50.07\u202fPM.png\" alt=\"AI Provider\" width=\"952\" height=\"245\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-20-at-10.50.07\u202fPM.png 2366w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-20-at-10.50.07\u202fPM-300x77.png 300w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-20-at-10.50.07\u202fPM-1024x263.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-20-at-10.50.07\u202fPM-768x197.png 768w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-20-at-10.50.07\u202fPM-1536x395.png 1536w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-20-at-10.50.07\u202fPM-2048x526.png 2048w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-20-at-10.50.07\u202fPM-624x160.png 624w\" sizes=\"(max-width: 952px) 100vw, 952px\" \/><p id=\"caption-attachment-74434\" class=\"wp-caption-text\">AI Provider<\/p><\/div>\n<h3><\/h3>\n<h3>Step 8: Configure Vector DB<\/h3>\n<ul>\n<li>Navigate to Drupal Configuration \u2192 Vector DBs Settings -&gt; Milvus Configuration<\/li>\n<\/ul>\n<div id=\"attachment_74436\" style=\"width: 963px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-74436\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-74436\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-23-at-3.24.09\u202fAM.png\" alt=\"Vector Provider Setup\" width=\"953\" height=\"599\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-23-at-3.24.09\u202fAM.png 1772w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-23-at-3.24.09\u202fAM-300x189.png 300w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-23-at-3.24.09\u202fAM-1024x644.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-23-at-3.24.09\u202fAM-768x483.png 768w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-23-at-3.24.09\u202fAM-1536x966.png 1536w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-23-at-3.24.09\u202fAM-624x392.png 624w\" sizes=\"(max-width: 953px) 100vw, 953px\" \/><p id=\"caption-attachment-74436\" class=\"wp-caption-text\">Vector Provider Setup<\/p><\/div>\n<h3>Access Milvus DB UI:<\/h3>\n<div id=\"attachment_74437\" style=\"width: 964px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-74437\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-74437\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-28-at-4.41.01\u202fPM.png\" alt=\"Milvus DB UI\" width=\"954\" height=\"593\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-28-at-4.41.01\u202fPM.png 2596w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-28-at-4.41.01\u202fPM-300x187.png 300w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-28-at-4.41.01\u202fPM-1024x637.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-28-at-4.41.01\u202fPM-768x477.png 768w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-28-at-4.41.01\u202fPM-1536x955.png 1536w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-28-at-4.41.01\u202fPM-2048x1273.png 2048w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/Screenshot-2025-08-28-at-4.41.01\u202fPM-624x388.png 624w\" sizes=\"(max-width: 954px) 100vw, 954px\" \/><p id=\"caption-attachment-74437\" class=\"wp-caption-text\">Milvus DB UI<\/p><\/div>\n<h3>Step 9: Configure Search API<\/h3>\n<ul>\n<li>Navigate to Drupal Configuration \u2192 Search API -&gt; Search API: Add Server<\/li>\n<\/ul>\n<div id=\"attachment_74438\" style=\"width: 962px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-74438\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-74438\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/08\/ScreenShot-Tool-20250828162658.png\" alt=\"Search API Server Setup\" width=\"952\" height=\"1118\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/08\/ScreenShot-Tool-20250828162658.png 1728w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/ScreenShot-Tool-20250828162658-255x300.png 255w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/ScreenShot-Tool-20250828162658-872x1024.png 872w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/ScreenShot-Tool-20250828162658-768x902.png 768w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/ScreenShot-Tool-20250828162658-1307x1536.png 1307w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/ScreenShot-Tool-20250828162658-624x733.png 624w\" sizes=\"(max-width: 952px) 100vw, 952px\" \/><p id=\"caption-attachment-74438\" class=\"wp-caption-text\">Search API Server Setup<\/p><\/div>\n<h3>Step 10: Configure Search API<\/h3>\n<ul>\n<li>Navigate to Drupal Configuration \u2192 Search API -&gt; Search API: Add Index<\/li>\n<\/ul>\n<div id=\"attachment_74439\" style=\"width: 967px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-74439\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-74439\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/08\/ScreenShot-Tool-20250828162742.png\" alt=\"Search API Index Setup\" width=\"957\" height=\"1053\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/08\/ScreenShot-Tool-20250828162742.png 1728w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/ScreenShot-Tool-20250828162742-273x300.png 273w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/ScreenShot-Tool-20250828162742-930x1024.png 930w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/ScreenShot-Tool-20250828162742-768x845.png 768w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/ScreenShot-Tool-20250828162742-1395x1536.png 1395w, \/blog\/wp-ttn-blog\/uploads\/2025\/08\/ScreenShot-Tool-20250828162742-624x687.png 624w\" sizes=\"(max-width: 957px) 100vw, 957px\" \/><p id=\"caption-attachment-74439\" class=\"wp-caption-text\">Search API Index Setup<\/p><\/div>\n<div id=\"attachment_75505\" style=\"width: 964px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-75505\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-75505\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/09\/ScreenShot-Tool-20250828162820.png\" alt=\"Fields to Index\" width=\"954\" height=\"843\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/09\/ScreenShot-Tool-20250828162820.png 1728w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/ScreenShot-Tool-20250828162820-300x265.png 300w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/ScreenShot-Tool-20250828162820-1024x905.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/ScreenShot-Tool-20250828162820-768x679.png 768w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/ScreenShot-Tool-20250828162820-1536x1358.png 1536w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/ScreenShot-Tool-20250828162820-624x552.png 624w\" sizes=\"(max-width: 954px) 100vw, 954px\" \/><p id=\"caption-attachment-75505\" class=\"wp-caption-text\">Fields to Index<\/p><\/div>\n<h3>Step 11: Configure Search API &#8211; Indexing Data<\/h3>\n<ul>\n<li>Navigate to Drupal Configuration \u2192 Search API -&gt; Search API: Click on Index<\/li>\n<\/ul>\n<div id=\"attachment_75507\" style=\"width: 956px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-75507\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-75507\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/09\/ScreenShot-Tool-20250828164152.png\" alt=\"Search API Index\" width=\"946\" height=\"745\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/09\/ScreenShot-Tool-20250828164152.png 1728w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/ScreenShot-Tool-20250828164152-300x236.png 300w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/ScreenShot-Tool-20250828164152-1024x807.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/ScreenShot-Tool-20250828164152-768x605.png 768w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/ScreenShot-Tool-20250828164152-1536x1211.png 1536w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/ScreenShot-Tool-20250828164152-624x492.png 624w\" sizes=\"(max-width: 946px) 100vw, 946px\" \/><p id=\"caption-attachment-75507\" class=\"wp-caption-text\">Search API Index<\/p><\/div>\n<h3>Step 12: Verify your indexed data in Vector DB(Milvus)<\/h3>\n<div id=\"attachment_75508\" style=\"width: 957px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-75508\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-75508\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.41.01\u202fPM.png\" alt=\"Vector DB - Milvus Indexed Data\" width=\"947\" height=\"589\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.41.01\u202fPM.png 2596w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.41.01\u202fPM-300x187.png 300w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.41.01\u202fPM-1024x637.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.41.01\u202fPM-768x477.png 768w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.41.01\u202fPM-1536x955.png 1536w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.41.01\u202fPM-2048x1273.png 2048w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.41.01\u202fPM-624x388.png 624w\" sizes=\"(max-width: 947px) 100vw, 947px\" \/><p id=\"caption-attachment-75508\" class=\"wp-caption-text\">Vector DB &#8211; Milvus Indexed Data<\/p><\/div>\n<h3>Step 13: Configure\/Enable AI Search Block<\/h3>\n<ul>\n<li>Navigate to Structure \u2192 Block layout<\/li>\n<\/ul>\n<div id=\"attachment_75509\" style=\"width: 960px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-75509\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-75509\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.34.46\u202fPM.png\" alt=\"Enable AI Search Block\" width=\"950\" height=\"152\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.34.46\u202fPM.png 3360w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.34.46\u202fPM-300x48.png 300w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.34.46\u202fPM-1024x164.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.34.46\u202fPM-768x123.png 768w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.34.46\u202fPM-1536x246.png 1536w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.34.46\u202fPM-2048x328.png 2048w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.34.46\u202fPM-624x100.png 624w\" sizes=\"(max-width: 950px) 100vw, 950px\" \/><p id=\"caption-attachment-75509\" class=\"wp-caption-text\">Enable AI Search Block<\/p><\/div>\n<h2>Working AI Search Block For Your Specific Data<\/h2>\n<div id=\"attachment_75510\" style=\"width: 958px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-75510\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-75510\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.33.58\u202fPM.png\" alt=\"Working AI Serch Block For Your Specific Data\" width=\"948\" height=\"671\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.33.58\u202fPM.png 2198w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.33.58\u202fPM-300x212.png 300w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.33.58\u202fPM-1024x725.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.33.58\u202fPM-768x544.png 768w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.33.58\u202fPM-1536x1087.png 1536w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.33.58\u202fPM-2048x1450.png 2048w, \/blog\/wp-ttn-blog\/uploads\/2025\/09\/Screenshot-2025-08-28-at-4.33.58\u202fPM-624x442.png 624w\" sizes=\"(max-width: 948px) 100vw, 948px\" \/><p id=\"caption-attachment-75510\" class=\"wp-caption-text\">Working AI Search Block For Your Specific Data<\/p><\/div>\n<h2>Conclusion<\/h2>\n<p>By integrating <strong>LLMs<\/strong> like <strong>LLaMA3<\/strong> with Ollama, on-premises or in the cloud,\u00a0and incorporating a <strong>Vector Database<\/strong> like <strong>Milvus<\/strong> into Drupal, you create a powerful, private, and scalable AI chatbot solution. This configuration not only enhances data privacy and improves cost efficiency, but also allows for greater customization and quicker experimentation\u2014all without the need for cloud services.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Drupal chatbots powered by AI use Large Language Models (LLMs) to understand user queries and provide intelligent, context-aware responses. These models rely on transformer-based neural networks, which allow the chatbot to interpret questions, generate relevant answers, and maintain a natural conversational flow. By integrating LLaMA3 via Ollama and connecting it to a vector database, your [&hellip;]<\/p>\n","protected":false},"author":2143,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":147},"categories":[3602],"tags":[4904,6590,5733,6925,6962],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/74729"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/2143"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=74729"}],"version-history":[{"count":30,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/74729\/revisions"}],"predecessor-version":[{"id":76854,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/74729\/revisions\/76854"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=74729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=74729"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=74729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}