You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Azure OpenAI resource, under **Resource Management** > **Keys and Endpoints** you can find the endpoint and the keys for your Azure OpenAI resource. To invoke the model deployment, enable the `azure_ai` extension using the endpoint and one of the keys.
@@ -49,7 +49,11 @@ azure_openai.create_embeddings(deployment_name text, input text, timeout_ms inte
49
49
50
50
#### `input`
51
51
52
-
`text` input used to create embeddings.
52
+
`text` or `text[]` single text or array of texts, depending on the overload of the function used, for which embeddings are created.
53
+
54
+
#### `batch_size`
55
+
56
+
`integer DEFAULT 100` number of records to process at a time (only available for the overload of the function for which parameter `input` is of type `text[]`).
53
57
54
58
#### `timeout_ms`
55
59
@@ -59,9 +63,17 @@ azure_openai.create_embeddings(deployment_name text, input text, timeout_ms inte
59
63
60
64
`boolean DEFAULT true` on error should the function throw an exception resulting in a rollback of wrapping transactions.
61
65
66
+
#### `max_attempts`
67
+
68
+
`integer DEFAULT 1` number of times the extension will retry calling the Azure OpenAI endpoint for embedding creation if it fails with any retryable error.
69
+
70
+
#### `retry_delay_ms`
71
+
72
+
`integer DEFAULT 1000` amount of time (milliseconds) that the extension will wait, before calling again the Azure OpenAI endpoint for embedding creation, when it fails with any retryable error.
73
+
62
74
### Return type
63
75
64
-
`real[]`a vector representation of the input text when processed by the selected deployment.
76
+
`real[]`or `TABLE(embedding real[])` a single element or a single-column table, depending on the overload of the function used, with vector representations of the input text, when processed by the selected deployment.
65
77
66
78
## Use OpenAI to create embeddings and store them in a vector data type
0 commit comments