{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vectorpanda-com/json-schema/vectorpanda-com-query-response-schema.json",
  "title": "QueryResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vectorpanda-com-openapi.yml#/components/schemas/QueryResponse",
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/QueryResult"
      }
    },
    "worker_stats": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WorkerStats"
      }
    }
  },
  "$defs": {
    "QueryResult": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "Vector key (u128 decimal string)"
        },
        "score": {
          "type": "number",
          "format": "float",
          "description": "Similarity score"
        },
        "metadata": {
          "type": "object",
          "additionalProperties": true,
          "description": "Metadata fields (only present when include_metadata=true)"
        }
      }
    },
    "WorkerStats": {
      "type": "object",
      "properties": {
        "worker_id": {
          "type": "string"
        },
        "search_time_ms": {
          "type": "integer"
        },
        "vectors_scanned": {
          "type": "integer"
        }
      }
    }
  }
}