Skip to content

Commit fd5a907

Browse files
committed
rebase
1 parent bd0930f commit fd5a907

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/store/src/Bridge/ChromaDb/Store.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ final class Store implements StoreInterface
2727
public function __construct(
2828
private readonly Client $client,
2929
private readonly string $collectionName,
30-
)
31-
{
30+
) {
3231
if (!class_exists(Client::class)) {
3332
throw new RuntimeException('For using the ChromaDB as retrieval vector store, the codewithkyrian/chromadb-php package is required. Try running "composer require codewithkyrian/chromadb-php".');
3433
}
@@ -41,7 +40,7 @@ public function add(VectorDocument ...$documents): void
4140
$metadata = [];
4241
$originalDocuments = [];
4342
foreach ($documents as $document) {
44-
$ids[] = (string)$document->id;
43+
$ids[] = (string) $document->id;
4544
$vectors[] = $document->vector->getData();
4645
$metadataCopy = $document->metadata->getArrayCopy();
4746
$originalDocuments[] = $document->metadata->getText() ?? '';

0 commit comments

Comments
 (0)