{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle-database/json-schema/oracle-database-vector-rerank-request-schema.json",
  "title": "VectorRerankRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-database-vector-database-inference-operations-api-openapi.yml#/components/schemas/VectorRerankRequest",
  "type": "object",
  "required": [
    "query",
    "documents",
    "modelName"
  ],
  "properties": {
    "query": {
      "type": "string",
      "description": "Natural language query to use for reranking."
    },
    "documents": {
      "type": "array",
      "description": "Array of raw document strings to score.",
      "minItems": 1,
      "items": {
        "type": "string"
      }
    },
    "modelName": {
      "type": "string",
      "description": "The name of the ONNX reranking model hosted in the database."
    },
    "modelParams": {
      "type": "object",
      "description": "Model-specific parameters.",
      "additionalProperties": true,
      "properties": {
        "provider": {
          "type": "string",
          "description": "Optional model provider (e.g., 'database')."
        }
      }
    },
    "debugFlags": {
      "$ref": "#/$defs/VectorDebugFlags"
    }
  },
  "$defs": {
    "VectorDebugFlags": {
      "type": "object",
      "description": "Debug flags to be used to trace vector modules",
      "properties": {
        "VECTOR_INDEX": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "VECTOR_INDEX_NEIGHBOR_GRAPH": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "VECTOR_INDEX_NEIGHBOR_GRAPH_BUILD": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "VECTOR_INDEX_NEIGHBOR_GRAPH_MEM": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "VECTOR_INDEX_NEIGHBOR_GRAPH_SEARCH": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "VECTOR_INDEX_NEIGHBOR_GRAPH_APPCHNG": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "VECTOR_INDEX_NEIGHBOR_GRAPH_STATS": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "VECTOR_INDEX_NEIGHBOR_PARTITIONS": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "VECTOR_INDEX_FIXED_VIEW": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "VECIDX_TRANS": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "VECIDX_TRANS_COM": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "VECIDX_TRANS_PJ": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "VECIDX_TRANS_PJ_DWNGRD": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "VECIDX_TRANS_PJ_GROW": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "VECIDX_TRANS_SJ": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "VECIDX_TRANS_SJ_BG": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "VEC_INDEX_CALIBRATION": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "VECTOR_TRACE": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        }
      }
    }
  }
}