Skip to content

Commit 79bd307

Browse files
Merge pull request #257298 from mrbullwinkle/mrb_11_2_2023_embeddings_update
[Azure OpenAI] embeddings updates
2 parents 76e2157 + 80808e8 commit 79bd307

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

articles/ai-services/openai/how-to/embeddings.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ services: cognitive-services
66
manager: nitinme
77
ms.service: azure-ai-openai
88
ms.topic: how-to
9-
ms.date: 9/12/2023
10-
author: ChrisHMSFT
11-
ms.author: chrhoder
9+
ms.date: 11/02/2023
10+
author: mrbullwinkle
11+
ms.author: mbullwin
1212
recommendations: false
1313
keywords:
1414

@@ -75,15 +75,7 @@ foreach (float item in returnValue.Value.Data[0].Embedding)
7575

7676
### Verify inputs don't exceed the maximum length
7777

78-
The maximum length of input text for our embedding models is 2048 tokens (equivalent to around 2-3 pages of text). You should verify that your inputs don't exceed this limit before making a request.
79-
80-
### Choose the best model for your task
81-
82-
For the search models, you can obtain embeddings in two ways. The `<search_model>-doc` model is used for longer pieces of text (to be searched over) and the `<search_model>-query` model is used for shorter pieces of text, typically queries or class labels in zero shot classification. You can read more about all of the Embeddings models in our [Models](../concepts/models.md) guide.
83-
84-
### Replace newlines with a single space
85-
86-
Unless you're embedding code, we suggest replacing newlines (\n) in your input with a single space, as we have observed inferior results when newlines are present.
78+
The maximum length of input text for our latest embedding models is 8192 tokens. You should verify that your inputs don't exceed this limit before making a request.
8779

8880
## Limitations & risks
8981

0 commit comments

Comments
 (0)