Skip to main content

Vision RAG and image embeddings using Cohere Command-A and Embed v4

Workflow preview

Workflow preview
100%
Vision RAG and image embeddings using Cohere Command-A and Embed v4 preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Cohere's new multimodal model releases make building your own Vision RAG agents a breeze. If you're new to Multimodal RAG and for the intent of this template, it means to embed and retrieve only do...

Best for

  • Document Extraction automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.splitout, n8n-nodes-base.aggregate, n8n-nodes-qdrant.qdrant, n8n-nodes-base.splitinbatches, n8n-nodes-base.noop

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Jimleuk.

Original n8n.io source

1.1 Workflow description

Title
Vision RAG and image embeddings using Cohere Command-A and Embed v4
Workflow name
Vision RAG and image embeddings using Cohere Command-A and Embed v4

Cohere's new multimodal model releases make building your own Vision RAG agents a breeze. If you're new to Multimodal RAG and for the intent of this template, it means to embed and retrieve only document scans relevant to a query and then have a vision model read those scans to answer.

The benefits being (1) the vision model doesn't need to keep all document scans in context (expensive) and (2) ability to query on graphical content such as charts, graphs and tables.

How it works

  • Page extracts from a technology report containing graphs and charts are downloaded, converted to base64 and embedded using Cohere's Embed v4 model.
  • This produces embedding vectors which we will associate with the original page url and store them in our Qdrant vector store collection using the Qdrant community node.
  • Our Vision RAG agent is split into 2 parts; one regular AI agent for chat and a second Q&A agent powered by Cohere's Command-A-vision model which is required to read contents of images.
  • When a query requires access to the technology report, the Q&A agent branch is activated. This branch performs a vector search on our image embeddings and returns a list of matching image urls. These urls are then used as input for our vision model along with the user's original query.
  • The Q&A vision agent can then reply to the user using the "respond to chat" node.
  • Because both agents share the same memory space, it would be the same conversation to the user.

How to use

  • Ensure you have a Cohere account and sufficient credit to avoid rate limit or token usage restrictions.
  • For embeddings, swap out the page extracts for your own. You may need to split and convert document pages to images if you want to use image embeddings.
  • For chat, you may want to structure the agent(s) in another way which makes sense for your environment eg. using MCP servers.

Requirements

  • Cohere account for Embeddings and LLM
  • Qdrant for vector store

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Technology and Innovation Report 2025

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - Download Page

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - Split Out Urls

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 5 - Image Embeddings with Cohere Embed 4

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 6 - Prepare Points

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 7 - Aggregate Points

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 8 - Insert Points

Type / Role
n8n-nodes-qdrant.qdrant - qdrant
Config choices
Version 1

Block 9 - Batch 5

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 10 - Page Ref

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 11 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.3

Block 12 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 13 - If has Tool Call?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 14 - Respond to Chat

Type / Role
@n8n/n8n-nodes-langchain.chat - chat
Config choices
Version 1

Block 15 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 16 - Respond to Chat1

Type / Role
@n8n/n8n-nodes-langchain.chat - chat
Config choices
Version 1

Block 17 - Simple Memory1

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 18 - Technology Innovation Report Tool

Type / Role
@n8n/n8n-nodes-langchain.toolCode - toolCode
Config choices
Version 1.3

Block 19 - Image Understanding via Command-A-Vision

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 20 - Chat Model via Command-R

Type / Role
@n8n/n8n-nodes-langchain.lmChatCohere - lmChatCohere
Config choices
Version 1

Block 21 - Get Query

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 22 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Convert Image to Base64

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1

Showing the first 24 of 38 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Vision RAG and image embeddings using Cohere Command-A and Embed v4
Complexity advanced
Nodes 38
Categories Document Extraction, AI RAG
Author Jimleuk
Published 04 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6961/6961.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Vision RAG and image embeddings using Cohere Command-A and Embed v4 do?

Cohere's new multimodal model releases make building your own Vision RAG agents a breeze. If you're new to Multimodal RAG and for the intent of this template, it means to embed and retrieve only do...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction, AI RAG use case.