We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b83c469 commit 0f07686Copy full SHA for 0f07686
src/store/src/Bridge/ChromaDb/Store.php
@@ -42,10 +42,11 @@ public function add(VectorDocument ...$documents): void
42
$ids[] = (string) $document->id;
43
$vectors[] = $document->vector->getData();
44
$metadata[] = $document->metadata->getArrayCopy();
45
+ $originalDocuments[] = $document->metadata['content'];
46
}
47
48
$collection = $this->client->getOrCreateCollection($this->collectionName);
- $collection->add($ids, $vectors, $metadata);
49
+ $collection->add($ids, $vectors, $metadata, $originalDocuments);
50
51
52
public function query(Vector $vector, array $options = []): array
0 commit comments