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,16 @@
```typescript
import { QdrantClient } from "@qdrant/js-client-rest";
const client = new QdrantClient({ host: "localhost", port: 6333 });
client.query("{collection_name}", {
query: {
text: 'a green square',
model: 'cohere/embed-v4.0',
options: {
'cohere-api-key': '<your_cohere_api_key>',
output_dimension: 512,
},
},
});
```