mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-26 14:38:30 +02:00
Add TS snippets for adding/removing named vectors
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
```typescript
|
||||
client.createVectorName("{collection_name}", "{vector_name}", {
|
||||
dense: {
|
||||
size: 256,
|
||||
distance: "Cosine",
|
||||
},
|
||||
});
|
||||
```
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import { QdrantClient } from "@qdrant/js-client-rest"; // @hide
|
||||
|
||||
const client = new QdrantClient({ host: "localhost", port: 6333 }); // @hide
|
||||
|
||||
client.createVectorName("{collection_name}", "{vector_name}", {
|
||||
dense: {
|
||||
size: 256,
|
||||
distance: "Cosine",
|
||||
},
|
||||
});
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
```typescript
|
||||
client.createVectorName("{collection_name}", "{vector_name}", {
|
||||
sparse: {
|
||||
modifier: "idf",
|
||||
},
|
||||
});
|
||||
```
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import { QdrantClient } from "@qdrant/js-client-rest"; // @hide
|
||||
|
||||
const client = new QdrantClient({ host: "localhost", port: 6333 }); // @hide
|
||||
|
||||
client.createVectorName("{collection_name}", "{vector_name}", {
|
||||
sparse: {
|
||||
modifier: "idf",
|
||||
},
|
||||
});
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
```typescript
|
||||
client.deleteVectorName("{collection_name}", "{vector_name}");
|
||||
```
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import { QdrantClient } from "@qdrant/js-client-rest"; // @hide
|
||||
|
||||
const client = new QdrantClient({ host: "localhost", port: 6333 }); // @hide
|
||||
|
||||
client.deleteVectorName("{collection_name}", "{vector_name}");
|
||||
Reference in New Issue
Block a user