Qdrant icon

Qdrant

Official n8n node to interface with Qdrant - https://qdrant.tech

Point → Count Points

AI-generated

Overview

This node operation counts the number of points in a specified collection within Qdrant. It allows filtering points based on conditions, choosing between exact or approximate counts, specifying shards to search in, and setting a timeout for the request. This is useful for scenarios where you need to know the quantity of data points matching certain criteria in a vector search database, such as analytics, monitoring, or data validation.

Use Case Examples

  1. Counting the exact number of points in a collection named 'user_vectors' that match a specific filter condition.
  2. Getting an approximate count of points quickly during indexing to monitor data ingestion progress.

Properties

Name Meaning
Collection Name Specifies the collection in which to count points. Can be selected from a list or entered by name.
Filter JSON filter to select only points that satisfy certain conditions.
Exact Boolean flag to choose between exact count (true) or faster approximate count (false). Approximate count may be unreliable during indexing.
Shard Key JSON specifying which shards to look for points in. If not specified, all shards are searched.
Timeout Number of seconds to wait before the request times out.
Request Options Additional request settings such as batching, SSL certificate validation, proxy, and HTTP timeout.

Output

JSON

  • count - The number of points matching the filter criteria in the specified collection.

Dependencies

  • Qdrant REST API

Troubleshooting

  • Ensure the collection name is correct and exists in Qdrant to avoid errors.
  • Verify the filter JSON syntax is valid to prevent request failures.
  • If using approximate count, be aware that results may be unreliable during indexing.
  • Check network connectivity and proxy settings if requests time out or fail.
  • If SSL issues occur, consider enabling the option to ignore SSL certificate validation, but be cautious about security risks.

Links

  • Qdrant Documentation - Official documentation for Qdrant, providing details on collections, points, and API usage.

Discussion