ChatGPT · Schema

Annotation

AgentsAIChatGPTEmbeddingsFine-TuningGPT-4GPT-5Language ModelOpenAIRealtime

Properties

Name Type Description
type string The type of annotation.
start_index integer The start index of the annotation in the text.
end_index integer The end index of the annotation in the text.
url string The URL cited. Present for url_citation type.
title string The title of the cited resource.
file_id string The ID of the cited file. Present for file_citation and file_path types.
quote string The relevant quote from the file.
View JSON Schema on GitHub

JSON Schema

chatgpt-annotation-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Annotation",
  "title": "Annotation",
  "type": "object",
  "required": [
    "type"
  ],
  "properties": {
    "type": {
      "type": "string",
      "description": "The type of annotation.",
      "enum": [
        "url_citation",
        "file_citation",
        "file_path"
      ],
      "example": "url_citation"
    },
    "start_index": {
      "type": "integer",
      "description": "The start index of the annotation in the text.",
      "example": 10
    },
    "end_index": {
      "type": "integer",
      "description": "The end index of the annotation in the text.",
      "example": 10
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "The URL cited. Present for url_citation type.",
      "example": "https://www.example.com"
    },
    "title": {
      "type": "string",
      "description": "The title of the cited resource.",
      "example": "Example Title"
    },
    "file_id": {
      "type": "string",
      "description": "The ID of the cited file. Present for file_citation and\nfile_path types.\n",
      "example": "500123"
    },
    "quote": {
      "type": "string",
      "description": "The relevant quote from the file.",
      "example": "example_value"
    }
  }
}