{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oceantoken-ai/json-schema/oceantoken-ai-post-v1-rerank-request-schema.json",
  "title": "PostV1RerankRequest",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/oceantoken-ai-openapi-generated.yml#/components/schemas/PostV1RerankRequest",
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "The query to rank documents against."
    },
    "documents": {
      "type": "array",
      "description": "List of documents to be ranked."
    },
    "top_n": {
      "type": "integer",
      "description": "Number of top results to return."
    }
  },
  "required": [
    "query",
    "documents"
  ]
}