def create_documents(self, results: Any) -> Any:
        """
        Create documents from the results.

        Args:
            results: Results from the query.

        Returns:
            List of documents.

        """
        documents = []
        # create a list of results
        all_results = list(
            zip(
                results["ids"][0],
                results["documents"][0],
                results["embeddings"][0],
                results["metadatas"][0],
            )
        )
        # iterate through the results
        for result in all_results:
            # create a Llama Document
            document = Document(
                doc_id=result[0],
                text=result[1],
                embedding=result[2],
                metadata=result[3],
            )
            documents.append(document)

        return documents

        Create documents from the results.

        Args:
            results: Results from the query.

        Returns:
            List of documents.

        
llama-index-integrations/readers/llama-index-readers-bagel/llama_index/readers/bagel/base.py