Technology

Redis 8 Unleashes AI Potential with Revolutionary Vector Set Data Type

2025-04-20

Author: Wei Ling

Redis Revolutionizes AI with Game-Changing Vector Sets

In an exciting development for AI enthusiasts, Redis has unveiled its latest innovation: the Vector Set. This new data type is tailored specifically for vector similarity, providing a cutting-edge tool for artificial intelligence applications. This major update comes from Salvatore Sanfilippo, affectionately known as 'antirez', who has rejoined Redis, marking his first significant contribution since his return.

What are Vector Sets?

Vector Sets are akin to Redis's traditional Sorted Sets but come with a twist—each element is linked to a vector instead of a numerical score. This enables users to not only add items but also fetch the most relevant entries that closely align with a given vector. The functionality doesn’t stop there; users can employ filtered searches combining both vector similarity and scalar filters simultaneously.

Sanfilippo elaborated on the innovation, expressing a vision for the new data structure as a 'Set alike' type that allows seamless addition and removal of elements while focusing on the unique properties of Redis's abstract data structures.

Built for Speed and Flexibility

At the heart of Vector Sets lies an advanced implementation of the HNSW structure, refined for speed and enhanced features. Rowan Trollope, CEO of Redis, has lauded Sanfilippo’s work, highlighting that it results in a user-friendly API—true to Redis’s ethos of offering high-performance solutions with a touch of simplicity.

Real-World Applications and Use Cases

Vector databases are vital for Generative AI (GenAI) applications, facilitating the retrieval of semantically relevant data essential for augmenting large language models (LLMs). They excel in areas such as semantic caching for chatbots, recommendation systems, and even face recognition.

Mirko Ortensi, product manager at Redis, has shared insights on how Vector Sets transform face recognition. He highlights that the process hinges on vectors, which model known identities using specialized algorithms, storing them in Redis for rapid searches against new data.

An Innovative Approach to Vector Similarity

Emphasizing the importance of a bespoke solution, Sanfilippo undertook the task of reinventing HNSWs from the ground up instead of relying on existing libraries. His commitment to high-performance solutions doesn’t end there—he has introduced multithreading capabilities for processing multiple vector similarity requests efficiently, alongside support for both 8-bit and binary quantization.

He highlights that the unique appeal of Vector Sets lies in their underlying data model and the accompanying API, setting them apart from other databases that treat vector similarity as mere indexing.

More Innovations from Redis

Victor Sets aren’t the sole highlight of this release. Redis has also introduced LangCache, a semantic caching service aimed at AI applications and agents. LangCache seeks to minimize the latency associated with calls to LLMs, ensuring users can access responses seamlessly and efficiently.