Dagweave catalog

Upsert a vector to a vector DB

vector-upsertv1.0.2updated 2026-09-123 versions

Upsert a single vector (with an id and JSON metadata payload) into a vector database via its REST API. Targets the Qdrant points-upsert API (PUT /collections/<collection>/points, `api-key` header); the request body is assembled with jq. The API key is read from a Kubernetes Secret.

Install v1.0.2

Installs the template into your Argo namespace. The URL is pinned to this version.

kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/vector-upsert/1.0.2/template.yaml

Or with the Argo CLI:

argo template create -n argo https://catalog.dagweave.com/api/v1/items/vector-upsert/1.0.2/template.yaml

Facts

Category
AI
Tags
ai curl-jq
Entrypoint
upsert
Template SHA-256
c866b2f6c0ac7047bc8d95f5c84fac0cceda7ca0653c2960fe39b580c4c7fe31
Source
vector-upsert at catalog commit 67458f7
API
item document, latest template.yaml

Images and provenance

Every image is pinned by digest, so a rebuilt tag can never change what this version runs.

RepositoryTagDigest
badouralix/curl-jqnone recordedsha256:38362e9b8ef4bd09a88c0db07941e61e0bf0f7240e9f36a3ff2c31ad75546be2

Parameters

NameDescriptionDefault
endpoint required Full Qdrant collection points URL.
Example https://my-cluster.qdrant.io:6333/collections/docs/points
none
id required Point id (string or UUID).
Example doc-123
none
vector-json required JSON array of floats, the embedding vector.
Example [0.12, -0.03, 0.98]
none
api-key-secret-key Key within the Secret that holds the API key. api-key
api-key-secret-name Name of the Kubernetes Secret holding the Qdrant API key. vector-db-api-key
metadata-json JSON object of point metadata (Qdrant payload).
Example {"source":"docs","page":3}
{}

WorkflowTemplate

Download template.yaml

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
  name: vector-upsert
  labels:
    dagweave.io/catalog-item: vector-upsert
  annotations:
    # The catalog semver this manifest was authored at. The dagweave app records
    # (catalog-item-id, semver) -> content-hash -> base-vN when it mints the tenant
    # cluster name via ResolveOrMint. Keep in sync with metadata.yaml `version`.
    dagweave.io/catalog-version: "1.0.2"
    dagweave.io/catalog-category: "AI"
spec:
  entrypoint: upsert
  templates:
    - name: upsert
      inputs:
        parameters:
          # Full Qdrant collection points URL, e.g.
          # https://<host>:6333/collections/<collection>/points.
          - name: endpoint
          # Point id (string or UUID).
          - name: id
          # JSON array of floats — the embedding vector.
          - name: vector-json
          # JSON object of point metadata (Qdrant payload). Defaults to empty object.
          - name: metadata-json
            default: "{}"
          # Name/key of a Kubernetes Secret holding the Qdrant API key (sent as the
          # `api-key` header).
          - name: api-key-secret-name
            default: vector-db-api-key
          - name: api-key-secret-key
            default: api-key
      container:
        # Pinned by digest per the catalog convention: an image rebuild can never
        # silently change the behaviour of an already-released item version.
        # badouralix/curl-jq:ubuntu — provides sh, curl and jq.
        image: badouralix/curl-jq@sha256:38362e9b8ef4bd09a88c0db07941e61e0bf0f7240e9f36a3ff2c31ad75546be2
        command: [sh, -c]
        # Values are passed as env vars (below), never interpolated into the shell.
        # jq assembles the Qdrant upsert body {points:[{id, vector, payload}]} with
        # --arg / --argjson so the vector and metadata JSON are embedded verbatim and
        # the id is escaped correctly. Qdrant authenticates via the `api-key` header.
        args:
          - |
            set -eu
            BODY=$(jq -cn \
              --arg id "${POINT_ID}" \
              --argjson vec "${VECTOR}" \
              --argjson payload "${METADATA}" \
              '{points: [{id: $id, vector: $vec, payload: $payload}]}')
            curl -sSf -X PUT "${ENDPOINT}" \
              -H "Content-Type: application/json" \
              -H "api-key: ${API_KEY}" \
              --data-raw "${BODY}"
        env:
          - name: ENDPOINT
            value: "{{inputs.parameters.endpoint}}"
          - name: POINT_ID
            value: "{{inputs.parameters.id}}"
          - name: VECTOR
            value: "{{inputs.parameters.vector-json}}"
          - name: METADATA
            value: "{{inputs.parameters.metadata-json}}"
          - name: API_KEY
            valueFrom:
              secretKeyRef:
                name: "{{inputs.parameters.api-key-secret-name}}"
                key: "{{inputs.parameters.api-key-secret-key}}"

Version history

Read from the item's changelog. Each version has its own JSON document; the pinned catalogue vendors the manifest of the latest one, so that is the version that installs.

  1. 1.0.2 latest 2026-09-12

    Move to badouralix/curl-jq:ubuntu. The Alpine build this pinned carries two jq advisories on the path this item takes, and its publisher has not rebuilt it since 1 July. The ubuntu tag has neither, and fixable CRITICAL/HIGH drops from 4 to 2. It is Ubuntu 24.04 rather than Alpine, so sh is dash rather than busybox ash, curl goes back from 8.21.0 to 8.5.0 and jq from 1.8.1 to 1.7.1. Still runs as root.

    kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/vector-upsert/1.0.2/template.yaml
    argo template create -n argo https://catalog.dagweave.com/api/v1/items/vector-upsert/1.0.2/template.yaml

    version document, template.yaml

  2. 1.0.1 2026-08-02

    Swap the abandoned dwdraju/alpine-curl-jq, last built 2025-02-21, for badouralix/curl-jq, which is still being rebuilt. Fixable CRITICAL/HIGH drops from 19 to 1. Same Alpine base, same root user, same /bin/sh default command; curl goes 8.12.1 to 8.21.0 and jq 1.7.1 to 1.8.1.

    This release is documented, but its manifest is not vendored here, so it has no install command. Version document

  3. 1.0.0 2026-07-17

    Initial release.

    This release is documented, but its manifest is not vendored here, so it has no install command. Version document

Run it once

After installing, from the command line.

argo submit -n argo --from workflowtemplate/vector-upsert \
  -p endpoint=https://my-cluster.qdrant.io:6333/collections/docs/points \
  -p id=doc-123 \
  -p vector-json='[0.12, -0.03, 0.98]'

Workflow that references it

A Workflow with the required parameters filled from the examples.

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: vector-upsert-
spec:
  workflowTemplateRef:
    name: vector-upsert
  arguments:
    parameters:
      - name: endpoint
        value: "https://my-cluster.qdrant.io:6333/collections/docs/points"
      - name: id
        value: "doc-123"
      - name: vector-json
        value: "[0.12, -0.03, 0.98]"

As a step of a larger workflow

steps:
  - - name: vector-upsert
      templateRef:
        name: vector-upsert
        template: upsert