nat.plugins.redis.schema#
Attributes#
Functions#
|
Create the Redis search schema for redis_memory. |
|
Ensure the Redis search index exists, creating it if necessary. |
Module Contents#
- logger#
- INDEX_NAME = 'memory_idx'#
- DEFAULT_DIM = 384#
- create_schema(embedding_dim: int = DEFAULT_DIM)#
Create the Redis search schema for redis_memory.
- Args:
embedding_dim (int): Dimension of the embedding vectors
- Returns:
tuple: Schema definition for Redis search