Vector database as a big data analysis tool for AI agents [2/2 KNN]
Ready for 3.0What this workflow does
This workflow has 10 nodes and runs when another workflow calls it. It uses only n8n's built-in nodes. It also calls api.voyageai.com over HTTP.
How it runs
Trigger: When another workflow calls it.
- Image Test URL (Edit Fields (Set)): sets 1 field: imageURL
- Embed image (HTTP Request): calls api.voyageai.com (POST)
- Qdrant variables + embedding + KNN neigbours (Edit Fields (Set)): sets 4 fields: ImageEmbedding, qdrantCloudURL, collectionName…
- Query Qdrant (HTTP Request): calls an HTTP API (POST)
- Propagate loop variables (Edit Fields (Set)): sets 1 field: result
- Majority Vote (Code): runs custom Python code
- Check tie (If): checks a condition and branches into true / false
- Increase limitKNN (Edit Fields (Set)): sets 4 fields: limitKNN, ImageEmbedding, qdrantCloudURL…
- Return class (Edit Fields (Set)): sets 1 field: class
HTTP calls to: api.voyageai.com
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 (5)
- HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger
From the author
Vector Database as a Big Data Analysis Tool for AI Agents Workflows from the webinar "Build production-ready AI Agents with Qdrant and n8n". This series of workflows shows how to build big data analysis tools for production-ready AI agents with the help of…