Templates / Detect semantic duplicate website pages with Google Drive, Ollama and Postgres

Detect semantic duplicate website pages with Google Drive, Ollama and Postgres

Ready for 3.0

by Siddharth Gupta ✓ · 2 views · created 2026-07-04 · Document Extraction, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 29 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Drive, Postgres, Postgres PGVector Store and Embeddings Ollama.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Clear Vector Table (Postgres): delete table
  2. Clear Scraped Pages Table (Postgres): delete table
  3. Scan Source Directory (Google Drive): work with file folder
  4. Isolate Target Documents (Filter): keeps only the items that match a condition
  5. Loop Source File (Loop Over Items (Split in Batches)): loops over the items in batches
  6. Batches for Embedding (Loop Over Items (Split in Batches)): loops over the items in batches
  7. GDrive Download Document (Google Drive): download
  8. Create HNSW Index (Postgres): run a query
  9. Get Unprocessed Scraped Text (Postgres): run a query
  10. Extract Raw Text Content (HTML): parses or builds HTML

…plus 15 more steps. See the full node list below.

Services it uses

Google DrivePostgresPostgres PGVector StoreEmbeddings Ollama

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (14)

From the author

Quick overview This workflow scans HTML files in a Google Drive folder, extracts and stores page text in Postgres, generates embeddings with Ollama and PGVector, then computes chunk-level and page-level semantic similarity to identify likely duplicate pages…

Excerpt from Siddharth Gupta's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.