Model.
A model: the task it decides, its kind, its address, its calibration, its state
Figure 1Modelspecified
- kind
- row
- scope
- platform
- key
- its name and version
- store
- postgres
- family
- models
Fields#
| field | type | required | note |
|---|---|---|---|
name | text | yes | |
version | text | yes | |
task | text | yes | in one sentence |
kind | one of classifier | embedder | estimator | generator | normaliser | chunker | language head | quality head | near-duplicate method | pooling recipe | probe | yes | |
width | count | no | for an embedder |
address | address | yes | with no default |
provider | text | yes | who serves it; the settings name the provider’s key by its environment name |
leaves_the_platform | bool | yes | whether text sent to it leaves the platform |
price_per_million_prompt_tokens | money | no | the list price the provider states |
price_per_million_completion_tokens | money | no | the list price the provider states; none for an embedder |
longest_input | count | no | tokens |
prefix | text | no | the prefix the model expects before a query, if any |
licence | text | no | |
known_examples | [id] | yes | |
controls | ControlResult | yes | |
statistics | ModelStatistics | no | |
cost_per_call | Cost | no | |
state | Readiness | yes | |
life | one of candidate | under test | in shadow | frozen | serving | retired | yes |
Routes that use it#
No route takes or returns Model directly. The record holds it, and the objects that point at it reach it.