docarray.array.storage.redis.backend module#
- class docarray.array.storage.redis.backend.RedisConfig(n_dim, host='localhost', port=6379, index_name=None, list_like=True, update_schema=True, distance='COSINE', redis_config=<factory>, index_text=False, tag_indices=<factory>, language=None, batch_size=64, method='HNSW', ef_construction=None, m=None, ef_runtime=None, block_size=None, initial_cap=None, columns=None, root_id=True)[source]#
Bases:
object
- n_dim: int#
- host: str = 'localhost'#
- port: int = 6379#
- index_name: Optional[str] = None#
- list_like: bool = True#
- update_schema: bool = True#
- distance: str = 'COSINE'#
- redis_config: Dict[str, Any]#
- index_text: bool = False#
- tag_indices: List[str]#
- language: Optional[str] = None#
- batch_size: int = 64#
- method: str = 'HNSW'#
- ef_construction: Optional[int] = None#
- m: Optional[int] = None#
- ef_runtime: Optional[int] = None#
- block_size: Optional[int] = None#
- initial_cap: Optional[int] = None#
- columns: Optional[Union[List[Tuple[str, str]], Dict[str, str]]] = None#
- root_id: bool = True#
- class docarray.array.storage.redis.backend.BackendMixin[source]#
Bases:
BaseBackendMixin
Provide necessary functions to enable this storage backend.
- TYPE_MAP: Dict[str, TypeMap] = {'bytes': TypeMap(type='text', converter=<class 'redis.commands.search.field.TextField'>), 'double': TypeMap(type='double', converter=<class 'redis.commands.search.field.NumericField'>), 'float': TypeMap(type='float', converter=<class 'redis.commands.search.field.NumericField'>), 'geo': TypeMap(type='geo', converter=<class 'redis.commands.search.field.GeoField'>), 'int': TypeMap(type='integer', converter=<class 'redis.commands.search.field.NumericField'>), 'long': TypeMap(type='long', converter=<class 'redis.commands.search.field.NumericField'>), 'str': TypeMap(type='text', converter=<class 'redis.commands.search.field.TextField'>)}#