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]