Embeddings

Get the embedding vector for a paragraph

Changed on

Returns the embedding vector for a single paragraph.

Use ?model=large (default) for the 3072-dimensional text-embedding-3-large vector — the canonical embedding used by the cross-references feature. Use ?model=small for the 1536-dimensional text-embedding-3-small vector that powers /search/semantic.

The response includes model and dimensions fields so consumers can detect mismatches if they store vectors locally and compare against new responses. The X-Embedding-Model response header carries the same signal for byte-streaming clients.

get/embeddings/{ref}

Request

  • Base URL: https://api.urantia.dev
  • URL: https://api.urantia.dev/embeddings/{ref}
  • Auth: none required

Path parameters

refstring required

Query parameters

model'small' | 'large'

Response

Embedding vector

Changes

    • info

      media type application/json was changed to a more specific media type application/problem+json for the response status

    • info

      added the non-success response with the status