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
[BUG] StorageContext breaks when document contains embeddings. #5830
Comments
I get a similar error when trying to persist a graph: TypeError: Object of type PosixPath is not JSON serializable |
Hi, @Olamyy! I'm Dosu, and I'm here to help the LlamaIndex team manage their backlog. I wanted to let you know that we are marking this issue as stale. From what I understand, the issue you reported is related to the Before we close this issue, we wanted to check with you if it is still relevant to the latest version of the LlamaIndex repository. If it is, please let us know by commenting on this issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you for your contribution to LlamaIndex, and we appreciate your understanding as we work to manage our backlog effectively. If you have any further questions or concerns, please don't hesitate to reach out. |
I have similar issue but InstructorEmbedding Reproduction:
It looks like the root cause is that INSTRUCTOR produces results in numpy.float32 type, so the fix I found is to change few lines in the InstructorEmbedding class:
I assume there should be a better place to do this that will work for all the embedding models. I use 0.8.55 version of llama_index (the main page says it was released 16 hours ago). |
@logan-markewich Could you please help @Neco777 with this issue? They are experiencing a similar problem with the |
Hi, @Olamyy, I'm helping the LlamaIndex team manage their backlog and am marking this issue as stale. The reported issue is related to the Could you please confirm if this issue is still relevant to the latest version of the LlamaIndex repository? If it is, please let the LlamaIndex team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you for your understanding and cooperation. If you have any further questions or need assistance, feel free to reach out. |
Description
When an embedding is passed while creating a document, the
storage_context.persist
fails with aTypeError: Object of type float32 is not JSON serializable
error.Reproduction
Expected Behaviour
Storage context persist should work fine even with embeddings.
The text was updated successfully, but these errors were encountered: