Back to Semantic Kernel

Microsoft.SemanticKernel.Connectors.Redis

dotnet/src/VectorData/Redis/README.md

latest2.2 KB
Original Source

Microsoft.SemanticKernel.Connectors.Redis

This connector uses Redis to implement Semantic Memory. It requires the RediSearch module to be enabled on Redis to implement vector similarity search.

What is RediSearch?

RediSearch is a source-available Redis module that enables querying, secondary indexing, and full-text search for Redis. These features enable multi-field queries, aggregation, exact phrase matching, numeric filtering, geo filtering and vector similarity semantic search on top of text queries.

Ways to get RediSearch:

  1. You can create an Azure Cache for Redis Enterpise instance and enable RediSearch module.

  2. Set up the RediSearch on your self-managed Redis, please refer to its documentation.

  3. Use the Redis Enterprise, see Azure Marketplace, AWS Marketplace, or Google Marketplace.

Quick start

  1. Run with Docker:
bash
docker run -d --name redis-stack-server -p 6379:6379 redis/redis-stack-server:latest
  1. Create a Redis Vector Store using instructions on the Microsoft Learn site.

  2. Use the getting started instructions on the Microsoft Leearn site to learn more about using the vector store.