feat(matching): rank with semantic embeddings and explain matches by evidence
This commit is contained in:
1 parent
facc1789b1
commit
24b64d698a
215 files changed
+16951
-327
No files matched your search
@@ -0,0 +1,31 @@
|
||||
post:
|
||||
operationId: CreateMLEmbeddings
|
||||
summary: Encode texts into normalized vectors with the pinned embedding model.
|
||||
description: |-
|
||||
Internal operation for the Go backend; it is not reachable from browsers and needs no credentials on the private network. The request carries only text that the caller is allowed to process, and the service never logs it.
|
||||
|
||||
The service answers 503 service_unavailable until the model is loaded from the image and a warm-up encode has finished; `/readyz` reports the same state. A request above the body limit answers 413, and a request that breaks the schema, such as too many texts or a text over 8000 characters, or names a model that the service does not serve, answers 400.
|
||||
security: []
|
||||
tags:
|
||||
- inference
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: ../components/schemas.yml#/EmbeddingRequest
|
||||
responses:
|
||||
"200":
|
||||
description: One vector for each text, in request order.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: ../components/schemas.yml#/EmbeddingResponse
|
||||
"400":
|
||||
$ref: ../components/responses.yml#/Problem
|
||||
"413":
|
||||
$ref: ../components/responses.yml#/Problem
|
||||
"503":
|
||||
$ref: ../components/responses.yml#/Problem
|
||||
default:
|
||||
$ref: ../components/responses.yml#/Problem
|
||||
Reference in new issue
Block a user