Operations & Systems
Data Ingestion | Personal Agentic Contextual RAG Chatbot
Ingests Google Drive documents (PDF, Excel, CSV, text) into Supabase Vectorstore via OpenAI embeddings and PostgreSQL, building a data foundation for a contextual RAG chatbot.
Built · ~6 hours saved per week
Data Ingestion for an Agentic, Contextual RAG Chatbot
Workflow Overview
This workflow automates the entire data ingestion and processing pipeline for a sophisticated Retrieval-Augmented Generation (RAG) system. It monitors a Google Drive folder for new or updated files, intelligently processes various file types (PDF, Excel, CSV, Google Docs), extracts their content, and then uses AI to convert that content into vector embeddings. These embeddings are stored in a Supabase vector database, effectively creating and maintaining a dynamic, searchable knowledge base for a contextual AI chatbot.
Technologies & Services
- n8n: The core automation platform coordinating the entire process. - Google Drive: The source for documents, acting as the trigger point for the automation. - PostgreSQL & Supabase: Used for structured data storage. PostgreSQL stores file metadata and raw tabular data, while Supabase's vector store (pgvector) holds the AI-generated embeddings. - OpenAI: Provides the AI model for creating text embeddings.
Automation & AI Integration
How the Automation Provides Value
This workflow eliminates the manual, time-consuming, and error-prone task of keeping an AI's knowledge base current. By watching a Google Drive folder, it ensures that any change made to a document is automatically reflected in the chatbot's accessible memory. It handles different data formats smoothly, making the system incredibly versatile. The key value is creating a "living" knowledge base that stays synchronized with source documents without any human intervention.
How AI is Integrated
The AI, specifically OpenAI's text-embedding-3-small model, is the engine that makes the RAG functionality possible. After the workflow extracts and cleans the text from a source document, it passes this text to the OpenAI Embeddings node.
1. Semantic Conversion: The AI model doesn't just read the text; it converts it into a high-dimensional numerical vector (an embedding). This vector represents the text's semantic meaning and context. 2. Enabling Similarity Search: These vectors are stored in the Supabase vector database.
Tags: Chatbot, Leadership Automations, RAG, Content Management, Data Transformation, AI Automation
Integrations: Supabase, OpenAI, Postgres, Google Drive