diff --git a/qdrant-landing/content/documentation/concepts/inference.md b/qdrant-landing/content/documentation/concepts/inference.md index f065c86d6..029b0657e 100644 --- a/qdrant-landing/content/documentation/concepts/inference.md +++ b/qdrant-landing/content/documentation/concepts/inference.md @@ -220,3 +220,9 @@ When you prepend a model name with `jinaai/`, the embedding request is automatic For example, to use Jina AI's multimodal `jina-clip-v2` model, when ingesting and querying data, prepend the model name with `jinaai/` and provide your Jina AI API key in the `options` object. This example uses the Jina AI-specific API `dimensions` parameter to reduce the dimensionality to 512: {{< code-snippet path="/documentation/headless/snippets/inference/jinaai/" >}} + +## Multiple Inference Operations + +You can run multiple inference operations within a single request, even when models are hosted in different locations. This example generates image embeddings using `jina-clip-v2` hosted by Jina AI, text embeddings using `all-minilm-l6-v2` hosted by Qdrant Cloud, and BM25 embeddings using the `bm25` model executed locally by the Qdrant cluster: + +{{< code-snippet path="/documentation/headless/snippets/inference/multiple/" >}} \ No newline at end of file diff --git a/qdrant-landing/content/documentation/headless/snippets/inference/multiple/http.md b/qdrant-landing/content/documentation/headless/snippets/inference/multiple/http.md new file mode 100644 index 000000000..4bd76dab8 --- /dev/null +++ b/qdrant-landing/content/documentation/headless/snippets/inference/multiple/http.md @@ -0,0 +1,28 @@ +```http +PUT /collections//points?wait=true +{ + "points": [ + { + "id": 1, + "vector": { + "image": { + "image": "https://qdrant.tech/example.png", + "model": "jinaai/jina-clip-v2", + "options": { + "jina-api-key": "", + "dimensions": 512 + } + }, + "text": { + "text": "Mars, the red planet", + "model": "sentence-transformers/all-minilm-l6-v2" + }, + "bm25": { + "text": "Mars, the red planet", + "model": "qdrant/bm25" + } + } + } + ] +} +```