WorkflowGoogle CloudOpen

[1/3 - anomaly detection] [1/2 - KNN classification] Batch upload dataset to Qdrant (crops dataset)

Triggered manually or by an app event. Connects Code, Condition, Filter, Google Cloud Storage, HTTP request. In the next workflow, we're going to use Qdrant to get the number of images belonging to each crop type defined by cropname (for example, "cucumber"). To get this information about counts in payload fields, we need to create an index on that field to optimise the resources (it needs to be d

Front matter
name: [1/3 - anomaly detection] [1/2 - KNN classification] Batch upload dataset to Qdrant (crops dataset)
description: Triggered manually or by an app event. Connects Code, Condition, Filter, Google Cloud Storage, HTTP request. In the next workflow, we're going to use Qdrant to get the number of images belonging to each crop type defined by `crop_name` (for example, *"cucumber"*). To get this information about counts in payload fields, we need to create an index on that field to optimise the resources (it needs to be done once). That's what is happening here Setting up variables 1) Cloud URL - to connect to Qdrant Cloud (your personal cluster URL) 2) Collection name in Qdrant 3) Size of Voyage embeddings (needed for c
category: Automation
kind: Workflow
software: Code|Condition|Filter|Google Cloud Storage|HTTP request

[1/3 - anomaly detection] [1/2 - KNN classification] Batch upload dataset to Qdrant (crops dataset)

Triggered manually or by an app event. Connects Code, Condition, Filter, Google Cloud Storage, HTTP request. In the next workflow, we're going to use Qdrant to get the number of images belonging to each crop type defined by crop_name (for example, "cucumber"). To get this information about counts in payload fields, we need to create an index on that field to optimise the resources (it needs to be done once). That's what is happening here Setting up variables

  1. Cloud URL - to connect to Qdrant Cloud (your personal cluster URL)
  2. Collection name in Qdrant
  3. Size of Voyage embeddings (needed for c

Steps

  • When clicking ‘Test workflow’ (manualTrigger)
  • Google Cloud Storage (googleCloudStorage)
  • Get fields for Qdrant (set)
  • Qdrant cluster variables (set)
  • Embed crop image (httpRequest)
  • Create Qdrant Collection (httpRequest)
  • Check Qdrant Collection Existence (httpRequest)
  • Batches in the API's format (set)
  • Batch Upload to Qdrant (httpRequest)
  • Split in batches, generate uuids for Qdrant points (code)
  • If collection exists (if)
  • Sticky Note (stickyNote)
  • Payload index on crop_name (httpRequest)
  • Sticky Note1 (stickyNote)
  • Sticky Note2 (stickyNote)
  • Sticky Note3 (stickyNote)
  • Sticky Note4 (stickyNote)
  • Sticky Note5 (stickyNote)
  • Sticky Note6 (stickyNote)
  • Sticky Note7 (stickyNote)
  • Sticky Note9 (stickyNote)
  • Sticky Note11 (stickyNote)
  • Filtering out tomato to test anomalies (filter)
  • Sticky Note8 (stickyNote)
  • Sticky Note10 (stickyNote)

Import

Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).

Source: https://github.com/Zie619/n8n-workflows/blob/main/Code/0341_Code_Filter_Import_Webhook.md

Author: Zie619, n8n workflow collection. License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.