Properties
| Name | Type | Description |
|---|---|---|
| prefetch | object | Sub-requests to perform first. If present, the query will be performed on the results of the prefetches. |
| query | object | Query to perform. If missing without prefetches, returns points ordered by their IDs. |
| using | string | Define which vector name to use for querying. If missing, the default vector is used. |
| filter | object | Filter conditions - return only those points that satisfy the specified conditions. |
| params | object | Search params for when there is no prefetch |
| score_threshold | number | Return points with scores better than this threshold. |
| limit | integer | Max number of points to return. Default is 10. |
| lookup_from | object | 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 th |
JSON Schema
{
"$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
}
]
}
}
}