Skip to main content
Generates embeddings for the given texts using the configured embedding model.
Available in Embedded and Python SDK. The JS/TS SDK handles embedding generation internally.

Parameters

Returns

np.ndarray: NumPy array of embeddings
  • If single text: 1-D array of shape (dimension,)
  • If list of texts: 2-D array of shape (num_texts, dimension)

Exceptions

  • Throws if no embedding model is available
  • Throws if embedding model type is not supported

Example Usage