-
-
Notifications
You must be signed in to change notification settings - Fork 172
[Store][WIP] Implement remove method for Weaviate store #1513
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
base: main
Are you sure you want to change the base?
Conversation
|
@copilot remove the |
Co-authored-by: OskarStark <995707+OskarStark@users.noreply.github.com>
Co-authored-by: OskarStark <995707+OskarStark@users.noreply.github.com>
| foreach ($ids as $id) { | ||
| $this->request('DELETE', \sprintf('v1/objects/%s', $id), []); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The API supports delete in batch on /v1/batch/objects endpoint, please use it:
https://docs.weaviate.io/weaviate/api/rest#tag/batch/POST/batch/objects
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot address this
Co-authored-by: chr-hertel <2852185+chr-hertel@users.noreply.github.com>
| $objects = array_map(fn (string $id) => [ | ||
| 'class' => $this->collection, | ||
| 'id' => $id, | ||
| ], $ids); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
naah, this payload looks wrong to me 🤔
https://docs.weaviate.io/weaviate/api/rest#tag/batch/DELETE/batch/objects
Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.