Skip to content

Commit d81cb68

Browse files
authored
refactor: Use Query API for Qdrant (#13722)
1 parent bde7b75 commit d81cb68

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

components/qdrant/actions/search-points/search-points.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
name: "Search Points",
88
description: "Performs a semantic search on the Qdrant collection.",
99
type: "action",
10-
version: "0.0.1",
10+
version: "0.0.2",
1111
props: {
1212
app,
1313
collectionName: {
@@ -56,10 +56,10 @@ export default {
5656

5757
const client = new QdrantClient(this.app.getCredentials());
5858

59-
return client.search(collectionName, {
59+
return client.query(collectionName, {
6060
filter,
6161
limit,
62-
vector,
62+
query: vector,
6363
with_payload: withPayload,
6464
with_vector: withVector,
6565
});
@@ -84,6 +84,6 @@ export default {
8484

8585
step.export("$summary", "Successfully searched the collection");
8686

87-
return response;
87+
return response.points;
8888
},
8989
};

components/qdrant/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/qdrant",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Pipedream Qdrant Components",
55
"main": "qdrant.app.mjs",
66
"keywords": [
@@ -13,6 +13,6 @@
1313
"access": "public"
1414
},
1515
"dependencies": {
16-
"@qdrant/js-client-rest": "^1.9.0"
16+
"@qdrant/js-client-rest": "^1.11.0"
1717
}
1818
}

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)