# Index Crop Images in Qdrant

Source: https://openflow.run/en/templates/index-crop-images-in-qdrant/
Content language: en
Template revision: 4ae2934012d3865e7d296909b9a06728464f1991

AI

Create image embeddings for a Cloud Storage dataset and upsert them into Qdrant.

[Use in Open Flow](https://console.openflow.run/flows?importUrl=https%3A%2F%2Fraw.githubusercontent.com%2Foomol-lab%2Fawesome-workflow-templates%2F4ae2934012d3865e7d296909b9a06728464f1991%2Fworkflows%2Findex-crop-images-in-qdrant%2Ftemplates%2Findex-crop-images-in-qdrant.openflow.json)

*   [Open Flow JSON](https://github.com/oomol-lab/awesome-workflow-templates/blob/4ae2934012d3865e7d296909b9a06728464f1991/workflows/index-crop-images-in-qdrant/templates/index-crop-images-in-qdrant.openflow.json)
*   [n8n JSON](https://github.com/oomol-lab/awesome-workflow-templates/blob/4ae2934012d3865e7d296909b9a06728464f1991/workflows/index-crop-images-in-qdrant/templates/index-crop-images-in-qdrant.n8n.json)

![Index Crop Images in Qdrant workflow in Open Flow](https://openflow.run/template-previews/index-crop-images-in-qdrant/light.webp)

Embed a Cloud Storage image dataset and index the results in Qdrant.

## Setup

Connect Qdrant Cloud and select a Google Cloud STS Workload Identity Connection in **List the next image page** with permission to list objects. Bind the **Embed crop images with Voyage** key input to the secret Variable `VOYAGE_API_KEY`. Enter a bucket, prefix and Qdrant collection. Image objects must be publicly readable by Voyage. Images are grouped by their parent folder; tomato is excluded for the source anomaly-detection example.

## Behavior

Cloud Storage pages of four are embedded with Voyage multimodal-3 and written as named `voyage` vectors with crop and image URL payloads. A new collection receives a cosine 1024-dimensional named vector and a crop index. Existing collections must already have that vector and index. Point IDs are derived from image URLs so retrying replaces the same points. A changed image at the same URL replaces its old vector. A run that stops can be restarted; check the collection after an uncertain create or write. Token and API access require appropriate permissions, and images are sent to Voyage.

In n8n

In n8n, configure the Google Cloud Storage, Voyage and Qdrant credentials and the bucket, prefix and collection nodes. Use one format at a time.

Inspiration & credits

The import follows the source crop dataset example. It pages Cloud Storage, checks vector counts, and uses stable point IDs for safe retries.

Adapted from [Batch Uploading Dataset to Qdrant](https://github.com/Zie619/n8n-workflows/blob/ae8cf6dc5b873cbb4f74587aa9180ed3a9f70682/workflows/Code/1728_Code_Filter_Import_Webhook.json) in [Zie619/n8n-workflows](https://github.com/Zie619/n8n-workflows). Attribution: Zie619 / n8n-workflows.

The collection’s [MIT notice](https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/LICENSE) is pinned at a later revision. This is the collection notice at that revision; it does not establish a separate original template author’s license. Our changes are listed above; see [repository licensing](https://github.com/oomol-lab/awesome-workflow-templates/blob/4ae2934012d3865e7d296909b9a06728464f1991/README.md#licensing).

> MIT License
> 
> Copyright (c) 2025 Zie619
> 
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
> 
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
> 
> THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

## Apps used

*   [**Google Cloud STS**`gcloud_sts`](https://openflow.run/en/integrations/gcloud_sts/)
*   [**Qdrant Cloud**`qdrant`](https://openflow.run/en/integrations/qdrant/)

## What you’ll need

*   Google Cloud workload identity with storage.objects.list
*   Voyage AI API key
*   Qdrant Cloud connection

*   google cloud
*   qdrant
*   embeddings
*   images

[View on GitHub](https://github.com/oomol-lab/awesome-workflow-templates/blob/4ae2934012d3865e7d296909b9a06728464f1991/workflows/index-crop-images-in-qdrant/README.md)
