Query point groups
Universally query points and group results by a specified payload field. This endpoint covers all capabilities of search, recommend, discover, filters. But also enables hybrid and multi-stage queries.
Path parameters
collection_name
Name of the collection to query
Headers
api-key
Query parameters
consistency
Define read consistency guarantees for the operation
timeout
If set, overrides global timeout for this request. Unit is seconds.
Request
This endpoint expects an object.
group_by
Payload field to group by, must be a string or number field. If the field contains more than 1 value, all values will be used for grouping. One point can be in multiple groups.
shard_key
prefetch
Sub-requests to perform first. If present, the query will be performed on the results of the prefetch(es).
query
Query to perform. If missing without prefetches, returns points ordered by their IDs.
using
Define which vector name to use for querying. If missing, the default vector is used.
filter
Filter conditions - return only those points that satisfy the specified conditions.
params
Search params for when there is no prefetch
score_threshold
Return points with scores better than this threshold.
with_vector
Options for specifying which vectors to include into the response. Default is false.
with_payload
Options for specifying which payload to include or not. Default is false.
lookup_from
The location to use for IDs lookup, if not specified - use the current collection and the ‘using’ vector Note: the other collection vectors should have the same vector size as the ‘using’ vector in the current collection
group_size
Maximum amount of points to return per group. Default is 3.
limit
Maximum amount of groups to return. Default is 10.
with_lookup
Look for points in another collection using the group ids
Response
successful operation
time
Time spent to process this request
status
result