Library / RAG & Knowledge Bases
RAG & Knowledge Bases
Ingest LinkedIn posts from Google Drive into Pinecone with Gemini and Supabase
When something happens in a connected app, it answers questions from your own knowledge base with Google Gemini and Groq using Groq, Pinecone, Google Drive, Supabase.
What it does
## Process Implementation Guide:- A fully autonomous n8n workflow that watches a Google Drive folder for new LinkedIn post screenshots/PDFs, extracts and cleans the text, uses AI to pull out reusable writing patterns (hook, structure, tone, formatting, CTA, anti-patterns), embeds them, and stores them in a Pinecone vector store for later reference — with a Supabase log to prevent re-processing the same file twice. ## Setup (credentials needed) 1. Google Drive OAuth — watches the /reference-content folder for new files. 2. Supabase — used for the reference_ingestions dedupe/log table. 3. Groq API — used by the Groq Chat Model for OCR cleanup. 4. Google Gemini (PaLM) API — used for pattern-extraction chat model and embeddings. 5. Pinecone API — vector store index 6. Activate the workflow once credentials are in place.
The steps
- Google Drive Trigger
- Groq Chat Model
- Merge
- Structured Output Parser
- Clean Data
- Default Data Loader
- Recursive Character Text Splitter
- Check For Duplicates
- Remove If File Exists
- Download File
- Check File Type
- Extract Text
- Extract Images
- Normalize PDF Text
21 steps in total.
Similar automations
Documents, PDF & OCRGenerate fact-checked LinkedIn posts with Groq, Gemini, Pinecone, and Slack56 stepsFinance, Invoices & AccountingExtract Receipt Expenses from Telegram with Tesseract and AI13 stepsRAG & Knowledge BasesRoute Telegram support with Groq, Pinecone, Supabase, and Slack51 stepsAI Agents & AssistantsScrape lawn care job boards and publish LinkedIn posts with Groq, Gemini, and Google124 steps