module pixeltable.functions.twelvelabs
Pixeltable UDFs that wrap various endpoints from the TwelveLabs API. In order to use them, you must firstpip install twelvelabs and configure your TwelveLabs credentials, as described in
the Working with TwelveLabs tutorial.
udf embed()
Signatures
text_image embedding type in the TwelveLabs API. This is
(currently) the only way to include more than one input type at a time.
Equivalent to the TwelveLabs Embed API:
https://docs.twelvelabs.io/v1.3/docs/guides/create-embeddings
Request throttling:
Applies the rate limit set in the config (section twelvelabs, key rate_limit). If no rate
limit is configured, uses a default of 600 RPM.
Requirements:
pip install twelvelabs
model_name(String): The name of the model to use. Check the TwelveLabs documentation for available models.text(String): The text to embed.image(Image | None, default:Literal(None)): If specified, the embedding will be created from both the text and the image.
pxt.Array[float32] | None: The embedding.
embed for an embedding of a string column input: