Available in Embedded and Python SDK. The JS/TS SDK handles embedding generation internally.
- Embedded
- Python SDK
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
RuntimeError
RuntimeError
- Throws if no embedding model is available
TypeError
TypeError
- Throws if embedding model type is not supported