Qdrant icon

Qdrant

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

Search → Matrix Pairs

AI-generated

Overview

This node operation performs a matrix pairs search within a specified collection in Qdrant. It is useful for finding pairs of points in a vector database that satisfy certain conditions, such as similarity or distance metrics. Common scenarios include similarity search in recommendation systems, clustering analysis, or any application requiring pairwise comparison of vector data points.

Use Case Examples

  1. Finding pairs of similar items in a product recommendation system by searching within a specific collection.
  2. Analyzing relationships between data points in a machine learning dataset by filtering and limiting the search results.

Properties

Name Meaning
Collection Name Specifies the name of the collection in which to perform the matrix pairs search. It can be selected from a list or entered by name.
Filter JSON object defining conditions to filter points before performing the search.
Sample Number of points to select and search within from the collection.
Limit Maximum number of matrix pair results to return.
Using Name of the vector to use for querying. If not specified, the default vector is used.
Shard Key JSON object specifying which shards to search within. If not specified, all shards are searched.
Consistency Defines the read consistency guarantees for the operation, such as majority, quorum, or all.
Timeout Overrides the global timeout for this request in seconds.
Request Options Additional request options such as batching, SSL certificate validation, proxy settings, and HTTP timeout.

Output

JSON

  • pairs - Array of matrix pairs found by the search operation, representing pairs of points that satisfy the search criteria.

Dependencies

  • Qdrant REST API

Troubleshooting

  • Ensure the collection name is correct and exists in Qdrant to avoid errors related to missing collections.
  • Validate the JSON format of the filter and shard key inputs to prevent parsing errors.
  • Check network connectivity and API credentials if requests fail or time out.
  • Adjust the timeout and batching settings if the operation takes too long or if rate limits are encountered.

Links

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

Discussion