You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/community/langchain_community/vectorstores/redis/constants.py

21 lines
420 B
Python

from typing import Any, Dict, List
import numpy as np
# required modules
REDIS_REQUIRED_MODULES = [
{"name": "search", "ver": 20600},
{"name": "searchlight", "ver": 20600},
]
# distance metrics
REDIS_DISTANCE_METRICS: List[str] = ["COSINE", "IP", "L2"]
# supported vector datatypes
REDIS_VECTOR_DTYPE_MAP: Dict[str, Any] = {
"FLOAT32": np.float32,
"FLOAT64": np.float64,
}
REDIS_TAG_SEPARATOR = ","