inference ts snippets

This commit is contained in:
Ivan Pleshkov
2025-11-13 17:16:14 +01:00
parent 3f6b2694a9
commit fdef153f12
9 changed files with 174 additions and 0 deletions
@@ -0,0 +1,21 @@
```typescript
import { QdrantClient } from "@qdrant/js-client-rest";
const client = new QdrantClient({ host: "localhost", port: 6333 });
client.upsert("{collection_name}", {
points: [
{
id: 1,
vector: {
image: 'https://qdrant.tech/example.png',
model: 'jinaai/jina-clip-v2',
options: {
'jina-api-key': '<your_jinaai_api_key>',
dimensions: 512,
},
},
},
],
});
```