From a24a92deeb6dcbd27018c8ff7b1297dadeb25e4b Mon Sep 17 00:00:00 2001 From: Christopher Hertel Date: Sat, 21 Sep 2024 18:34:38 +0200 Subject: [PATCH] fix: chroma store incompat with Symfony 6.4 uid --- src/Store/ChromaDb/Store.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Store/ChromaDb/Store.php b/src/Store/ChromaDb/Store.php index 178732e1..1e2a9a2d 100644 --- a/src/Store/ChromaDb/Store.php +++ b/src/Store/ChromaDb/Store.php @@ -36,7 +36,7 @@ public function addDocuments(array $documents): void $this->logger->warning('Document {id} does not have a vector', ['id' => $document->id]); } - $ids[] = $document->id->toString(); + $ids[] = (string) $document->id; $vectors[] = $document->vector->getData(); $metadata[] = $document->metadata->getArrayCopy(); }