Redis implementation of the VectorDatabase. This class provides a Redis-based vector database connector.
Constructor
RedisVectorDatabase(host, port, default_query_limit=10, search_algorithm=SearchAlgorithm.FLAT, vector_precision=Precision.FLOAT16, **extra_params)
Initialize the RedisVectorDatabase with connection parameters and search configuration.
Parameters
The hostname of the Redis server.
The port number of the Redis server.
Default vector search limit, set to Redis’s default of 10.
search_algorithm
SearchAlgorithm
default:"SearchAlgorithm.FLAT"
The algorithm to use for vector search. Defaults to FLAT.
vector_precision
Precision
default:"Precision.FLOAT16"
Precision to use for storing vectors. Defaults to FLOAT16.
Additional parameters for the Redis connection.
Inheritance
Inheritance Chain:
RedisVectorDatabase
- →
VectorDatabase
- →
ABC
- →
Generic