langchain_community.vectorstores.redis.schema.read_schema¶
langchain_community.vectorstores.redis.schema.read_schema(index_schema: Optional[Union[Dict[str, List[Any]], str, PathLike]]) → Dict[str, Any][source]¶
Reads 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