FM
FlowMarket
RAG & Vector DB Advanced ⚡ 22 n8n Nodes

Generating image embeddings via textual summarisation

This n8n template demonstrates an approach to image embeddings for purpose of building a quick image contextual search. Use-cases could for a personal photo ...

🔌 Nodes & Integrations Used (7)

Google Drive Edit Image Document Default Data Loader Text Splitter Recursive Character Text Splitter Embeddings Open Ai Vector Store In Memory OpenAI

📖 Implementation & Setup Guide

This n8n template demonstrates an approach to image embeddings for purpose of building a quick image contextual search. Use-cases could for a personal photo library, product recommendations or searching through video footage.

How it works * A photo is imported into the workflow via Google Drive. * The photo is processed by the edit image node to extract colour information. This information forms part of our semantic metadata used to identify the image. * The photo is also processed by a vision-capable model which analyses the image and returns a short description with semantic keywords. * Both pieces of information about the image are combined with the metadata of the image to form a document describing the image. * This document is then inserted into our vector store as a text embedding which is associated with our image. * From here, the user can query the vector store as they would any document and the relevant image references and/or links should be returned.

Requirements * Google account to download image files from Google Drive. * OpenAI account for the Vision-capable AI and Embedding models.

Customise this workflow

Text summarisation is just one of many techniques to generate image embeddings. If the results are unsatisfactory, there are dedicated image embedding models such as [Google's vertex AI multimodal embeddings](https://cloud.google.com/vertex-ai/generative-ai/docs/embeddings/get-multimodal-embeddings).

⚡ How to import this workflow into n8n:

  1. Click the Direct Download JSON button above to save Generating image embeddings via textual summarisation.json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related RAG & Vector DB Workflows

View All in RAG & Vector DB →