π Build a document-based AI chatbot with Google Drive, Llama 3, and Qdrant RAG
β‘ 669 views Β· π Internal Wiki & Knowledge Base
Description
Overview This template allows users to set up an AI-powered chatbot that retrieves and processes knowledge from Google Drive documents using Retrieval-Augmented Generation (RAG). By leveraging Llama 3 for natural language responses and Qdrant vector storage for document embeddings, this chatbot provides accurate, context-aware answers based on stored files.
Problem It Solves Standard AI chatbots often rely on predefined models with limited real-time knowledge access. This workflow overcomes that limitation by:
Automatically fetching new documents from Google Drive.
Embedding knowledge for fast retrieval using Qdrant.
Generating human-like responses with Llama 3 AI.
Providing accurate, source-backed answers in conversations.
Use Cases βοΈ Customer Support β Retrieve and summarize FAQs stored in Google Drive. βοΈ Internal Knowledge Base β Automate document-based query responses. βοΈ AI-powered Research Assistant β Search and generate insights from uploaded files. βοΈ Business Automation β Enhance workflows with document-aware chat interactions.
Setup Instructions 1οΈβ£ Google Drive Trigger: Detect & Fetch New Documents Watches for new files added to a specific Google Drive folder.
Retrieves the latest file metadata and passes it into the workflow.
2οΈβ£ Processing & Embedding the Document The document is downloaded via the Google Drive node.
Text data is split into smaller, retrievable chunks using Recursive Text Splitter.
Embeddings are created using Ollamaβs Nomic-Embed Model.
Knowledge is stored in Qdrant Vector Database for fast AI-powered lookup.
3οΈβ£ AI Chatbot & Query Handling The Chat Trigger node listens for user queries.
The AI Agent retrieves context-aware answers by searching Qdrantβs vectorized documents.
The Llama 3 Model generates human-like responses based on stored knowledge.
Detailed Workflow Explanation πΉ Google Drive Trigger β Monitors a specific folder for new documents. β Automatically fetches document metadata when a file is uploaded.
πΉ Qdrant Vector Store β Stores embedded document text, making retrieval instant & accurate. β Allows the chatbot to reference stored knowledge dynamically.
πΉ Recursive Text Splitter β Splits long documents into manageable chunks for efficient embedding. β Improves chatbot response accuracy by organizing document data.
πΉ Llama 3 Chat Model β Generates natural, human-like replies using AI. β Uses retrieved document data for context-aware responses.
Customization Options πΉ Adjust polling frequency for document updates. πΉ Expand knowledge base by adding more storage sources. πΉ Refine chatbot responses with prompt tuning in Llama 3.
π Nodes Used
Google Drive, Google Drive Trigger, AI Agent, Ollama Chat Model, Recursive Character Text Splitter, Default Data Loader
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File