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-aspnet-output-cache-provider.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,19 +12,23 @@ ms.date: 04/24/2024
12
12
---
13
13
# ASP.NET Output Cache Provider for Azure Cache for Redis
14
14
15
-
The Redis Output Cache Provider is an out-of-process storage mechanism for output cache data. This data is specifically for full HTTP responses (page output caching). The provider plugs into the new output cache provider extensibility point that was introduced in ASP.NET 4. For ASP.NET Core applications, read:
16
-
-[Output Caching in ASP.NET core using Redis in .NET 8](/aspnet/core/performance/caching/output?view=aspnetcore-8.0#redis-cache&preserve-view=true)
15
+
The Redis Output Cache Provider is an out-of-process storage mechanism for output cache data. This data is specifically for full HTTP responses (page output caching). The provider plugs into the new output cache provider extensibility point that was introduced in ASP.NET 4.
16
+
17
+
For ASP.NET Core applications, see [Output Caching in ASP.NET core using Redis in .NET 8](/aspnet/core/performance/caching/output?view=aspnetcore-8.0#redis-cache&preserve-view=true).
17
18
18
19
To use the Redis Output Cache Provider, first configure your cache, and then configure your ASP.NET application using the Redis Output Cache Provider NuGet package. This article provides guidance on configuring your application to use the Redis Output Cache Provider. For more information about creating and configuring an Azure Cache for Redis instance, see [Create a cache](cache-dotnet-how-to-use-azure-redis-cache.md#create-a-cache).
19
20
20
21
## Store ASP.NET core page output in Redis
21
-
For a full feature specification, see [AS.NET core output caching](/aspnet/core/performance/caching/output?view=aspnetcore-8.0&preserve-view=true) for full feature spec. You can find a sample application demonstrating the usage can be found at [AS.NET core Output Cache](https://github.com/CawaMS/OutputCacheOpenAI).
22
+
23
+
For a full feature specification, see [AS.NET core output caching](/aspnet/core/performance/caching/output?view=aspnetcore-8.0&preserve-view=true).
24
+
25
+
For sample application demonstrating the usage, see [.NET 8 Web Application with Redis Output Caching and Azure Open AI](https://github.com/CawaMS/OutputCacheOpenAI).
22
26
23
27
## Store ASP.NET page output in Redis
24
28
25
29
To configure a client application in Visual Studio using the Azure Cache for Redis Session State NuGet package, select **NuGet Package Manager**, **Package Manager Console** from the **Tools** menu.
26
30
27
-
Run the following command from the `Package Manager Console` window.
31
+
Run the following command from the `Package Manager Console` window:
@@ -47,7 +51,7 @@ The NuGet package downloads and adds the required assembly references and adds t
47
51
</caching>
48
52
```
49
53
50
-
Configure the attributes in the first c with the values from your cache in the Microsoft Azure portal. Also, configure the other values you want. For instructions on accessing your cache properties, see [Configure Azure Cache for Redis settings](cache-configure.md#configure-azure-cache-for-redis-settings).
54
+
Configure the attributes in the first column with the values from your cache in the Microsoft Azure portal. Also, configure the other values you want. For instructions on accessing your cache properties, see [Configure Azure Cache for Redis settings](cache-configure.md#configure-azure-cache-for-redis-settings).
51
55
52
56
| Attribute | Type | Default | Description |
53
57
| --------- | ---- | ------- | ----------- |
@@ -200,6 +204,6 @@ After you do these steps, your application is configured to use the Redis Output
Copy file name to clipboardExpand all lines: articles/azure-cache-for-redis/cache-overview-vector-similarity.md
+14-8Lines changed: 14 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,13 @@ ms.topic: overview
8
8
ms.date: 04/24/2024
9
9
---
10
10
11
-
# About Vector Embeddings and Vector Search in Azure Cache for Redis
11
+
# What are Vector Embeddings and Vector Search in Azure Cache for Redis
12
12
13
-
Vector similarity search (VSS) has become a popular tehnology for AI-powered intelligent applications. Azure Cache for Redis can be used as a vector database together with models like [Azure OpenAI](../ai-services/openai/overview.md) for Retrival-Augmented Generative AI and analysis scenarios. This article is a high-level introduction to the concept of vector embeddings, vector similarity search, and how Redis can be used as a vector database powering intelligent applications.
13
+
Vector similarity search (VSS) has become a popular technology for AI-powered intelligent applications. Azure Cache for Redis can be used as a vector database by combining it models like [Azure OpenAI](../ai-services/openai/overview.md) for Retrieval-Augmented Generative AI and analysis scenarios. This article is a high-level introduction to the concept of vector embeddings, vector similarity search, and how Redis can be used as a vector database powering intelligent applications.
14
14
15
-
For tutorials and sample applications on how to use Azure Cache for Redis and Azure OpenAI to perform vector similarity search, see:
15
+
For tutorials and sample applications on how to use Azure Cache for Redis and Azure OpenAI to perform vector similarity search, see the following:
16
16
17
-
-[Tutorial: Conduct vector similarity search on Azure OpenAI embeddings using Azure Cache for Redis with Langchain](./cache-tutorial-vector-similarity.md)
17
+
-[Tutorial: Conduct vector similarity search on Azure OpenAI embeddings using Azure Cache for Redis with LangChain](./cache-tutorial-vector-similarity.md)
18
18
-[Sample: Using Redis as vector database in a Chatbot application with .NET Semantic Kernel](https://github.com/CawaMS/chatappredis)
19
19
-[Sample: Using Redis as semantic cache in a Dall-E powered image gallery with Redis OM for .NET](https://github.com/CawaMS/OutputCacheOpenAI)
20
20
@@ -28,8 +28,6 @@ This table contains the information for vector search availability in different
@@ -54,8 +52,10 @@ A vector database is a database that can store, manage, retrieve, and compare ve
54
52
55
53
### Index and search method
56
54
57
-
Vector databases need to index data for fast search and retrieval. In addition, it should support built-in search queries for simplified programming experiences.
55
+
Vector databases need to index data for fast search and retrieval. In addition, a vector database should support built-in search queries for simplified programming experiences.
56
+
58
57
There are several indexing methods, such as:
58
+
59
59
-**FLAT** - Brute-force index
60
60
-**HNSW** - Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphs
61
61
@@ -81,7 +81,13 @@ Vector similarity search can be used in multiple applications. Some common use-c
81
81
82
82
## Why choose Azure Cache for Redis for storing and searching vectors?
83
83
84
-
Azure Cache for Redis can be used effectively as a vector database to store embeddings vectors and to perform vector similarity searches. Support for vector storage and search has been available in many key machine learning frameworks like [Semantic Kernel](https://github.com/microsoft/semantic-kernel), [LangChain](https://python.langchain.com/docs/integrations/vectorstores/redis) and [LlamaIndex](https://gpt-index.readthedocs.io/en/latest/examples/vector_stores/RedisIndexDemo.html) feature rich integrations with Redis. For example, the Redis LangChain integration [automatically generates an index schema for metadata](https://python.langchain.com/docs/integrations/vectorstores/redis#inspecting-the-created-index) passed in when using Redis as a vector store. This makes it much easier to filter results based on metadata.
84
+
Azure Cache for Redis can be used effectively as a vector database to store embeddings vectors and to perform vector similarity searches. Support for vector storage and search has been available in many key machine learning frameworks like:
These frameworks feature rich integrations with Redis. For example, the Redis LangChain integration [automatically generates an index schema for metadata](https://python.langchain.com/docs/integrations/vectorstores/redis#inspecting-the-created-index) passed in when using Redis as a vector store. This makes it much easier to filter results based on metadata.
85
91
86
92
Redis has a wide range of 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:
Copy file name to clipboardExpand all lines: articles/azure-cache-for-redis/cache-web-app-aspnet-core-howto.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,15 +16,19 @@ ms.date: 04/24/2024
16
16
In this quickstart, you incorporate Azure Cache for Redis into an ASP.NET Core web application that connects to Azure Cache for Redis to store and retrieve data from the cache.
17
17
18
18
There are also caching providers in .NET core. To quickly start using Redis with minimal changes to your existing code, see:
Clone the repo [https://github.com/Azure-Samples/azure-cache-redis-samples/tree/main/quickstart/aspnet-core](https://github.com/Azure-Samples/azure-cache-redis-samples/tree/main/quickstart/aspnet-core) on GitHub.
26
27
27
-
As next step, there is a real-world scenario eShop application demonstrating the ASP.NET core caching providers: [ASP.NET core eShop using Redis caching providers](https://github.com/Azure-Samples/azure-cache-redis-demos). Features included:
28
+
As a next step, you can see a real-world scenario eShop application demonstrating the ASP.NET core caching providers: [ASP.NET core eShop using Redis caching providers](https://github.com/Azure-Samples/azure-cache-redis-demos).
0 commit comments