Skip to content

Commit 28d7690

Browse files
committed
bug #315 [Store][Qdrant] Use the correct key for making a query (natewiebe13)
This PR was merged into the main branch. Discussion ---------- [Store][Qdrant] Use the correct key for making a query | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | License | MIT Using the function as-is provided the data, all with a score of 0. Passing the vector correctly, I was able to get results with scoring as expected. Ref: https://qdrant.tech/documentation/concepts/search/ Commits ------- 138e99d Use the correct key for making a query
2 parents 27f2ccb + 138e99d commit 28d7690

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store/src/Bridge/Qdrant/Store.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function add(VectorDocument ...$documents): void
5252
public function query(Vector $vector, array $options = []): array
5353
{
5454
$payload = [
55-
'vector' => $vector->getData(),
55+
'query' => $vector->getData(),
5656
'with_payload' => true,
5757
'with_vector' => true,
5858
];

0 commit comments

Comments
 (0)