Skip to content
OATSCHEMA

Docs / Schemas / embedding / 0.1.2

Embedding 0.1.2

Store a vector and (optionally) the algorithm or embedding model which generated it.

This is an older version of embedding.

The latest version is 0.8.0. Releases before 0.7.0 use the $id https://dorsalhub.com/schemas/open/embedding and are served by DorsalHub.

$id
https://dorsalhub.com/schemas/open/embedding
Latest
https://oatschema.org/embedding
Versions
Source
v0.1.2 on GitHub

Schema

embedding.json Raw
{    "_license": {        "id": "Apache-2.0",        "notice": "Copyright 2025 Dorsal Hub LTD",        "url": "https://github.com/dorsalhub/open-validation-schemas/blob/main/LICENSE"    },    "$schema": "https://json-schema.org/draft/2020-12/schema",    "$id": "https://dorsalhub.com/schemas/open/embedding",    "title": "Embedding",    "version": "0.1.2",    "description": "Store a vector and (optionally) the algorithm or embedding model which generated it.",    "type": "object",    "properties": {        "model": {            "type": "string",            "description": "The model, tool or algorithm used to create this embedding.",            "maxLength": 1024        },        "target": {            "type": "string",            "description": "The name of the variable or feature being embedded (e.g., 'description_text', 'query').",            "maxLength": 128        },        "vector": {            "type": "array",            "description": "Embedding vector. Its length represents its dimensionality.",            "items": {                "type": "number"            },            "minItems": 1,            "maxItems": 16384        },        "attributes": {            "type": "object",            "description": "Arbitrary metadata relevant to this embedding.",            "maxProperties": 16,            "additionalProperties": {                "anyOf": [                    {                        "type": "string",                        "maxLength": 1024                    },                    {                        "type": "number"                    },                    {                        "type": "boolean"                    },                    {                        "type": "null"                    }                ]            }        }    },    "required": [        "vector"    ],    "additionalProperties": false}

Fields

  • model string

    The model, tool or algorithm used to create this embedding.

    • at most 1024 characters
  • target string

    The name of the variable or feature being embedded (e.g., 'description_text', 'query').

    • at most 128 characters
  • vector array of number required

    Embedding vector. Its length represents its dimensionality.

    • 1 to 16384 items
  • attributes object

    Arbitrary metadata relevant to this embedding.

    • at most 16 properties
    • * string | number | boolean | null

      Any other key.

      • string: at most 1024 characters

Copyright 2025 Dorsal Hub LTD. Licensed under Apache-2.0.