import openai
import dspy
import json


with open("creds.json", "r") as creds:
    api_key = json.loads(creds.read())["openai_key"]


lm = dspy.OpenAI(model='gpt-4', api_key=api_key, model_type='chat', max_tokens = 500)
dspy.settings.configure(lm=lm)


from dspy.datasets import HotPotQA

dataset = 
HotPotQA(train_seed=1, train_size=20, eval_seed=2023, dev_size=50, test_size=0)