Vector Store icon

Vector Store

Store, search and manage vectors on the n8n host filesystem via js-vector-store

Count

AI-generated

Summary

Counts the vectors in the specified collection in the local vector store. Enable Read Only to reject write operations while allowing this count.

Inputs

  • Read Only — Defaults to false. When enabled, rejects write operations; Count remains allowed.
  • Collection (required) — Name of the collection to count.

Output shape

A list containing one item per input item, with a single record containing collection and count.

The count is the number of vectors in the collection. With Continue On Fail enabled, errors are returned as items with an error field.

Links

Discussion