Skip to content

Commit 35bebe1

Browse files
committed
Fix MariaDB Store query with minScore argument
1 parent 1d83ca3 commit 35bebe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store/src/Bridge/MariaDB/Store.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function query(Vector $vector, array $options = [], ?float $minScore = nu
113113
SQL,
114114
$this->vectorFieldName,
115115
$this->tableName,
116-
null !== $minScore ? 'WHERE VEC_DISTANCE_EUCLIDEAN(%1$s, VEC_FromText(:embedding)) >= :minScore' : '',
116+
null !== $minScore ? \sprintf('WHERE VEC_DISTANCE_EUCLIDEAN(%1$s, VEC_FromText(:embedding)) >= :minScore', $this->vectorFieldName) : '',
117117
$options['limit'] ?? 5,
118118
),
119119
);

0 commit comments

Comments
 (0)