Skip to content

Commit

Permalink
refactor: Use Query API for Qdrant (#13722)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anush008 committed Sep 12, 2024
1 parent bde7b75 commit d81cb68
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions components/qdrant/actions/search-points/search-points.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "Search Points",
description: "Performs a semantic search on the Qdrant collection.",
type: "action",
version: "0.0.1",
version: "0.0.2",
props: {
app,
collectionName: {
Expand Down Expand Up @@ -56,10 +56,10 @@ export default {

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

return client.search(collectionName, {
return client.query(collectionName, {
filter,
limit,
vector,
query: vector,
with_payload: withPayload,
with_vector: withVector,
});
Expand All @@ -84,6 +84,6 @@ export default {

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

return response;
return response.points;
},
};
4 changes: 2 additions & 2 deletions components/qdrant/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/qdrant",
"version": "0.1.0",
"version": "0.1.1",
"description": "Pipedream Qdrant Components",
"main": "qdrant.app.mjs",
"keywords": [
Expand All @@ -13,6 +13,6 @@
"access": "public"
},
"dependencies": {
"@qdrant/js-client-rest": "^1.9.0"
"@qdrant/js-client-rest": "^1.11.0"
}
}
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d81cb68

Please sign in to comment.