semantics-vector

Create embeddings from input

Provides the embedding for the input text. <br><br>Returns a single vector of floating point numbers for your input, known as a text embedding. Among other uses, a text embedding enables you to calculate the similarity between two documents or two words.

post/semantics/vector

Request

  • Base URL: https://api.rosette.com/rest/v1
  • URL: https://api.rosette.com/rest/v1/semantics/vector
  • Auth: API key in header X-RosetteAPI-Key

Request body

OR

Response

OK

documentEmbeddingnumber[]

document embeddings

tokenEmbeddingsnumber[]

per-token embeddings

tokensstring[]

extracted tokens

Changes

No recorded changes to this operation across all 1 revision of this API.