{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Creates and returns a new Vectorize Index.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/vectorize_identifier"}},"required":["account_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/vectorize_create-index-request"}},"required":["path","body"],"additionalProperties":false,"definitions":{"vectorize_identifier":{"description":"Identifier","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"vectorize_create-index-request":{"type":"object","properties":{"config":{"allOf":[{"$ref":"#/definitions/vectorize_index-configuration"}]},"description":{"$ref":"#/definitions/vectorize_index-description"},"name":{"$ref":"#/definitions/vectorize_index-name"}},"required":["name","config"]},"vectorize_index-configuration":{"description":"Specifies the type of configuration to use for the index.","oneOf":[{"$ref":"#/definitions/vectorize_index-dimension-configuration"},{"$ref":"#/definitions/vectorize_index-preset-configuration"}]},"vectorize_index-description":{"description":"Specifies the description of the index.","type":"string","examples":["This is my example index."]},"vectorize_index-name":{"type":"string","pattern":"^([a-z]+[a-z0-9_-]*[a-z0-9]+)$","examples":["example-index"]},"vectorize_index-dimension-configuration":{"type":"object","properties":{"dimensions":{"$ref":"#/definitions/vectorize_index-dimensions"},"metric":{"$ref":"#/definitions/vectorize_index-metric"}},"required":["dimensions","metric"]},"vectorize_index-preset-configuration":{"type":"object","properties":{"preset":{"$ref":"#/definitions/vectorize_index-preset"}},"required":["preset"]},"vectorize_index-dimensions":{"description":"Specifies the number of dimensions for the index","type":"integer","maximum":1536,"minimum":1,"examples":[768]},"vectorize_index-metric":{"description":"Specifies the type of metric to use calculating distance.","type":"string","enum":["cosine","euclidean","dot-product"]},"vectorize_index-preset":{"description":"Specifies the preset to use for the index.","type":"string","enum":["@cf/baai/bge-small-en-v1.5","@cf/baai/bge-base-en-v1.5","@cf/baai/bge-large-en-v1.5","openai/text-embedding-ada-002","cohere/embed-multilingual-v2.0"],"examples":["@cf/baai/bge-small-en-v1.5"]}}},"name":"Create Vectorize Index","id":"cloudflare.vectorize-create-vectorize-index","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{"name":"example-index","config":{"dimensions":768,"metric":"cosine"}}},"maxRequests":1,"summary":false}}