Kütüphane / RAG ve Bilgi Bankaları
RAG ve Bilgi Bankaları
Supabase ile Google Drive dosyaları üzerinde agentic RAG agent'ı
Bir Drive dosyası değiştiğinde veya sohbet mesajı geldiğinde, belgeleri Supabase ve Postgres'e indeksler ve bir OpenAI agent'ı bunlardan yanıt verir.
Ne yapar
## 🚀 Ultimate n8n Agentic RAG Template Author: Cole Medin ## What is this? This template provides a complete implementation of an Agentic RAG (Retrieval Augmented Generation) system in n8n that can be extended easily for your specific use case and knowledge base. Unlike standard RAG which only performs simple lookups, this agent can reason about your knowledge base, self-improve retrieval, and dynamically switch between different tools based on the specific question. ## Why Agentic RAG? Standard RAG has significant limitations: - Poor analysis of numerical/tabular data - Missing context due to document chunking - Inability to connect information across documents - No dynamic tool selection based on question type ## What makes this template powerful: - Intelligent tool selection: Switches between RAG lookups, SQL queries, or full document retrieval based on the question - Complete document context: Accesses entire documents when needed instead of just chunks - Accurate numerical analysis: Uses SQL for precise calculations on spreadsheet/tabular data - Cross-document insights: Connects information across your entire knowledge base - Multi-file processing: Handles multiple documents in a single workflow loop - Efficient storage: Uses JSONB in Supabase to store tabular data without creating new tables for each CSV ## Getting Started 1. Run the table creation nodes first to set up your database tables in Supabase 2. Upload your documents through Google Drive (or swap out for a different file storage solution) 3. The agent will process them automatically (chunking text, storing tabular data in Supabase) 4. Start asking questions that leverage the agent's multiple reasoning approaches ## Customization This template provides a solid foundation that you can extend by: - Tuning the system prompt for your specific use case - Adding document metadata like summaries - Implementing more advanced RAG techniques - Optimizing for larger knowledge bases --- I do intend on making a local version of this agent very soon!
Adımlar
- OpenAI Chat Model
- Default Data Loader
- Embeddings OpenAI1
- Download File
- File Created
- File Updated
- Extract Document Text
- Postgres Chat Memory
- Delete Old Doc Rows
- Set File ID
- Respond to Webhook
- Edit Fields
- When chat message received
- Webhook
Toplam 37 adım.
Benzer otomasyonlar
RAG ve Bilgi BankalarıSupabase vektör deposu ve Postgres hafızasıyla sohbet12 adımSohbet Botları ve Mesajlaşma BotlarıLangChain araçları ve OpenAI ile ajan tabanlı Telegram yapay zekâ botu21 adımRAG ve Bilgi BankalarıIndex Zoom meeting recordings for Telegram Q&A with OpenAI and Supabase52 adımVeri Senkronizasyonu ve ETLSupabase Postgres kayıtlarını Gemini ile doldur6 adım