{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-dynamodb/json-schema/amazon-dynamodb-search-vectors-input-schema.json",
  "title": "SearchVectorsInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-dynamodb-operations-api-openapi.yml#/components/schemas/SearchVectorsInput",
  "type": "object",
  "properties": {
    "TableName": {
      "type": "string",
      "description": "The name or Amazon Resource Name (ARN) of the table containing the vector index."
    },
    "IndexName": {
      "type": "string",
      "description": "The name of the vector index to search. The index must be in the ACTIVE state."
    },
    "ReturnConsumedCapacity": {
      "type": "string",
      "enum": [
        "INDEXES",
        "TOTAL",
        "NONE"
      ]
    },
    "ExpressionAttributeNames": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "One or more substitution tokens for attribute names in an expression. Use the # character in an expression to dereference an attribute name."
    },
    "ExpressionAttributeValues": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/AttributeValue"
      },
      "description": "One or more values that can be substituted in an expression. Use the : character in an expression to dereference an attribute value."
    },
    "ProjectionExpression": {
      "type": "string",
      "description": "A string that identifies one or more attributes to retrieve from the index. Separate attribute names with commas. If not specified, the operation returns all attributes projected into the vector index. Only attributes projected into the vector index can be retrieved."
    },
    "SearchVector": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AttributeValue"
      },
      "description": "The search vector to compare against the indexed vectors. Each element is a 32-bit IEEE-754 floating point number, provided in DynamoDB list format. The number of dimensions must match the number of dimensions configured for the vector index."
    },
    "SearchConditionExpression": {
      "type": "string",
      "description": "A condition expression used to filter the vector search results. The expression can reference attributes defined in the vector index search schema, including HASH and INLINE_FILTER key elements. The HASH and INLINE_FILTER attributes support only the equality operator (=). You can reference only top-level attributes from the search schema."
    },
    "TopK": {
      "type": "integer",
      "description": "The number of most similar results to return."
    }
  },
  "required": [
    "TableName",
    "IndexName",
    "SearchVector",
    "TopK"
  ],
  "$defs": {
    "AttributeValue": {
      "type": "object",
      "properties": {
        "S": {
          "type": "string",
          "description": "An attribute of type String. For example: \"S\": \"Hello\""
        },
        "N": {
          "type": "string",
          "description": "An attribute of type Number. For example: \"N\": \"123.45\" Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations."
        },
        "B": {
          "type": "string",
          "format": "byte",
          "description": "An attribute of type Binary. For example: \"B\": \"dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk\""
        },
        "SS": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An attribute of type String Set. For example: \"SS\": [\"Giraffe\", \"Hippo\" ,\"Zebra\"]"
        },
        "NS": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An attribute of type Number Set. For example: \"NS\": [\"42.2\", \"-19\", \"7.5\", \"3.14\"] Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations."
        },
        "BS": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "byte"
          },
          "description": "An attribute of type Binary Set. For example: \"BS\": [\"U3Vubnk=\", \"UmFpbnk=\", \"U25vd3k=\"]"
        },
        "M": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/AttributeValue"
          },
          "description": "An attribute of type Map. For example: \"M\": {\"Name\": {\"S\": \"Joe\"}, \"Age\": {\"N\": \"35\"}}"
        },
        "L": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AttributeValue"
          },
          "description": "An attribute of type List. For example: \"L\": [ {\"S\": \"Cookies\"} , {\"S\": \"Coffee\"}, {\"N\": \"3.14159\"}]"
        },
        "NULL": {
          "type": "boolean",
          "description": "An attribute of type Null. For example: \"NULL\": true"
        },
        "BOOL": {
          "type": "boolean",
          "description": "An attribute of type Boolean. For example: \"BOOL\": true"
        }
      },
      "description": "Exactly one member is set."
    }
  }
}