def from_json(cls, path: str) -> "EmbeddingQAFinetuneDataset":
        """
        Load the dataset from a JSON file.

        Args:
            path (str): The file path to load the JSON from.

        Returns:
            EmbeddingQAFinetuneDataset: The loaded dataset.

        """
        with open(path) as f:
            data = json.load(f)
        return cls(**data)

        Load the dataset from a JSON file.

        Args:
            path (str): The file path to load the JSON from.

        Returns:
            EmbeddingQAFinetuneDataset: The loaded dataset.

        
llama-index-finetuning/llama_index/finetuning/embeddings/common.py