Skip to main content

Vector database as a big data analysis tool for AI agents [2/3 - anomaly]

Workflow preview

Workflow preview
100%
Vector database as a big data analysis tool for AI agents [2/3 - anomaly] preview
Open on n8n.io

Important notice

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

1. Workflow Overview

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 seri...

Best for

  • Engineering automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.set, n8n-nodes-base.splitout, n8n-nodes-base.merge, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Vector database as a big data analysis tool for AI agents [2/3 - anomaly]
Workflow name
Vector database as a big data analysis tool for AI agents [2/3 - anomaly]

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 vector databases. These pipelines are adaptable to any dataset of images, hence, many production use cases.

  1. Uploading (image) datasets to Qdrant
  2. Set up meta-variables for anomaly detection in Qdrant
  3. Anomaly detection tool
  4. KNN classifier tool

For anomaly detection

  1. The first pipeline to upload an image dataset to Qdrant. 2. This is the second pipeline to set up cluster (class) centres & cluster (class) threshold scores needed for anomaly detection.
  2. The third is the anomaly detection tool, which takes any image as input and uses all preparatory work done with Qdrant to detect if it's an anomaly to the uploaded dataset.

For KNN (k nearest neighbours) classification

  1. The first pipeline to upload an image dataset to Qdrant.
  2. The second is the KNN classifier tool, which takes any image as input and classifies it on the uploaded to Qdrant dataset.

To recreate both

You'll have to upload crops and lands datasets from Kaggle to your own Google Storage bucket, and re-create APIs/connections to Qdrant Cloud (you can use Free Tier cluster), Voyage AI API & Google Cloud Storage.

[This workflow] Setting Up Cluster (Class) Centres & Cluster (Class) Threshold Scores for Anomaly Detection

Preparatory workflow to set cluster centres and cluster threshold scores so anomalies can be detected based on these thresholds. Here, we're using two approaches to set up these centres: the "distance matrix approach" and the "multimodal embedding model approach".

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 ‘Test workflow’

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

Block 2 - Total Points in Collection

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

Block 3 - Cluster Distance Matrix

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

Block 4 - Scipy Sparse Matrix

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Set medoid id

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

Block 6 - Get Medoid Vector

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

Block 7 - Prepare for Searching Threshold

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

Block 8 - Searching Score

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

Block 9 - Threshold Score

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

Block 10 - Set medoid threshold score

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

Block 11 - Split Out1

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

Block 12 - Merge

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

Block 13 - Textual (visual) crop descriptions

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

Block 14 - Embed text

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

Block 15 - Get Medoid by Text

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

Block 16 - Set text medoid id

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

Block 17 - Prepare for Searching Threshold1

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

Block 18 - Threshold Score1

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

Block 19 - Searching Text Medoid Score

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

Block 20 - Medoids Variables

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

Block 21 - Text Medoids Variables

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

Block 22 - Qdrant cluster variables

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

Block 23 - Info About Crop Clusters

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

Block 24 - Crop Counts

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

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

3. Summary Table

Workflow Vector database as a big data analysis tool for AI agents [2/3 - anomaly]
Complexity advanced
Nodes 48
Categories Engineering, AI Summarization
Author Jenny
Published 19 Dec 2024

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2655/2655.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 Vector database as a big data analysis tool for AI agents [2/3 - anomaly] do?

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 seri...

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 Engineering, AI Summarization use case.