You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everybody,
I've been having this error that's presents itself while using an Azure model that's been loaded with dspy's AzureOpenAI, that being that when using the Retrieve module, an error message is produced regarding an unexpected keyword (more details below), other modules work perfectly fine. I've also tried two different models, again both from Azure, again loaded with AzureOpenAI, while also trying different versions of both dspy's and the openai package but again with no solution. As of the post time, versions used are:
To instantiate the model, while below a basic Retrieve example gotten straight from dspy's tutorial colabs:
For the dataset:
fromdspy.datasetsimportHotPotQA# Load the dataset.dataset=HotPotQA(train_seed=1, train_size=20, eval_seed=2023, dev_size=50, test_size=0)
# Tell DSPy that the 'question' field is the input. Any other fields are labels and/or metadata.trainset= [x.with_inputs('question') forxindataset.train]
devset= [x.with_inputs('question') forxindataset.dev]
len(trainset), len(devset)
Hi @FPirazz , there's an error with the retriever cell because you haven't configured an rm for the retriever to use (dspy.settings.configure(rm = ...)). Weird that the LM is getting triggered with the retrieve call
Hello everybody,
I've been having this error that's presents itself while using an Azure model that's been loaded with dspy's AzureOpenAI, that being that when using the Retrieve module, an error message is produced regarding an unexpected keyword (more details below), other modules work perfectly fine. I've also tried two different models, again both from Azure, again loaded with AzureOpenAI, while also trying different versions of both dspy's and the openai package but again with no solution. As of the post time, versions used are:
Code to reproduce:
Or
To instantiate the model, while below a basic Retrieve example gotten straight from dspy's tutorial colabs:
For the dataset:
The Retrieve module:
The last code block will otuput this message block error (I only copied the end of the error block):
The text was updated successfully, but these errors were encountered: