mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-30 16:38:31 +02:00
docs: Query API snippets with TS (#1093)
This commit is contained in:
@@ -607,16 +607,16 @@ import { QdrantClient } from "@qdrant/js-client-rest";
|
||||
|
||||
const client = new QdrantClient({ host: "localhost", port: 6333 });
|
||||
|
||||
client.search("{collection_name}", {
|
||||
vector: [0.2, 0.1, 0.9, 0.7],
|
||||
params: {
|
||||
quantization: {
|
||||
ignore: false,
|
||||
rescore: true,
|
||||
oversampling: 2.0,
|
||||
client.query("{collection_name}", {
|
||||
query: [0.2, 0.1, 0.9, 0.7],
|
||||
params: {
|
||||
quantization: {
|
||||
ignore: false,
|
||||
rescore: true,
|
||||
oversampling: 2.0,
|
||||
},
|
||||
},
|
||||
},
|
||||
limit: 10,
|
||||
limit: 10,
|
||||
});
|
||||
```
|
||||
|
||||
@@ -753,13 +753,13 @@ import { QdrantClient } from "@qdrant/js-client-rest";
|
||||
|
||||
const client = new QdrantClient({ host: "localhost", port: 6333 });
|
||||
|
||||
client.search("{collection_name}", {
|
||||
vector: [0.2, 0.1, 0.9, 0.7],
|
||||
params: {
|
||||
quantization: {
|
||||
ignore: true,
|
||||
client.query("{collection_name}", {
|
||||
query: [0.2, 0.1, 0.9, 0.7],
|
||||
params: {
|
||||
quantization: {
|
||||
ignore: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
@@ -1015,13 +1015,13 @@ import { QdrantClient } from "@qdrant/js-client-rest";
|
||||
|
||||
const client = new QdrantClient({ host: "localhost", port: 6333 });
|
||||
|
||||
client.search("{collection_name}", {
|
||||
vector: [0.2, 0.1, 0.9, 0.7],
|
||||
params: {
|
||||
quantization: {
|
||||
rescore: false,
|
||||
client.query("{collection_name}", {
|
||||
query: [0.2, 0.1, 0.9, 0.7],
|
||||
params: {
|
||||
quantization: {
|
||||
rescore: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user