{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Finds vectors closest to a given vector in an index.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/vectorize_identifier"},"index_name":{"$ref":"#/definitions/vectorize_index-name"}},"required":["account_id","index_name"],"additionalProperties":false},"body":{"$ref":"#/definitions/vectorize_index-query-v2-request"}},"required":["path","body"],"additionalProperties":false,"definitions":{"vectorize_identifier":{"description":"Identifier","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"vectorize_index-name":{"type":"string","pattern":"^([a-z]+[a-z0-9_-]*[a-z0-9]+)$","examples":["example-index"]},"vectorize_index-query-v2-request":{"type":"object","properties":{"filter":{"description":"A metadata filter expression used to limit nearest neighbor results.","type":"object","examples":[{"has_viewed":{"$ne":true},"streaming_platform":"netflix"}]},"returnMetadata":{"description":"Whether to return no metadata, indexed metadata or all metadata associated with the closest vectors.","type":"string","default":"none","enum":["none","indexed","all"]},"returnValues":{"description":"Whether to return the values associated with the closest vectors.","type":"boolean","default":false},"topK":{"description":"The number of nearest neighbors to find.","type":"number","default":5,"examples":[5]},"vector":{"description":"The search vector that will be used to find the nearest neighbors.","type":"array","items":{"type":"number"},"examples":[[0.5,0.5,0.5]]}},"required":["vector"]}}},"name":"Query Vectors","id":"cloudflare.vectorize-query-vector","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353","index_name":"example-index"},"body":{"vector":[0.5,0.5,0.5]}},"maxRequests":1,"summary":false}}