Skip to content

Commit 1b240b3

Browse files
Merge pull request #221875 from mrbullwinkle/mrb_12_19_2022_small_fixes
[Cognitive Services] [Azure OpenAI] Small fixes
2 parents 306a4e9 + 37f99d9 commit 1b240b3

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
@@ -206,7 +206,7 @@ print(r.text)
206206

207207
The output of this command will vary based on the number and type of models you've deployed. In this case, we need to confirm that we have entries for both **text-search-curie-doc-001** and **text-search-curie-query-001**. If you find that you're missing one of these models, you'll need to [deploy the models](../how-to/create-resource.md#deploy-a-model) to your resource before proceeding.
208208

209-
Now we need read our csv file and create a pandas DataFrame. After the initial dataframe is created, we can view the contents of the table by running `df`
209+
Now we need read our csv file and create a pandas DataFrame. After the initial DataFrame is created, we can view the contents of the table by running `df`.
210210

211211
```python
212212
df = pd.read_csv("INSERT LOCAL PATH TO BILL_SUM_DATA.CSV") # example: df = pd.read_csv("c:\\test\\bill_sum_data.csv")df
@@ -374,7 +374,7 @@ res = search_docs(df_bills, "can i get information on cable company tax revenue"
374374

375375
:::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":::
376376

377-
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", as shown in Figure 4. This document has a cosine similarity score of 0.36 between the query and the document:
377+
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:
378378

379379
```python
380380
res["summary"][9]

0 commit comments

Comments
 (0)