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 6f53fda commit 88efb84Copy full SHA for 88efb84
src/store/src/Bridge/ChromaDb/Store.php
@@ -57,11 +57,11 @@ public function add(VectorDocument ...$documents): void
57
*/
58
public function query(Vector $vector, array $options = []): array
59
{
60
- $include = ['embeddings', 'metadatas', 'distances'];
+ $include = null;
61
if ([] !== ($options['include'] ?? [])) {
62
$include = array_values(
63
array_unique(
64
- array_merge($include, $options['include'])
+ array_merge(['embeddings', 'metadatas', 'distances'], $options['include'])
65
)
66
);
67
}
0 commit comments