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