{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/Prefetch", "title": "Prefetch", "type": "object", "properties": { "prefetch": { "description": "Sub-requests to perform first. If present, the query will be performed on the results of the prefetches.", "default": null, "anyOf": [ { "$ref": "#/components/schemas/Prefetch" }, { "type": "array", "items": { "$ref": "#/components/schemas/Prefetch" } }, { "nullable": true } ] }, "query": { "description": "Query to perform. If missing without prefetches, returns points ordered by their IDs.", "anyOf": [ { "$ref": "#/components/schemas/QueryInterface" }, { "nullable": true } ] }, "using": { "description": "Define which vector name to use for querying. If missing, the default vector is used.", "type": "string", "nullable": true }, "filter": { "description": "Filter conditions - return only those points that satisfy the specified conditions.", "anyOf": [ { "$ref": "#/components/schemas/Filter" }, { "nullable": true } ] }, "params": { "description": "Search params for when there is no prefetch", "anyOf": [ { "$ref": "#/components/schemas/SearchParams" }, { "nullable": true } ] }, "score_threshold": { "description": "Return points with scores better than this threshold.", "type": "number", "format": "float", "nullable": true }, "limit": { "description": "Max number of points to return. Default is 10.", "type": "integer", "format": "uint", "minimum": 1, "nullable": true }, "lookup_from": { "description": "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", "default": null, "anyOf": [ { "$ref": "#/components/schemas/LookupLocation" }, { "nullable": true } ] } } }