vectorize_index-query-request

APIs.ioEngineeringPlatform

Properties

Name Type Description
filter object A metadata filter expression used to limit nearest neighbor results.
returnMetadata boolean Whether to return the metadata associated with the closest vectors.
returnValues boolean Whether to return the values associated with the closest vectors.
topK number The number of nearest neighbors to find.
vector array The search vector that will be used to find the nearest neighbors.
View JSON Schema on GitHub

JSON Schema

apis-io-engineering-platform-vectorize-index-query-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/vectorize_index-query-request",
  "title": "vectorize_index-query-request",
  "properties": {
    "filter": {
      "description": "A metadata filter expression used to limit nearest neighbor results.",
      "example": {
        "has_viewed": {
          "$ne": true
        },
        "streaming_platform": "netflix"
      },
      "type": "object"
    },
    "returnMetadata": {
      "default": false,
      "description": "Whether to return the metadata associated with the closest vectors.",
      "type": "boolean"
    },
    "returnValues": {
      "default": false,
      "description": "Whether to return the values associated with the closest vectors.",
      "type": "boolean"
    },
    "topK": {
      "default": 5,
      "description": "The number of nearest neighbors to find.",
      "example": 5,
      "type": "number"
    },
    "vector": {
      "description": "The search vector that will be used to find the nearest neighbors.",
      "example": [
        0.5,
        0.5,
        0.5
      ],
      "items": {
        "type": "number"
      },
      "type": "array"
    }
  },
  "required": [
    "vector"
  ],
  "type": "object"
}