Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions src/store/src/Document/Vectorizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion src/store/src/Document/VectorizerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <oskarstark@googlemail.com>
*/
Expand Down