Skip to content
FlowHubFluxonLab
Postgres
RAG & Knowledge Basespro

Gmail to Vector Embeddings with Pgvector and Ollama

by n8n CommunityUpdated Jun 2026
RequiresPostgresPostgresGmailGmail
Share Post Share
NOEmbeddings OllamaEmbeddings Olla…NODefault Data LoaderDefault Data Lo…NORecursive Character Text SplitterRecursive Chara…Gmail TriggerSILoop Over ItemsSOSplit OutIfWas manually triggered?Was manually tr…MaManual TriggerNONo Operation, do nothingNo Operation, d…SeSet before and after datesSet before and …SeExtract email fieldsExtract email f…Store structuredNOStore vectorizedCreate the tableCoExplode interval into weeksExplode interva…Get a batch of messagesGet a batch of …SAError Handler
1/5
STEPS · 17
17 nodes · 0 transitions

On new Gmail emails, processes messages in batches, generates embeddings, and stores them as vectors in Postgres.

Tags

eventcomplexPostgresGmail
Connects
postgresPostgresgmailGmail
CategoryRAG & Knowledge Bases
Triggerevent
Complexitycomplex
Nodes17
AddedJun 14, 2026