{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/DocumentSimilarityQuery",
  "title": "DocumentSimilarityQuery",
  "additionalProperties": false,
  "properties": {
    "dateRange": {
      "$ref": "#/components/schemas/DateRange"
    },
    "distance_func": {
      "$ref": "#/components/schemas/DistanceFunc"
    },
    "document_types": {
      "items": {
        "type": "string"
      },
      "title": "Document Types",
      "type": "array"
    },
    "kind": {
      "default": "DocumentSimilarityQuery",
      "title": "Kind",
      "type": "string",
      "enum": [
        "DocumentSimilarityQuery"
      ]
    },
    "limit": {
      "default": null,
      "title": "Limit",
      "type": "integer",
      "nullable": true
    },
    "model": {
      "title": "Model",
      "type": "string"
    },
    "modifiers": {
      "default": null,
      "description": "Modifiers used when performing the query",
      "allOf": [
        {
          "$ref": "#/components/schemas/HogQLQueryModifiers"
        }
      ],
      "nullable": true
    },
    "offset": {
      "default": null,
      "title": "Offset",
      "type": "integer",
      "nullable": true
    },
    "order_by": {
      "$ref": "#/components/schemas/OrderBy"
    },
    "order_direction": {
      "$ref": "#/components/schemas/OrderDirection1"
    },
    "origin": {
      "$ref": "#/components/schemas/EmbeddedDocument"
    },
    "products": {
      "items": {
        "type": "string"
      },
      "title": "Products",
      "type": "array"
    },
    "renderings": {
      "items": {
        "type": "string"
      },
      "title": "Renderings",
      "type": "array"
    },
    "response": {
      "default": null,
      "allOf": [
        {
          "$ref": "#/components/schemas/DocumentSimilarityQueryResponse"
        }
      ],
      "nullable": true
    },
    "tags": {
      "default": null,
      "allOf": [
        {
          "$ref": "#/components/schemas/QueryLogTags"
        }
      ],
      "nullable": true
    },
    "threshold": {
      "default": null,
      "title": "Threshold",
      "type": "number",
      "nullable": true
    },
    "version": {
      "default": null,
      "description": "version of the node, used for schema migrations",
      "title": "Version",
      "type": "number",
      "nullable": true
    }
  },
  "required": [
    "dateRange",
    "distance_func",
    "document_types",
    "model",
    "order_by",
    "order_direction",
    "origin",
    "products",
    "renderings"
  ],
  "type": "object"
}