We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Get the objects from a Collection in Weaviate and to a local JSON file.
This helps with quick experimentation, maybe other use cases.
Thinking this API:
collection = client.collections.get("WineReview") collection.to_json(savepath="wine_reviews.json", num_samples=100) # returns bool success/fail
That pretty much just wraps the cursor API,
collection = client.collections.get("WineReview") for item in collection.iterator(): print(item.uuid, item.properties)
And then dumps the JSON file with the savepath.
savepath
Maybe also makes the json Python library another dependency of Weaviate's Python Client (if not already).
json
The text was updated successfully, but these errors were encountered:
Hey team, this notebook contains some more investigations into this idea of Weaviate Collections <> HuggingFace Dataset Hub or JSON files - https://github.com/weaviate/recipes/blob/main/weaviate-features/crud-apis/research/weaviate-collection-interoperability.ipynb
Sorry, something went wrong.
No branches or pull requests
What?
Get the objects from a Collection in Weaviate and to a local JSON file.
Why?
This helps with quick experimentation, maybe other use cases.
How?
Thinking this API:
That pretty much just wraps the cursor API,
And then dumps the JSON file with the
savepath
.Maybe also makes the
json
Python library another dependency of Weaviate's Python Client (if not already).The text was updated successfully, but these errors were encountered: