Skip to content

Commit 64718bf

Browse files
committed
remove bogus information
1 parent 23ce41c commit 64718bf

File tree

2 files changed

+22
-26
lines changed

2 files changed

+22
-26
lines changed

articles/redis/TOC.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ items:
9898
href: overview-vector-similarity.md
9999
- name: Connection resilience best practices
100100
href: best-practices-connection.md
101-
- name: Use Azure Functions triggers and bindings
102-
items:
103-
- name: Create a simple Function app for Redis triggers
104-
href: tutorial-functions-getting-started.md
101+
# - name: Use Azure Functions triggers and bindings
102+
# items:
103+
# - name: Create a simple Function app for Redis triggers
104+
# href: tutorial-functions-getting-started.md
105105

106106
- name: Logs and monitoring
107107
items:
@@ -205,8 +205,8 @@ items:
205205
items:
206206
- name: Use Azure Functions triggers and bindings
207207
items:
208-
- name: Create a simple Function app for Redis triggers
209-
href: tutorial-functions-getting-started.md
208+
# - name: Create a simple Function app for Redis triggers
209+
# href: tutorial-functions-getting-started.md
210210
- name: Using Azure Functions to create a write-behind cache
211211
href: tutorial-write-behind.md
212212
- name: Use Azure Kubernetes Service with a cache

articles/redis/tutorial-vector-similarity.md

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: "Tutorial: Conduct vector similarity search on Azure OpenAI embeddings using Azure Cache for Redis"
3-
description: In this tutorial, you learn how to use Azure Cache for Redis to store and search for vector embeddings.
2+
title: "Tutorial: Conduct vector similarity search on Azure OpenAI embeddings using Azure Managed Redis"
3+
description: In this tutorial, you learn how to use Azure Managed Redis to store and search for vector embeddings.
44
ms.date: 02/27/2025
55
ms.topic: tutorial
66
ms.collection:
@@ -14,8 +14,7 @@ ms.custom:
1414

1515
# Tutorial: Conduct vector similarity search on Azure OpenAI embeddings using Azure Redis
1616

17-
<!-- cawa - need to mention AMR in this tutorial -->
18-
In this tutorial, you walk through a basic vector similarity search use-case. You use embeddings generated by Azure OpenAI Service and the built-in vector search capabilities of the Enterprise tier of Azure Cache for Redis to query a dataset of movies to find the most relevant match.
17+
In this tutorial, you walk through a basic vector similarity search use-case. You use embeddings generated by Azure OpenAI Service and the built-in vector search capabilities of Azure Managed Redis to query a dataset of movies to find the most relevant match.
1918

2019
The tutorial uses the [Wikipedia Movie Plots dataset](https://www.kaggle.com/datasets/jrobischon/wikipedia-movie-plots) that features plot descriptions of over 35,000 movies from Wikipedia covering the years 1901 to 2017. The dataset includes a plot summary for each movie, plus metadata such as the year the film was released, the director(s), main cast, and genre. You follow the steps of the tutorial to generate embeddings based on the plot summary and use the other metadata to run hybrid queries.
2120

@@ -24,11 +23,11 @@ In this tutorial, you learn how to:
2423

2524
> [!div class="checklist"]
2625
27-
> - Create an Azure Cache for Redis instance configured for vector search
26+
> - Create an Azure Managed Redis instance configured for vector search
2827
> - Install Azure OpenAI and other required Python libraries.
2928
> - Download the movie dataset and prepare it for analysis.
3029
> - Use the **text-embedding-ada-002 (Version 2)** model to generate embeddings.
31-
> - Create a vector index in Azure Cache for Redis
30+
> - Create a vector index in Azure Managed Redis
3231
> - Use cosine similarity to rank search results.
3332
> - Use hybrid query functionality through [RediSearch](https://redis.io/docs/interact/search-and-query/) to prefilter the data and make the vector search even more powerful.
3433
@@ -39,23 +38,22 @@ In this tutorial, you learn how to:
3938
>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.
4039
4140
## Prerequisites
42-
<!-- Continue here. -->
4341

4442
- An Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services?azure-portal=true)
45-
- Access granted to Azure OpenAI in the desired Azure subscription. Currently, you must apply for access to Azure OpenAI. You can apply for access to Azure OpenAI by completing the form at [https://aka.ms/oai/access](https://aka.ms/oai/access). <!-- I don't know if this is still true -->
43+
- Access granted to Azure OpenAI in the desired Azure subscription. Currently, you must apply for access to Azure OpenAI. You can apply for access to Azure OpenAI by completing the form at [https://aka.ms/oai/access](https://aka.ms/oai/access). <!-- I don't know if
4644
- [Python 3.8 or later version](https://www.python.org/)
4745
- [Jupyter Notebooks](https://jupyter.org/) (optional)
4846
- An Azure OpenAI resource with the **text-embedding-ada-002 (Version 2)** model deployed. This model is currently only available in [certain regions](/azure/ai-services/openai/concepts/models#model-summary-table-and-region-availability). See the [resource deployment guide](/azure/ai-services/openai/how-to/create-resource) for instructions on how to deploy the model.
4947

50-
## Create an Azure Cache for Redis Instance
48+
## Create an Azure Managed Redis Instance
5149

52-
1. Follow the [Quickstart: Create a Redis Enterprise cache](../azure-cache-for-redis/quickstart-create-redis-enterprise.md) guide, but make sure you add the RedisSearch module at create time.
50+
1. Follow the [Quickstart](create-manage-cache) guide to create a cache, but make sure you add the RedisSearch module at create time.
5351

5452
1. On the **Advanced** page, make sure that you've added the **RediSearch** module and have chosen the **Enterprise** Cluster Policy. All other settings can match the default described in the quickstart.
5553

5654
It takes a few minutes for the cache to create. You can move on to the next step in the meantime.
5755

58-
:::image type="content" source="../azure-cache-for-redis/media/cache-create/enterprise-tier-basics.png" alt-text="Screenshot showing the Enterprise tier Basics tab filled out.":::
56+
<!-- :::image type="content" source="../azure-cache-for-redis/media/cache-create/enterprise-tier-basics.png" alt-text="Screenshot showing the Enterprise tier Basics tab filled out."::: -->
5957

6058
## Set up your development environment
6159

@@ -82,13 +80,13 @@ In this tutorial, you learn how to:
8280

8381
## Import libraries and set up connection information
8482

85-
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.
83+
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 Managed Redis.
8684

8785
1. Go to your Azure OpenAI resource in the Azure portal.
8886

8987
1. Locate **Endpoint and Keys** in the **Resource Management** section. Copy your endpoint and access key as you'll need both for authenticating your API calls. An example endpoint is: `https://docs-test-001.openai.azure.com`. You can use either `KEY1` or `KEY2`.
9088

91-
1. Go to the **Overview** page of your Azure Cache for Redis resource in the Azure portal. Copy your endpoint.
89+
1. Go to the **Overview** page of your Azure Managed Redis resource in the Azure portal. Copy your endpoint.
9290

9391
1. Locate **Access keys** in the **Settings** section. Copy your access key. You can use either `Primary` or `Secondary`.
9492

@@ -117,7 +115,7 @@ To successfully make a call against Azure OpenAI, you need an **endpoint** and a
117115

118116
1. Update the value of `API_KEY` and `RESOURCE_ENDPOINT` with the key and endpoint values from your Azure OpenAI deployment. `DEPLOYMENT_NAME` should be set to the name of your deployment using the `text-embedding-ada-002 (Version 2)` embeddings model, and `MODEL_NAME` should be the specific embeddings model used.
119117

120-
1. Update `REDIS_ENDPOINT` and `REDIS_PASSWORD` with the endpoint and key value from your Azure Cache for Redis instance.
118+
1. Update `REDIS_ENDPOINT` and `REDIS_PASSWORD` with the endpoint and key value from your Azure Managed Redis instance.
121119

122120
> [!Important]
123121
> We strongly recommend using environmental variables or a secret manager like [Azure Key Vault](/azure/key-vault/general/overview) to pass in the API key, endpoint, and deployment name information. These variables are set in plaintext here for the sake of simplicity.
@@ -228,7 +226,7 @@ Load the DataFrame into LangChain using the `DataFrameLoader` class. Once the da
228226

229227
## Generate embeddings and load them into Redis
230228

231-
Now that the data has been filtered and loaded into LangChain, you'll create embeddings so you can query on the plot for each movie. The following code configures Azure OpenAI, generates embeddings, and loads the embeddings vectors into Azure Cache for Redis.
229+
Now that the data has been filtered and loaded into LangChain, you'll create embeddings so you can query on the plot for each movie. The following code configures Azure OpenAI, generates embeddings, and loads the embeddings vectors into Azure Managed Redis.
232230

233231
1. Add the following code a new code cell:
234232

@@ -265,7 +263,7 @@ Now that the data has been filtered and loaded into LangChain, you'll create emb
265263
vectorstore.write_schema("redis_schema.yaml")
266264
```
267265

268-
1. Execute code cell 8. This can take over 30 minutes to complete. A `redis_schema.yaml` file is generated as well. This file is useful if you want to connect to your index in Azure Cache for Redis instance without re-generating embeddings.
266+
1. Execute code cell 8. This can take over 30 minutes to complete. A `redis_schema.yaml` file is generated as well. This file is useful if you want to connect to your index in Azure Managed Redis instance without re-generating embeddings.
269267

270268

271269
> [!Important]
@@ -341,16 +339,14 @@ Now that your dataset, Azure OpenAI service API, and Redis instance are set up,
341339
Morons from Outer Space (Score: 0.8121)
342340
```
343341

344-
With Azure Cache for Redis and Azure OpenAI Service, you can use embeddings and vector search to add powerful search capabilities to your application.
342+
With Azure Managed Redis and Azure OpenAI Service, you can use embeddings and vector search to add powerful search capabilities to your application.
345343

346344
[!INCLUDE [cache-delete-resource-group](includes/cache-delete-resource-group.md)]
347345

348346
## Related Content
349347

350-
- [Learn more about Azure Cache for Redis](overview.md)
351-
- Learn more about Azure Cache for Redis [vector search capabilities](overview-vector-similarity.md)
348+
- [Learn more about Azure Managed Redis](overview.md)
352349
- Learn more about [embeddings generated by Azure OpenAI Service](/azure/ai-services/openai/concepts/understand-embeddings)
353350
- Learn more about [cosine similarity](https://en.wikipedia.org/wiki/Cosine_similarity)
354351
- [Read how to build an AI-powered app with OpenAI and Redis](https://techcommunity.microsoft.com/blog/azuredevcommunityblog/vector-similarity-search-with-azure-cache-for-redis-enterprise/3822059)
355352
- [Build a Q&A app with semantic answers](https://github.com/ruoccofabrizio/azure-open-ai-embeddings-qna)
356-

0 commit comments

Comments
 (0)