Generate vector embeddings

Vector returns a single vector of floating point numbers for your input, representing the location of the input in semantic space. The length of the input can range from a single word to an entire document. Among other uses, a text vector enables you to calculate the similarity between two documents or two words.

Headers

X-RosetteAPI-KeystringRequired

Request

This endpoint expects an object.
contentstringOptional
optionsobjectOptional

Response

OK
documentEmbeddinglist of doubles or null
document embeddings
tokenEmbeddingslist of doubles or null

per-token embeddings

tokenslist of strings or null
extracted tokens