snowflake.core.cortex.embed_service.CortexEmbedService¶
- class snowflake.core.cortex.embed_service.CortexEmbedService(root: Root)¶
Bases:
object
Represents the collection operations of the Snowflake Cortex Embed Service resource.
Methods
- embed(model: str, text: list[str]) EmbedResponse ¶
Perform embed service, similar to snowflake.cortex.Embed.
- Parameters:
embed_request (EmbedRequest) – The embed request object to be sent to the embed service. Defined in ./_generated/models/embed_request.py.
- embed_async(model: str, text: list[str]) PollingOperation[EmbedResponse] ¶
An asynchronous version of
embed()
.Refer to
PollingOperation
for more information on asynchronous execution and the return type.