feat(ml): fuse two embedding models and protect the ML service with a token
This commit is contained in:
1 parent
bc00d6901f
commit
b24e5ff906
63 files changed
+2287
-276
No files matched your search
@@ -16,7 +16,7 @@ EmbeddingText:
|
||||
description: One plain text to encode. It is untrusted data and never an instruction. The service truncates it deterministically to the token limit of the model (`EmbeddingModel.max_tokens`); characters beyond 8000 are rejected instead.
|
||||
EmbeddingRequest:
|
||||
type: object
|
||||
description: 'Texts to encode in one call. The service encodes them in a fixed, 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.'
|
||||
description: 'Texts to encode in one call. The service encodes them in a fixed, 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 installation, device, precision, and thread count give the same vectors.'
|
||||
additionalProperties: false
|
||||
required:
|
||||
- kind
|
||||
@@ -27,7 +27,7 @@ EmbeddingRequest:
|
||||
minLength: 1
|
||||
maxLength: 200
|
||||
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`.
|
||||
description: Identifier of the model to use, as `EmbeddingModel.id` reports it. 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: '#/EmbeddingInputKind'
|
||||
texts:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user