read_schema#
- langchain_community.vectorstores.redis.schema.read_schema(index_schema: Dict[str, List[Any]] | str | PathLike | None) Dict[str, Any] [source]#
Read in the index schema from a dict or yaml file.
Check if it is a dict and return RedisModel otherwise, check if itβs a path and read in the file assuming itβs a yaml file and return a RedisModel
- Parameters:
index_schema (Dict[str, List[Any]] | str | PathLike | None) β
- Return type:
Dict[str, Any]