ReferenceHTTP API
embeddingEncoder
The embeddingEncoder router: 4 methods of the embedding-encoder capability, with tier, scope, input and output.
Capability embedding-encoder · scope system · mode collection · source packages/types/src/capabilities/embedding-encoder.cap.ts:203.
Every method is called at /trpc/embeddingEncoder.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
encode | query | admin | admin only | no |
encodeText | query | admin | admin only | no |
getInfo | query | admin | admin only | no |
resetFailedModels | mutation | admin | admin only | no |
embeddingEncoder.encode
- Kind: query —
GET /trpc/embeddingEncoder.encode - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=embeddingEncoder.encodeon your hub
Input
{ crop: <custom>; width: number; height: number }Output
EmbeddingResultSchemaShapes: EmbeddingResultSchema
embeddingEncoder.encodeText
- Kind: query —
GET /trpc/embeddingEncoder.encodeText - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=embeddingEncoder.encodeTexton your hub
Input
{ text: string; modelId?: string }Output
EmbeddingResultSchemaShapes: EmbeddingResultSchema
embeddingEncoder.getInfo
- Kind: query —
GET /trpc/embeddingEncoder.getInfo - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=embeddingEncoder.getInfoon your hub
Input
voidOutput
EmbeddingInfoSchemaShapes: EmbeddingInfoSchema
embeddingEncoder.resetFailedModels
- Kind: mutation —
POST /trpc/embeddingEncoder.resetFailedModels - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=embeddingEncoder.resetFailedModelson your hub
Input
{ modelId?: string }Output
{ cleared: string[]; nodeId: string }