Toggle Menu
Prev Up Next

# `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]

  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 (Optional[Union[Dict[str, List[Any]], str, PathLike]]) –

  Return type

    Dict[str, Any]