from dspy.datasets.hotpotqa import HotPotQA # For demonstration purpose we will use a small subset of the HotPotQA dataset, 20 for training and testing each dataset = HotPotQA(train_seed=1, train_size=20, eval_seed=2023, dev_size=20, test_size=0) trainset = [x.with_inputs('question') for x in dataset.train] testset = [x.with_inputs('question') for x in dataset.dev] len(trainset), len(testset)