indexers.VectorStore.embed
indexers.VectorStore.embed(query)
Converts text into vector embeddings using the vectoriser and returns a VectorStoreEmbedOutput dataframe with columns ‘id’, ‘text’, and ‘embedding’.
Parameters
| query |
VectorStoreEmbedInput |
The VectorStoreEmbedInput object containing the strings to be embedded and their ids. |
required |
Returns
| VectorStoreEmbedOutput |
VectorStoreEmbedOutput |
The output 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. |