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

Library / AI Agents & Assistants

AI Agents & Assistants

Detect Crop Anomalies with Qdrant Image Similarity

When another workflow calls it with a crop image, it embeds the image, compares it with cluster medoids in Qdrant and labels the crop as normal or anomalous.

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
  10. Error Handler
  11. Stopanderror 1
  12. Stopanderror 2
  13. Stopanderror 3
  14. Error Handler for b9943781

46 steps in total.

Similar automations