AcademyWorkflowsData and reporting

Google Drive Documents to Vector Embeddings

Data and IT teams that want company documents ready for semantic search or AI assistants.

  • Recommendedour rating
  • 4,324views on n8n
Open on n8n.io ↗

Paste it straight onto an n8n canvas with Ctrl+V or Cmd+V.

transform-google-drive-documents-into-vector-embeddings.json

Loading the file...

What it does

This n8n template watches a Google Drive folder for new PDF, TXT and JSON files. It splits each file, creates embeddings with OpenAI's text-embedding-3-small model, and stores them in Postgres with the PGVector extension. Processed files move to a separate vectorized folder so they are not handled twice. It can run manually or on a daily schedule, 3 AM by default.

Use cases

  1. 01Preparing internal documents for an AI assistant
  2. 02Searching private files by meaning
  3. 03Indexing new files in a folder without repeats

Connects

Google Drive · Embeddings OpenAI · Recursive Character Text Splitter · Default Data Loader · Postgres PGVector Store

Questions about
Google Drive Documents to Vector Embeddings.

What is Google Drive Documents to Vector Embeddings used for?

Data and IT teams that want company documents ready for semantic search or AI assistants. This n8n template watches a Google Drive folder for new PDF, TXT and JSON files. It splits each file, creates embeddings with OpenAI's text-embedding-3-small model, and stores them in Postgres with the PGVector extension. Processed files move to a separate vectorized folder so they are not handled twice. It can run manually or on a daily schedule, 3 AM by default.

How do I import Google Drive Documents to Vector Embeddings into n8n?

Copy the workflow JSON from this page and paste it onto the n8n canvas with Ctrl+V or Cmd+V. Then connect your credentials in each node.

Is Google Drive Documents to Vector Embeddings safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.