def METHOD_NAME(
    self, page_ids: List[str] = [], database_id: Optional[str] = None
) -> List[Document]:
    """Load data from the input directory.
    Args:
        page_ids (List[str]): List of page ids to load.
    Returns:
        List[Document]: List of documents.
    """
    if not page_ids and not database_id:
        raise ValueError("Must specify either `page_ids` or `database_id`.")
    docs = []
    if database_id is not None:
        # get all the pages in the database
        page_ids = self.query_database(database_id)
        for page_id in page_ids:
            page_text = self.read_page(page_id)
            docs.append(Document(text=page_text, metadata={"page_id": page_id}))
    else:
        for page_id in page_ids:
            page_text = self.read_page(page_id)
            docs.append(Document(text=page_text, metadata={"page_id": page_id}))
    return docs