def METHOD_NAME(self, file_path: str):
    """
    Creates a document index from a given file path.
    :param file_path: The file path to create the document index from.
    :return: A list of documents.
    """
    if file_path is None:
        raise Exception("file_path must be provided")
    if os.path.exists(file_path):
        documents = SimpleDirectoryReader(input_files=[file_path]).load_data()
        return documents