File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change 1515use Symfony \AI \Platform \Model ;
1616use Symfony \AI \Platform \PlatformInterface ;
1717
18- /**
19- * The Vectorizer encapsulates the logic to convert a collection of TextDocuments into VectorDocuments. It checks for
20- * the model's capabilities to handle batch processing or handles it with HttpClient's concurrency feature.
21- */
2218final readonly class Vectorizer implements VectorizerInterface
2319{
2420 public function __construct (
@@ -27,11 +23,6 @@ public function __construct(
2723 ) {
2824 }
2925
30- /**
31- * @param TextDocument[] $documents
32- *
33- * @return VectorDocument[]
34- */
3526 public function vectorizeDocuments (array $ documents ): array
3627 {
3728 if ($ this ->model ->supports (Capability::INPUT_MULTIPLE )) {
Original file line number Diff line number Diff line change 1212namespace Symfony \AI \Store \Document ;
1313
1414/**
15- * Interface for converting TextDocuments into VectorDocuments.
15+ * Interface for converting a collection of TextDocuments into VectorDocuments.
1616 *
1717 * @author Oskar Stark <oskarstark@googlemail.com>
1818 */
You can’t perform that action at this time.
0 commit comments