You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-cache-for-redis/cache-overview-vector-similarity.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ Azure Cache for Redis can be used effectively as a vector database to store embe
73
73
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:
74
74
75
75
- 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.
77
77
- Vector storage in hash or JSON data structures
78
78
- Top K queries
79
79
-[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)
Copy file name to clipboardExpand all lines: articles/azure-cache-for-redis/cache-tutorial-vector-similarity.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,9 @@ In this tutorial, you learn how to:
31
31
>[!IMPORTANT]
32
32
>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.
33
33
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
+
34
37
## Prerequisites
35
38
36
39
* 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:
>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
-
66
66
## Download the dataset
67
67
68
68
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:
75
75
76
76
## Import libraries and set up connection information
77
77
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.
79
79
80
80
1. Go to your Azure Open AI resource in the Azure portal.
81
81
@@ -156,7 +156,7 @@ Next, you'll read the csv file into a pandas DataFrame.
156
156
157
157
:::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":::
158
158
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.
160
160
161
161
Add the following code to a new code cell and execute it:
162
162
@@ -312,7 +312,7 @@ Now that your dataset, Azure OpenAI service API, and Redis instance are set up,
1. Execute code cell 10. Uou should see the following output:
315
+
1. Execute code cell 10. You should see the following output:
316
316
317
317
```output
318
318
Remote Control (Score: 0.8301)
@@ -334,7 +334,7 @@ With Azure Cache for Redis and Azure OpenAI Service, you can use embeddings and
334
334
## Related Content
335
335
336
336
*[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)
338
338
* Learn more about [embeddings generated by Azure OpenAI Service](../ai-services/openai/concepts/understand-embeddings.md)
339
339
* Learn more about [cosine similarity](https://en.wikipedia.org/wiki/Cosine_similarity)
340
340
*[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