From b7de25650f3d2a7af0a25dcacb92ca10c60ff990 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Fri, 5 Sep 2025 16:34:29 +0200 Subject: [PATCH] [Store] Move class comment from `Vectorizer` to `VectorizerInterface` --- src/store/src/Document/Vectorizer.php | 9 --------- src/store/src/Document/VectorizerInterface.php | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/store/src/Document/Vectorizer.php b/src/store/src/Document/Vectorizer.php index 1e3ee2133..d2e94d3b0 100644 --- a/src/store/src/Document/Vectorizer.php +++ b/src/store/src/Document/Vectorizer.php @@ -15,10 +15,6 @@ use Symfony\AI\Platform\Model; use Symfony\AI\Platform\PlatformInterface; -/** - * The Vectorizer encapsulates the logic to convert a collection of TextDocuments into VectorDocuments. It checks for - * the model's capabilities to handle batch processing or handles it with HttpClient's concurrency feature. - */ final readonly class Vectorizer implements VectorizerInterface { public function __construct( @@ -27,11 +23,6 @@ public function __construct( ) { } - /** - * @param TextDocument[] $documents - * - * @return VectorDocument[] - */ public function vectorizeDocuments(array $documents): array { if ($this->model->supports(Capability::INPUT_MULTIPLE)) { diff --git a/src/store/src/Document/VectorizerInterface.php b/src/store/src/Document/VectorizerInterface.php index 2550e62a2..749ad83fd 100644 --- a/src/store/src/Document/VectorizerInterface.php +++ b/src/store/src/Document/VectorizerInterface.php @@ -12,7 +12,7 @@ namespace Symfony\AI\Store\Document; /** - * Interface for converting TextDocuments into VectorDocuments. + * Interface for converting a collection of TextDocuments into VectorDocuments. * * @author Oskar Stark */