indexers.VectorStore.embed
indexers.VectorStore.embed(query)
Converts text (provided via a VectorStoreEmbedInput object) into vector embeddings using the Vectoriser.
Parameters
| query |
VectorStoreEmbedInput |
The VectorStoreEmbedInput object containing the strings to be embedded and their ids. |
required |
Returns
|
VectorStoreEmbedOutput |
The VectorStoreEmbedOutput object containing the embeddings along with their corresponding ids and texts. |
Raises
|
DataValidationError |
Raised if invalid arguments are passed. |
|
HookError |
Raised if user-defined hooks fail. |
|
ClassifaiError |
Raised if embedding operation fails. |