Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4a70ccf

Browse files
committed
feature #1389 [Store] Add support for "remove" operation (MolloKhan)
This PR was squashed before being merged into the main branch. Discussion ---------- [Store] Add support for "remove" operation | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | Docs? | yes | Issues | Fix #1373 | License | MIT Added `remove()` method to the `StoreInterface` and added real implementation to the Pinecone bridge Commits ------- 3f380e50 [Store] Add support for "remove" operation
2 parents de79b12 + 3e930a6 commit 4a70ccf

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Store.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Symfony\AI\Store\Document\Metadata;
1818
use Symfony\AI\Store\Document\VectorDocument;
1919
use Symfony\AI\Store\Exception\InvalidArgumentException;
20+
use Symfony\AI\Store\Exception\LogicException;
2021
use Symfony\AI\Store\ManagedStoreInterface;
2122
use Symfony\AI\Store\StoreInterface;
2223
use Symfony\Contracts\Cache\CacheInterface;
@@ -70,6 +71,11 @@ public function add(VectorDocument|array $documents): void
7071
$this->cache->save($cacheItem);
7172
}
7273

74+
public function remove(string|array $ids, array $options = []): void
75+
{
76+
throw new LogicException('Method not implemented yet.');
77+
}
78+
7379
/**
7480
* @param array{
7581
* maxItems?: positive-int,

0 commit comments

Comments
 (0)