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 e4e3e5b commit 7401354Copy full SHA for 7401354
demo/src/Blog/Command/QueryCommand.php
@@ -45,9 +45,9 @@ public function __invoke(SymfonyStyle $io): int
45
$io->comment(\sprintf('Converting "%s" to vector & searching in Chroma DB ...', $search));
46
$io->comment('Results are limited to 4 most similar documents.');
47
48
- $vector = $this->vectorizer->vectorize($search);
+ $vector = $this->vectorizer->vectorize((string) $search);
49
$queryResponse = $collection->query(
50
- queryEmbeddings: [$vector->getData()], /* @phpstan-ignore-line until https://github.com/symfony/ai/issues/768 */
+ queryEmbeddings: [$vector->getData()],
51
nResults: 4,
52
);
53
0 commit comments