Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Building Blocks & Utilities

Building Blocks & Utilities

Detect Anomalous Crop Images with Voyage.ai Embeddings and Qdrant

Reusable sub-workflow called by other workflows. Takes an image URL, creates Voyage.ai embeddings, and checks them against Qdrant crop class thresholds to flag anomalous crops.

What it does

## Crop Anomaly Detection Tool ### This is the tool that can be used directly for anomalous crops detection. It takes as input (any) image URL and returns a text message telling if whatever this image depicts is anomalous to the crop dataset stored in Qdrant. * An Image URL is received via the Execute Workflow Trigger which is used to generate embedding vectors via the Voyage.ai Embeddings API. * The returned vectors are used to query the Qdrant collection to determine if the given crop is known by comparing it to threshold scores of each image class (crop type). * If the image scores lower than all thresholds, then the image is considered an anomaly for the dataset.

The steps

  1. Embed image
  2. Get similarity of medoids
  3. Compare scores
  4. Variables for medoids
  5. Info About Crop Labeled Clusters
  6. Total Points in Collection
  7. Each Crop Counts
  8. Image URL hardcode
  9. Execute Workflow Trigger

Similar automations