Skip to content

Commit 6c682e3

Browse files
committed
indicate current max embedding input token length
1 parent dd1aa1a commit 6c682e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

articles/cognitive-services/openai/faq.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ sections:
4848
- question: |
4949
I am trying to use embeddings and received the error `InvalidRequestError: Too many inputs. The max number of inputs is 1. We hope to increase the number of inputs per request soon.` How do I fix this?
5050
answer: |
51-
This error typically occurs when you try to send a batch of text to embed in a single API request as an array. Currently Azure OpenAI does not support batching with embedding requests. Embeddings API calls should consist of a single string input per request.
51+
This error typically occurs when you try to send a batch of text to embed in a single API request as an array. Currently Azure OpenAI does not support batching with embedding requests. Embeddings API calls should consist of a single string input per request. The string can be up to 8191 tokens in length when using the text-embedding-ada-002 (Version 2) model.
5252
- name: Getting access to Azure OpenAI Service
5353
questions:
5454
- question: |

articles/cognitive-services/openai/reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ In the example response, `finish_reason` equals `stop`. If `finish_reason` equal
114114
Get a vector representation of a given input that can be easily consumed by machine learning models and other algorithms.
115115

116116
> [!NOTE]
117-
> We currently do not support batching of embeddings into a single API call. If you receive the error `InvalidRequestError: Too many inputs. The max number of inputs is 1. We hope to increase the number of inputs per request soon.`, this typically occurs when an array of embeddings is attempted to be passed as a batch rather than a single string.
117+
> We currently do not support batching of embeddings into a single API call. If you receive the error `InvalidRequestError: Too many inputs. The max number of inputs is 1. We hope to increase the number of inputs per request soon.`, this typically occurs when an array of embeddings is attempted to be passed as a batch rather than a single string. The string can be up to 8191 tokens in length when using the text-embedding-ada-002 (Version 2) model.
118118
119119
**Create an embedding**
120120

0 commit comments

Comments
 (0)