feat(ml): fuse two embedding models and protect the ML service with a token

This commit is contained in:
shira committed 2026-10-11 14:40:52 +03:00
1 parent bc00d6901f
commit b24e5ff906
63 files changed
+2287 -276

No files matched your search

@@ -25,7 +25,7 @@ schemas:
deterministic way: texts are ordered by length with the request position
as the tie-breaker, encoded in micro-batches of the configured size, and
returned in request order. The same texts in the same request on the same
image and thread count give the same vectors.
installation, device, precision, and thread count give the same vectors.
additionalProperties: false
required:
- kind
@@ -38,10 +38,10 @@ schemas:
pattern: "^[A-Za-z0-9._/-]+$"
description: >-
Identifier of the model to use, as `EmbeddingModel.id` reports it.
Absent means the default model of the service. A service may load
several models, for example the members of an ensemble; a model it
does not serve answers 400 validation_failed with the pointer
`/model`.
Absent means the default model of the service, the first one it is
configured with. A service may load several models, for example the
members of an ensemble; a model it does not serve answers 400
validation_failed with the pointer `/model`.
kind:
$ref: "#/schemas/EmbeddingInputKind"
texts: