Skip to content

Commit 97765df

Browse files
author
Bob Tabor
committed
Kyle fixes
1 parent 67a0340 commit 97765df

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

articles/azure-cache-for-redis/cache-overview-vector-similarity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Azure Cache for Redis can be used effectively as a vector database to store embe
7373
Redis has a wide range of vector search capabilities through the [RediSearch module](cache-redis-modules.md#redisearch), which is available in the Enterprise tier of Azure Cache for Redis. These include:
7474

7575
- Multiple distance metrics, including `Euclidean`, `Cosine`, and `Internal Product`.
76-
- Support for both KNN (using `FLAT`) and ANN (using`HNSW`) indexing methods.
76+
- Support for both KNN (using `FLAT`) and ANN (using `HNSW`) indexing methods.
7777
- Vector storage in hash or JSON data structures
7878
- Top K queries
7979
- [Vector range queries](https://redis.io/docs/interact/search-and-query/search/vectors/#creating-a-vss-range-query) (i.e., find all items within a specific vector distance)

articles/azure-cache-for-redis/cache-tutorial-vector-similarity.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ In this tutorial, you learn how to:
3131
>[!IMPORTANT]
3232
>This tutorial will walk you through building a Jupyter Notebook. You can follow this tutorial with a Python code file (.py) and get *similar* results, but you will need to add all of the code blocks in this tutorial into the `.py` file and execute once to see results. In other words, Jupyter Notebooks provides intermediate results as you execute cells, but this is not behavior you should expect when working in a Python code file.
3333
34+
>[!IMPORTANT]
35+
>If you would like to follow along in a completed Jupyter notebook instead, [download the Jupyter notebook file named *tutorial.ipynb*](https://github.com/Azure-Samples/azure-cache-redis-samples/tree/main/tutorial/vector-similarity-search-open-ai) and save it into the new *redis-vector* folder.
36+
3437
## Prerequisites
3538

3639
* An Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services?azure-portal=true)
@@ -60,9 +63,6 @@ In this tutorial, you learn how to:
6063
pip install openai num2words matplotlib plotly scipy scikit-learn pandas tiktoken redis langchain
6164
```
6265

63-
>[!IMPORTANT]
64-
>If you would like to follow along in a completed Jupyter notebook instead, [download the Jupyter notebook file named *tutorial.ipynb*](https://github.com/Azure-Samples/azure-cache-redis-samples/tree/main/tutorial/vector-similarity-search-open-ai) and save it into the new *redis-vector* folder.
65-
6666
## Download the dataset
6767

6868
1. In a web browser, navigate to [https://www.kaggle.com/datasets/jrobischon/wikipedia-movie-plots](https://www.kaggle.com/datasets/jrobischon/wikipedia-movie-plots).
@@ -75,7 +75,7 @@ In this tutorial, you learn how to:
7575

7676
## Import libraries and set up connection information
7777

78-
To successfully make a call against Azure OpenAI, you need an **endpoint** and a **key**. You need an **endpoint** and a **key** to connect to Azure Cache for Redis.
78+
To successfully make a call against Azure OpenAI, you need an **endpoint** and a **key**. You also need an **endpoint** and a **key** to connect to Azure Cache for Redis.
7979

8080
1. Go to your Azure Open AI resource in the Azure portal.
8181

@@ -156,7 +156,7 @@ Next, you'll read the csv file into a pandas DataFrame.
156156

157157
:::image type="content" source="media/cache-tutorial-vector-similarity/code-cell-4.png" alt-text="Screenshot of results from executing code cell 4, displaying nine columns and a sampling of 10 rows of data." lightbox="media/cache-tutorial-vector-similarity/code-cell-4.png":::
158158

159-
1. Create a function to clean the data by removing whitespace and punctuation, then uses it against the dataframe containing the plot.
159+
1. Create a function to clean the data by removing whitespace and punctuation, then use it against the dataframe containing the plot.
160160

161161
Add the following code to a new code cell and execute it:
162162

@@ -312,7 +312,7 @@ Now that your dataset, Azure OpenAI service API, and Redis instance are set up,
312312
print(movie_title + ' (Score: ' + similarity_score + ')')
313313
```
314314

315-
1. Execute code cell 10. Uou should see the following output:
315+
1. Execute code cell 10. You should see the following output:
316316

317317
```output
318318
Remote Control (Score: 0.8301)
@@ -334,7 +334,7 @@ With Azure Cache for Redis and Azure OpenAI Service, you can use embeddings and
334334
## Related Content
335335

336336
* [Learn more about Azure Cache for Redis](cache-overview.md)
337-
* Learn more about Azure Cache for Redis [vector search capabilities](./cache-redis-modules.md#redisearch)
337+
* Learn more about Azure Cache for Redis [vector search capabilities](./cache-overview-vector-similarity.md)
338338
* Learn more about [embeddings generated by Azure OpenAI Service](../ai-services/openai/concepts/understand-embeddings.md)
339339
* Learn more about [cosine similarity](https://en.wikipedia.org/wiki/Cosine_similarity)
340340
* [Read how to build an AI-powered app with OpenAI and Redis](https://techcommunity.microsoft.com/t5/azure-developer-community-blog/vector-similarity-search-with-azure-cache-for-redis-enterprise/ba-p/3822059)

0 commit comments

Comments
 (0)