-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to save model from the DSPY Example #1140
Comments
Did you run it with default settings? |
Yes, I ran with default settings, But when I was saving the model using cited_longformqa.save("FILE_NAME.json") I encountered the error I showed above. |
The examples contain sets. They should tuples or lists. That will fix it. We can make this change in the HotPotQA class. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey I encountered an error when I was compiling one of the examples from the dspy library, I got an error like this "TypeError: {'Talk About a Stranger', 'Nancy Reagan'} is not JSON serializable"
link to the colab example: https://colab.research.google.com/github/stanfordnlp/dspy/blob/main/examples/longformqa/longformqa_assertions.ipynb#scrollTo=r0t33A00YzVV
The text was updated successfully, but these errors were encountered: