Skip to content

Commit 9c44170

Browse files
Merge pull request #235858 from mrbullwinkle/mrb_04_25_2023_cosine_similarity
[Azure OpenAI] fix cosine_similarity score
2 parents 96786c9 + 6daff59 commit 9c44170

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/cognitive-services/openai/tutorials/embeddings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ manager: nitinme
77
ms.service: cognitive-services
88
ms.subservice: openai
99
ms.topic: tutorial
10-
ms.date: 03/31/2023
10+
ms.date: 04/25/2023
1111
author: mrbullwinkle #noabenefraim
1212
ms.author: mbullwin
1313
recommendations: false
@@ -394,7 +394,7 @@ res = search_docs(df_bills, "Can I get information on cable company tax revenue?
394394

395395
:::image type="content" source="../media/tutorials/query-result.png" alt-text="Screenshot of the formatted results of res once the search query has been run." lightbox="../media/tutorials/query-result.png":::
396396

397-
Finally, we'll show the top result from document search based on user query against the entire knowledge base. This returns the top result of the "Taxpayer's Right to View Act of 1993". This document has a cosine similarity score of 0.36 between the query and the document:
397+
Finally, we'll show the top result from document search based on user query against the entire knowledge base. This returns the top result of the "Taxpayer's Right to View Act of 1993". This document has a cosine similarity score of 0.76 between the query and the document:
398398

399399
```python
400400
res["summary"][9]

0 commit comments

Comments
 (0)