Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 28, 2026

Q A
Bug fix? no
New feature? yes
Docs? no
Issues Fix #1489
License MIT

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

This section details on the original issue you should resolve

<issue_title>[Store][Weaviate] Implement remove() method</issue_title>
<issue_description>Part of #1468

Implement the remove() method for the Weaviate store.

File: src/store/src/Bridge/Weaviate/Store.php

Method signature:

public function remove(string|array $ids, array $options = []): void;

See Pinecone implementation in src/store/src/Bridge/Pinecone/Store.php for reference.</issue_description>

<agent_instructions>Please make sure to extend existing tests, if there is one.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@OskarStark OskarStark added the Store Issues & PRs about the AI Store component label Jan 28, 2026
@carsonbot carsonbot changed the title [WIP] Implement remove method for Weaviate store [Store][WIP] Implement remove method for Weaviate store Jan 28, 2026
@OskarStark
Copy link
Contributor

@copilot remove the [WIP] from the PR title and add the standard table to the PR header from the pull request template.

Copilot AI and others added 2 commits January 28, 2026 21:40
Co-authored-by: OskarStark <995707+OskarStark@users.noreply.github.com>
Co-authored-by: OskarStark <995707+OskarStark@users.noreply.github.com>
Comment on lines 73 to 75
foreach ($ids as $id) {
$this->request('DELETE', \sprintf('v1/objects/%s', $id), []);
}
Copy link
Member

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

Copy link
Member

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>
Comment on lines +71 to +74
$objects = array_map(fn (string $id) => [
'class' => $this->collection,
'id' => $id,
], $ids);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New feature Status: Needs Review Store Issues & PRs about the AI Store component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Store][Weaviate] Implement remove() method

4 participants