Data Processing & Analysis

Gmail to Vector Embeddings with PGVector and Ollama

Gmail to Vector Embeddings with PGVector and Ollama

Complex
High
20
Nodes
Complex
Trigger
High
Complexity
7/22/2025
Added

Workflow Overview

Total Nodes
20
Node Types
15

Node Types

embeddings Ollama
Embeddings Ollama
1 node
document Default Data Loader
Default Data Loader
1 node
text Splitter Recursive Character Text Splitter
Recursive Character Text Splitter
1 node
gmail Trigger
Gmail Trigger
1 node
split In Batches
Loop Over Items
1 node
split Out
Split Out
1 node
if
Was manually triggered?
1 node
manual Trigger
Manual Trigger
1 node
no Op
No Operation, do nothing
1 node
sticky Note
Sticky Note, Sticky Note1, Sticky Note2, Sticky Note3
4 nodes
set
Set before and after dates, Extract email fields
2 nodes
postgres
Store structured, Create the table
2 nodes
vector Store P G Vector
Store vectorized
1 node
code
Explode interval into weeks
1 node
gmail
Get a batch of messages
1 node

Workflow JSON

18.96 KB
{
  "id": "ZiIoKEClTk83g1Jt",
  "meta": {
    "instanceId": "8a3ba313628b26e4e4cf0504ff23322f235d6b433d92e59bcf8762764730ed80",
    "templateCredsSetupCompleted": true
  },
  "name": "Gmail to Vector Embeddings with PGVector and Ollama",
  "tags": [],
  "nodes": [
    {
      "id": "162b1a8b-2471-4880-9fcb-7f2dcfe175a8",
      "name": "Embeddings Ollama",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOllama",
      "position": [
        1920,
        -100
      ],
      "parameters": {
        "model": "nomic-embed-text:latest"
      },
      "credentials": {},
      "typeVersion": 1
    },
    {
      "id": "49eb04b0-3b54-499c-ba46-3251102a4017",
      "name": "Default Data Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        2040,
        -97.5
      ],
      "parameters": {
        "options": {
          "metadata": {
            "metadataValues": [
              {
                "name": "emails_metadata.id",
                "...

Showing first 1000 characters. Click "Expand" to view the full JSON.